CACS402 Cloud Computing

Cloud ComputingUnit 98 min read

Data Warehousing, Data Mining & e-Governance Applications

Unit 9 of Cloud Computing explores how governments use data warehouses and mining to drive e-governance, covering OLAP cubes, MapReduce, e-governance maturity models, and real-world Nepalese applications like eSewa and NTC’s predictive analytics.

TAKEAWAYS:

  • Data warehouses store integrated, time-stamped data for analytics, while data mining extracts hidden patterns (e.g., fraud detection in eSewa).
  • The e-governance maturity model has 5 stages (emerging → integrated → networked), with Nepal at stage 3 (transactional).
  • MapReduce processes petabytes of data (e.g., NTC’s traffic congestion analysis) by splitting tasks across clusters.
  • OLAP cubes enable multi-dimensional queries (e.g., "Show NEPSE stock trends by sector and year").
  • Digital divide in Nepal (urban vs. rural internet access) is the biggest challenge for e-governance adoption.
  • Security risks in cloud-based e-governance include data breaches (e.g., 2021 Nepal Police database leak) and require end-to-end encryption.

Core Concepts: Data Warehousing and OLAP

Data warehouses are subject-oriented, integrated, time-variant, and non-volatile repositories designed for decision support. Unlike operational databases (OLTP), they optimize for complex queries and historical analysis.

How a Data Warehouse Works

  1. Data Sources: Transactional databases (e.g., eSewa payments), flat files, or external APIs (e.g., NTC’s traffic sensors).
  2. ETL Process: Extract, Transform, Load (clean, aggregate, and store data).
  3. Storage: Star schema or snowflake schema (fact tables + dimension tables).
  4. Querying: OLAP (Online Analytical Processing) tools like cubes or MDX (Multidimensional Expressions).
[object Object][object Object][object Object][object Object]
Star schema for eSewa transactional data (fact table + 3 dimensions)

Example: NTC’s data warehouse stores bus route data, passenger counts, and accident reports to predict congestion hotspots. Real Picture:


Data Mining: Extracting Knowledge from Data

Data mining uses statistical algorithms, ML, and database systems to discover patterns. Key techniques:

  • Classification (e.g., predicting loan defaults in NMB Bank).
  • Clustering (e.g., grouping similar tax filers for audit).
  • Association Rule Mining (e.g., "Customers who buy Daraz electronics also buy cables").

MapReduce: The Engine Behind Big Data

Developed by Google, MapReduce splits data processing into two phases:

  1. Map Phase: Divide data into key-value pairs (e.g., "route_id → passenger_count").
  2. Reduce Phase: Aggregate results (e.g., "total passengers on route 123").
User (Analyst)Uploads 100GB logsHDFS (Storage)Splits into chunksMapper TasksKey-value pairs (route_id → count)Reducer TasksAggregates results
MapReduce workflow for NTC traffic analytics (Google’s original model)

Worked Example: NTC uses MapReduce to analyze 10M daily bus tickets and identifies routes with >80% capacity for real-time alerts.


e-Governance: Definitions and Models

e-Governance = Use of IT and cloud services to deliver public services, improve transparency, and enable citizen participation. e-Government = A subset of e-governance focused on government-to-citizen (G2C) services (e.g., online tax filing).

The 5-Stage Maturity Model

Stage Description Nepal’s Example
Emerging Basic website with static info (no transactions). ntc.gov.np (early 2000s)
Enhanced One-way communication (download forms). eSewa’s online bill payment (2015)
Transactional Two-way (e.g., online license renewal). Online voter registration (2020)
Vertical Integration Seamless services across departments (e.g., police + traffic). Nepal Police’s e-FIR system
Networked Cross-agency data sharing (e.g., health + transport). Nepal Government Data Portal (pilot)
022.54567.590Stage 1: Pilot Projects10Stage 2: Departmental Integration30Stage 3: Cross-Agency Services50Stage 4: National Portal70Stage 5: Full Digital Society90
Nepal’s e-governance progress (2023 data, % of services digitized)

Real Picture:


Applications in Nepal

  1. eSewa: Uses data mining to detect fraudulent transactions (e.g., duplicate payments).
  2. NTC: Deploys MapReduce to analyze GPS data from buses and predict delays.
  3. Nepal Rastra Bank: Employs OLAP cubes to track inflation trends by district.
  4. Nepal Police: Uses predictive analytics to allocate patrol cars based on crime hotspots.
[object Object][object Object][object Object][object Object]eSewaNTCNMB BankCitizens
Data flow between Nepal’s key e-governance platforms (weight = % adoption)

Worked Example: Nepal’s Digital Divide

  • Problem: Only 35% of rural households have internet (vs. 70% urban).
  • Solution: Ncell’s low-cost 4G towers + government’s Community Wi-Fi program.
  • Data Mining Insight: Clustering shows rural areas with <5% literacy need SMS-based services (e.g., agricultural alerts).

Challenges and Security

Challenge Impact Mitigation Strategy
Data Breaches Leak of citizen data (e.g., 2021 Police DB hack). End-to-end encryption (AES-256).
Digital Divide Rural citizens excluded. Community access points (e.g., schools).
Interoperability Systems don’t talk (e.g., NTC + Metro). SOA (Service-Oriented Architecture).
Cyber Laws Weak enforcement (e.g., 2008 IT Act). Amendments for cloud data sovereignty.

Exam Tip: Always link Nepal-specific examples to global trends. For instance:

  • Compare Nepal’s stage 3 e-governance with Estonia’s stage 5 (fully digital society).
  • Relate MapReduce to Google’s search indexing or Facebook’s ad targeting.

Exam Tip: How to Score Full Marks

  1. Define First: Start with precise definitions (e.g., "Data warehousing is a subject-oriented, integrated, time-variant, and non-volatile repository...").
  2. Use Diagrams: Draw OLAP cubes, MapReduce flows, or maturity model stages in your answer.
  3. Nepal Focus: Cite eSewa, NTC, or Ncell for every concept (e.g., "Like NTC’s traffic analytics, MapReduce can...").
  4. Compare Tables: For maturity models or challenges, use a 2-column table (as above).
  5. Worked Examples: Solve a real scenario (e.g., "How would NEPSE use OLAP to track stock trends?").
  6. Security: Always mention encryption, access control, or GDPR-like compliance for cloud data.

Sample Answer Starter: "Data warehousing in e-governance, as implemented by Nepal’s NTC, involves storing heterogeneous data (e.g., bus schedules, accident reports) in a star schema. For example, a fact table FACT_TRAFFIC links to dimension tables DIM_ROUTE and DIM_TIME to enable OLAP queries like ‘Show average delays on route 123 during monsoon months.’ This aligns with Nepal’s stage 3 e-governance, where transactional services like online bus tickets are now integrated with analytics for predictive maintenance."


Visual Summary:

Fact Tables (e.g., FACT_TRAFFIC)Dimension Tables (DIM_ROUTE, DIM_TIME)Star SchemaCubesMDX QueriesOLAP ToolseSewa: Fraud detection via clusteringNTC: Predictive maintenance via association rulesNepal’s e-Governance (Stage 3)Data Warehousing & e-Governance
Key components linking data warehousing to Nepal’s e-governance applications

Based on the TU BCA syllabus for Cloud Computing (CACS402), unit 9.

Discussion

Loading…