Applications of computer science
This unit shows how new computing technologies can solve real problems of Pakistan. It covers the Internet of Things (IoT) in agriculture, energy, traffic, health, industry, homes and disasters; Blockchain for voting, health, banking and education; and cloud computing in many sectors. It then explains how neural networks and deep learning work and are trained, and ends with data sharing, data privacy and the policies that resolve conflicts between them.
Learning outcomes (4)
- Design ideas of applications relevant to Pakistan using IoT, cloud computing and Blockchain.
- Describe deep learning and its applications.
- Assess policies that can help protect different stakeholders' interests.
- Evaluate scenarios with data sharing and privacy conflicts and suggest policy decisions that can help achieve acceptable compromises.
5.1Internet of Things (IoT)Often examined
You already use devices that talk to the Internet: a smartphone, a smart watch or a smart TV. The Internet of Things (IoT) takes this idea to ordinary objects. Fans, lights, water meters, cars, farm sensors and hospital beds are fitted with sensors and a network connection, so they can collect data, share it and act on it without a person doing every step.
- Internet of Things (IoT)
- A network of physical devices having sensors (such as smartphones, smart watches, smart security systems, smart home appliances, smart TVs and smart doors) that are connected through the Internet so that they can communicate with each other.
- Sensor
- A device that measures a physical quantity (temperature, humidity, gas level, water level, motion, heart rate) and turns it into data.
- Actuator
- A device that acts on a command, for example a motor, a valve, a relay switch or an alarm.
The book says IoT has a big impact on modern society. In Pakistan it is at an early stage of planning and implementation. Using IoT in homes, offices, industries, the government and the private sector improves productivity and efficiency, and lets people do daily activities with convenience and comfort.
How an IoT system works
Every IoT application, whether for a farm or a hospital, follows the same four-part flow shown below. The sensors collect data, a network carries it, the cloud stores and analyses it, and an application shows the result to people or sends a command back to an actuator.
- Devices (perception): sensors collect real-time data; actuators perform actions.
- Network (connectivity): Wi-Fi, mobile data (4G/5G), Bluetooth or RFID carry the data to a gateway or central hub.
- Cloud (processing): the data is stored and analysed, often with machine learning, to find patterns, predict events and raise alerts.
- Application (user): a mobile app or web dashboard shows the results, sends alerts and lets the user control devices remotely.
Why Pakistan needs IoT
- Enhanced automation: machines and appliances work with little human effort.
- Better control: devices can be monitored and controlled from anywhere.
- Comfort and convenience in homes and offices.
- Economical use of energy: lights, fans and air conditioners run only when needed, which matters in a country with costly electricity.
5.2Designing IoT-based applicationsOften examined
There are billions of Internet-connected devices in the world and the number is rising quickly. IoT connects devices, machines and people through the Internet, and this has produced new ideas in many industries. Designing an IoT application means using IoT technology inside an application built for a specific purpose. The book gives two designs that combine three technologies: IoT (to collect data), cloud computing (to store and analyse it) and Blockchain (to keep the records safe and honest).
IoT-based air pollution monitoring
Big cities of Pakistan suffer serious air pollution from industrial emission, vehicle emission, brick kilns and seasonal crop burning. It causes respiratory and heart diseases. An IoT system joined with cloud computing and Blockchain works in three stages.
- IoT-based real-time data collection using sensors. A network of IoT sensors is placed across a polluted region. They measure pollutants such as carbon monoxide () and nitrogen dioxide () and conditions such as temperature and humidity. The readings go by wireless communication (for example Wi-Fi) to a central network hub, which sends them to the cloud.
- Cloud platform for data storage and processing. A cloud platform such as AWS or Google Cloud stores the massive amount of data, including historical data for trends and forecasts. Machine learning and data visualization calculate the Air Quality Index (AQI) in real time. When pollution crosses a set level the platform sends alerts and notifications, and it can predict future air quality from past patterns.
- Blockchain for transparency and security. A Blockchain ledger stores the readings so they are tamper-proof and cannot be manipulated, which keeps the data honest and authentic.
Finally the three parts are joined by defining data formats, communication protocols and security measures, and a user-friendly web dashboard or mobile app shows air quality, trends and alerts.
IoT-based flood management
Floods are common in some regions of Pakistan because rivers and lakes overflow after heavy rain. Lives and property are lost. A plan that improves forecasting, monitoring and quick response can reduce the damage. Joining IoT, cloud computing and Blockchain gives real-time monitoring, data analysis and secure information sharing, so that flood risk can be judged early, warnings can be given and the response can be planned.
- IoT-based real-time data collection. Sensors in flood-prone areas monitor water level, rainfall, temperature, humidity, wind speed, wind direction and water temperature. Data is sent wirelessly to the cloud. This real-time collection is the core of the system.
- Cloud computing for storage and processing. The cloud stores and analyses large volumes of flood data. Machine learning finds patterns and predicts flood risk. Computer vision and image processing make real-time maps of flood zones. When a reading crosses its upper limit, the cloud sends an alarm to the administrator for timely evacuation. Different agencies can coordinate through the same platform.
- Blockchain for transparency and security. Blockchain keeps an immutable and transparent record of flood events. It can also track the movement of relief materials and the progress of recovery, so that aid reaches the people who need it.
5.3.1–5.3.4IoT applications in Pakistan: agriculture, smart grid, traffic and healthcareOften examined
Application of IoT in agriculture
Agriculture is the backbone of Pakistan's economy. The population is growing, so the demand for food is growing too. We need to move from traditional farming to smart agriculture based on IoT.
- Sensors observe real-time weather, so farmers have proper knowledge of the climate.
- Data on temperature, humidity, rainfall and soil condition makes farming more controlled, precise and efficient (for example, water is given only when the soil is dry).
- Drones monitor crop planting and crop health, spray fertilizer and pesticides, and help in irrigation.
- IoT-based farming reduces production cost and contributes to economic development.
Application of IoT in smart grid
Electricity in Pakistan is costly, often short, and demand keeps rising. The ordinary grid (transmission lines, transformers, substations and power grids) can be turned into a smart grid: the same infrastructure, but with IoT devices that communicate with each other and with consumers.
- More reliable supply through better fault detection.
- Less wastage: consumers get feedback on their electricity use.
- It analyses production and predicts when a shortage may occur, so companies can act in advance.
- It can automatically reroute electricity when a fault occurs, avoiding blackout of a whole area, and helps restore power quickly.
- In peak hours the IoT application advises consumers to reduce consumption.
- It generates more accurate bills.
Application of IoT in traffic management system
Traffic congestion in big cities grows with the population. Rush-hour jams waste fuel and time. A smart traffic management system uses IoT.
- Sensors and IoT devices at traffic lights, roads and highways collect real-time traffic data wirelessly and send it to traffic control rooms.
- Traffic flow is optimized, so congestion falls, road safety improves and the risk of accidents drops.
- Drivers and control rooms get real-time information about road conditions, congested areas and road hazards.
- Radio Frequency Identification (RFID) tags on cars open gated entrances automatically and save time.
- Surveillance cameras capture images of traffic rule violators so that authorities can take action.
Application of IoT in healthcare industry
IoT combined with artificial intelligence (AI) is changing healthcare. This has produced the Internet of Medical Things (IoMT): medical devices and wearables connected to the Internet. Heart problems, cancer and other diseases are increasing in Pakistan, so IoT-based healthcare should be used in all hospitals. It improves the productivity of doctors and the workflow of hospitals.
- Patients' critical data is collected and saved in the cloud; machine learning (ML) algorithms analyse it for patterns to diagnose disease and recommend medicines or tests.
- IoT devices track blood pressure, heart rate and oxygen level in real time.
- Smart wearables (smart watches, wristbands, rings, patches, eyeglasses, footwear, garments) allow remote patient monitoring at home, which saves hospital visits, time and money.
- Smart beds with sensors observe vital signs and alert the nurse or doctor when urgent attention is needed.
- Smart ambulances with sensors send the patient's critical data to the hospital during transport, so diagnosis and treatment can start inside the ambulance.
5.3.5–5.3.8IoT applications in Pakistan: manufacturing, homes, air pollution and disasters
Application of IoT in manufacturing industry
IoT combined with AI is transforming manufacturing. Pakistan's industry can use it to improve efficiency, productivity and worker safety and to reduce production cost.
- Automation and optimization of manufacturing processes.
- A network of sensors communicates wirelessly, collects and shares data and coordinates production.
- Robots increase accuracy and speed; workflow runs with minimal human intervention.
- Robots, sensors, cameras and AI-based machine learning improve product quality and reduce defective products, so customers are more satisfied.
- Fewer workplace accidents, because robots do risky and heavy manual tasks.
- Lower product cost through automation, efficiency, less labour cost and lower energy use by machines.
- IoT combined with Blockchain gives an efficient supply chain of products.
Application of IoT in homes
Smart homes are residences equipped with IoT-enabled home appliances connected to a central hub. The hub receives data from sensors and processes it to take decisions. Appliances such as TVs, ovens, washing machines, refrigerators, lights, fans, air conditioners and security cameras communicate wirelessly with each other and with the owner. Some IT companies in Pakistan already convert ordinary homes into smart homes.
- Convenient control of devices through a smartphone or web interface.
- Remote control and monitoring when the owner is away.
- Lower electricity bills: sensors detect whether a person is in the room and switch the lights or air conditioner on or off.
- Security: smart cameras, smart door locks and motion sensors alert the owner in real time.
Application of IoT to control air pollution
Air pollution from industries, vehicles and homes is a serious issue in the metropolitan cities of Pakistan. It causes heart disease, lung cancer, eye irritation and allergic reactions of the throat and eyes. An IoT-based monitoring system collects data from many sensors in real time and processes it to forecast pollution, show trends and control it. This allows an intelligent and quick response for the health and safety of the community (for example warning people, closing polluting kilns or diverting traffic).
Application of IoT in natural disaster management
Earthquakes, thunderstorms, floods and landslides after heavy rain are common in Pakistan. IoT helps to anticipate disasters and gives emergency responders the information they need, so that damage to infrastructure and loss of life are reduced.
- Real-time data collection and processing: IoT devices collect environmental data; the analysed data helps emergency authorities make the right decisions.
- Monitoring infrastructure: sensors embedded in dams, bridges and buildings monitor their condition, so action can be taken to protect them and save lives.
- Search and rescue: IoT with rescue robots and camera drones helps responders find and rescue people quickly after a disaster.
Pakistan National Disaster Management Authority (NDMA)
The NDMA makes and enforces national disaster policies at the federal and provincial levels. It works with government ministries, the Pakistan Army and United Nations organizations to coordinate disaster management, search and rescue and humanitarian operations in Pakistan and abroad.
The Pak NDMA Disaster Alert mobile app gives early warnings and advisories directly on users' phones. Its menu includes Pak NDMA alerts, hazard projections, safety guidelines and public service messages, and it shows alerts such as heatwaves and flash floods for each province. Its aim is to empower individuals and communities with vital information so that they can prepare for and respond to disasters.
5.4BlockchainOften examined
Think of a register in which a class records who paid the fee. If one person keeps it, that person could change an entry. If every student keeps an identical copy and a new page can be added only when everyone agrees, cheating becomes almost impossible. This is the idea of Blockchain.
- Blockchain
- A distributed ledger (database) of records or transactions that is shared among many network users. The ledger keeps growing as new records, called blocks, are added. Blocks are chained together using cryptography to increase security against fraud and to increase transparency.
- Blockchain application
- A decentralized application developed on Blockchain technology.
- Distributed ledger
- A database whose identical copies are kept by many computers (nodes) in a network instead of one central server.
- Immutability
- The property that once data is recorded on the Blockchain it cannot be changed.
How blocks are chained
Each block holds some data (for example votes or payments), a time stamp, its own hash and the hash of the previous block. A hash is a short code calculated from the block's contents by a cryptographic function; if even one character of the data changes, the hash changes completely.
Suppose someone changes the data in Block 2. Its hash changes, so it no longer matches the \"previous hash\" stored in Block 3, and the chain is broken. Also, all other nodes still hold the correct copy, so the false copy is rejected. That is why data on a Blockchain is tamper-proof.
Features and benefits
- Decentralized: no single owner controls the records.
- Security: cryptography links the blocks, which protects against data fraud and reduces vulnerability to cyber attacks.
- Transparency: every user of the network can see the same records.
- Immutability: recorded data cannot be changed.
- Reliability: it gives reliable solutions across many industries (voting, health, banking, education, supply chain, land records).
5.5Blockchain applications in PakistanOften examined
Application of Blockchain in voting
Pakistan's paper ballot system has faced allegations of rigging and manipulation. Blockchain can make voting secure and accurate. Each vote is recorded as a transaction on the ledger; because the ledger is transparent and immutable, no vote can be added, deleted or changed without detection. Voters can be confident that their vote is counted and the result is accurate. Blockchain voting can also be more efficient and cheaper.
Application of Blockchain in healthcare
Hospitals in Pakistan and worldwide face data security problems. Blockchain can change the way healthcare data is stored. Sensitive medical data, diagnostic images and patient records are protected by cryptographic algorithms and immutability, which reduces the risk of data loss through unauthorized access and breaches. Patients get more privacy, and authorized doctors get transparent access to the records.
Application of Blockchain in banking industry
Online banking has made transfers and transactions easy and reduced trips to banks and ATMs, but it has also exposed banks to data breaches and cyber threats. Blockchain integrated with cyber security makes the operation of banks more secure, transparent, efficient and cost-effective and helps eliminate financial fraud, because every transaction is recorded permanently on a shared ledger that cannot be secretly altered.
Application of Blockchain in education
Degrees, diplomas and certificates are kept manually, so verification is slow and difficult and fake credentials are sometimes used. Keeping these records on a distributed ledger makes record-keeping efficient, secure and transparent, eliminates fake degrees and makes verification simple. Students' academic records and administrative processes also become more secure. Students gain complete control over their records, because they are saved on the Blockchain instead of on the servers of institutions.
| Sector | Problem in Pakistan | What Blockchain gives |
|---|---|---|
| Voting | rigging and manipulation of paper ballots | transparent, immutable vote record; trust in result |
| Healthcare | data security and breaches | privacy, protected records, controlled access |
| Banking | data breaches, cyber threats, fraud | secure, transparent, low-cost transactions |
| Education | slow verification, fake degrees | instant verification, student control of records |
5.6Cloud computingOften examined
When you save photos on Google Drive or watch a film on YouTube, the files are not on your phone. They are on powerful servers owned by a company and reached through the Internet. This is cloud computing.
- Cloud computing
- The use of hosted services such as servers, data storage, databases, networking and software over the Internet. The services are maintained by a cloud service provider and are available on demand.
- Pay-as-you-go
- A billing method in which the user pays only for the cloud resources actually used.
Users can save data, files, images, videos and software on the cloud and access them from anywhere with a laptop, desktop, mobile phone or tablet connected to the Internet.
Areas where cloud computing can be used in Pakistan
| Area | How cloud computing helps |
|---|---|
| Government and public sector (5.6.1) | secure platform for easy storage, access and analysis of vast data; more informed and coordinated decisions; online services improve citizens' interaction with government |
| Banking (5.6.2) | removes the need for expensive on-premise IT infrastructure (cost saving); more personalized, efficient online services; helps prevent fraud and cyber attacks |
| Education (5.6.3) | streamlines enrolment, grade management and attendance; a Learning Management System (LMS) gives course material, assignments, assessments and announcements; online classes and training save cost |
| Businesses (5.6.4) | data and applications reachable from any location; staff stay up to date through mobile access; no need to own and maintain servers; cheaper cyber security |
| Transport (5.6.5) | intelligent transport systems; better fleet management, route planning and freight tracking; e-ticketing; mobile access improves collaboration |
| Healthcare (5.6.6) | doctors view, share and update medical records in real time; better treatment from full history; telemedicine by video conferencing; patients see reports online |
| Media and entertainment (5.6.7) | fast delivery of movies, songs and videos anywhere; platforms such as Netflix, YouTube and Spotify use the cloud |
| Software development (5.6.8) | on-demand storage and processing power; pay-as-you-go saves cost; add or remove resources as needed; real-time collaboration with tools such as Dropbox and Google Drive |
Advantages of cloud computing (summary)
- Access anywhere, any time with an Internet connection.
- Lower cost: no need to buy and maintain servers; pay only for what is used.
- Scalability: resources can be increased or reduced on demand.
- Collaboration: many people can work on the same files in real time.
- Backup and security are handled by the provider.
5.7Machine learning: the starting point
Neural networks and deep learning are different, but they are closely related. Both are subsets of machine learning (ML), so we start there.
- Machine learning (ML)
- A branch of artificial intelligence that teaches computers to learn from data inputs and experience, like humans, without direct (explicit) programming. ML algorithms train on data, recognize patterns in large databases and build models that automate decision-making and produce accurate output.
In ordinary programming a person writes the rules. In machine learning the computer is given many examples (data with the correct answers) and it finds the rules itself. For example, instead of writing rules for spam, we show the computer thousands of emails marked \"spam\" or \"not spam\" and it learns the pattern.
5.7.1Neural networksOften examined
The human brain has billions of neurons connected to each other. Each neuron receives signals, and if the signal is strong enough it passes a signal to the next neurons. A neural network copies this idea in a computer.
- Neural network
- A simulation of the working of the human brain, based on the functioning of neurons. It is a network of neurons that receive and send information throughout the network to make predictions and solve complex problems in a human-like manner.
- Neuron (node)
- A computational unit of a neural network.
- Synapse
- The connection (small gap) between layers of a neural network that allows information to pass from one layer to the next.
Layers of a neural network
A neural network processes information layer by layer. It has three kinds of layers of neurons (nodes).
- Input layer: one or more neurons. Each neuron receives raw data from the outside world (text, image, video, etc.) and represents one feature of the input data. The data is passed to the hidden layer.
- Hidden layers: one or more layers between the input and output layers. The number of hidden layers and the number of neurons in each depend on the complexity of the problem.
- Output layer: the final layer that produces the output (the final result). It can have one neuron or many. To classify an email as spam or not spam, one output neuron is enough; problems with several outputs need several output neurons.
What happens inside one neuron
: inputs, : weights, : bias, : weighted sum, : activation function, : output passed to the next layer.
- Weights
- Numerical values associated with the connections between neurons. A weight decides how much influence one neuron's output has on the next neuron's input. Weights act as coefficients that increase or decrease the importance of specific information. They are adjusted during training to reduce the difference between the prediction and the actual output, so that the network makes accurate predictions.
- Biases
- Numerical constants associated with each neuron and added to the neuron's output. They give adaptability (flexibility): a bias lets a neuron activate even when its input is below the usual threshold, which helps the network learn complex patterns and make better predictions.
- Activation function
- The function that decides whether a neuron should be activated, that is, whether its input is important for predicting the output. It applies a mathematical operation to the weighted inputs and gives a value. If the value reaches a threshold, the neuron is activated and its output goes to the next layer (or becomes the final output); otherwise the neuron is deactivated and passes nothing on.
- Loss function
- A function that measures how good the network is: how well the predicted outputs match the true outputs during learning. Training tries to minimize the loss, which means reducing the mistakes on the learning data.
| Term | Belongs to | Job in one line |
|---|---|---|
| Weight | each connection | sets the importance of an input |
| Bias | each neuron | shifts the threshold, adds flexibility |
| Activation function | each neuron | decides whether the neuron fires |
| Loss function | whole network | measures the error of prediction |
5.7.1How a neural network is trainedOften examined
A neural network is not programmed with rules. It is an AI model that accepts a set of input data and learns to predict the output. It learns through two processes repeated many times: feedforward propagation and backpropagation.
Feedforward propagation
Information moves in the forward direction: from the input layer, through the hidden layers, to the output layer. Each neuron takes its inputs, processes them with the activation function, and passes its output to the next layer only if the value is above a certain threshold. Each hidden neuron repeats this until the output layer produces the final result (the prediction).
Backpropagation
The prediction is compared with the actual output. The loss function measures the difference. To reduce the loss, the weights are modified, working backward from the output layer, through the hidden layers, to the input layer. This makes the network perform better by reducing the difference between the actual and the predicted output.
- Give the network a training example (input and its correct output).
- Feedforward: calculate the predicted output layer by layer.
- Loss: compare the prediction with the correct output using the loss function.
- Backpropagation: adjust weights (and biases) from the output layer back towards the input layer so that the loss becomes smaller.
- Repeat for many examples, many times, until the loss is very small.
- The trained network now accepts new data it has never seen and predicts the output.
Training shown in Python
This program trains a single neuron on four examples that follow the rule . Each pass (epoch) does a feedforward step, measures the squared-error loss, and moves and a little in the direction that reduces the loss. This is backpropagation in its simplest form.
# Train one neuron y = w*x + b by feedforward and backpropagation
xs = [1, 2, 3, 4]
ys = [3, 5, 7, 9] # true outputs (the rule is y = 2x + 1)
w, b = 0.0, 0.0 # start with random-like values
rate = 0.05 # learning rate
for epoch in range(1, 201):
dw = db = loss = 0
for x, y in zip(xs, ys):
pred = w * x + b # feedforward: make a prediction
err = pred - y
loss += err ** 2 # squared error
dw += 2 * err * x # backpropagation: how the loss
db += 2 * err # changes with w and with b
w -= rate * dw / len(xs) # adjust weight and bias
b -= rate * db / len(xs) # to reduce the loss
if epoch in (1, 50, 100, 200):
print("epoch", epoch, "loss", round(loss / len(xs), 4))
print("w =", round(w, 2), " b =", round(b, 2))
print("prediction for x = 5:", round(w * 5 + b, 2))epoch 1 loss 41.0
epoch 50 loss 0.0031
epoch 100 loss 0.0007
epoch 200 loss 0.0
w = 2.0 b = 0.99
prediction for x = 5: 11.01The loss falls from to almost , and the neuron discovers and by itself. Nobody told it the rule; it learned from the data.
5.7.2Real-life example: predicting the price of a houseOften examined
Many things affect the price of a house. To keep the example simple the book uses four inputs: area (square feet), number of bedrooms, distance to city centre (km) and house age. Each input has its own weight, and one output neuron adds the weighted inputs.
Training (feedforward and backpropagation on many houses whose prices are known) finds suitable weights. A large area and more bedrooms raise the price, so their weights are positive. More distance and more age lower the price, so their weights come out negative.
# One neuron: weighted sum model of Fig. 5.30
inputs = [1200, 3, 5, 10] # area (sq ft), bedrooms, distance (km), age (years)
weights = [4000, 500000, -100000, -50000] # learned by training (Rs per unit)
price = 0
for x, w in zip(inputs, weights):
price = price + w * x # add w1*x1 + w2*x2 + ...
print("Predicted price: Rs", price)Predicted price: Rs 5300000Check: rupees.
5.7.3–5.7.5Deep learning and its applicationsOften examined
Deep learning and neural networks
Neural networks are the building blocks of machine learning; deep learning emphasizes the depth of the network, that is, many hidden layers. Deep learning models use the neural network architecture, so they are often called deep neural networks. Without neural networks there would be no deep learning.
- Deep learning (DL)
- An AI technology that uses deep neural networks (networks with multiple hidden layers) to enable computers to autonomously extract hidden patterns and features from huge data sets for making decisions. It gives human-like thinking ability for developing intelligent systems.
- Compared with ordinary machine learning, deep learning needs vast amounts of data, more training time and high-performance computers with a GPU (Graphical Processing Unit), which can process many data sets at the same time.
- Deep learning algorithms improve their decisions over time as more sample data is given.
| Point | Neural network | Deep learning |
|---|---|---|
| Meaning | network of neurons in layers that simulates the brain | neural network with many hidden layers (deep neural network) |
| Hidden layers | one or a few | many |
| Data needed | smaller data sets | huge data sets |
| Hardware and time | ordinary computer, shorter training | GPU, long training time |
| Relationship | subset of ML; the building block | specialized form of ML built on neural networks |
| Examples | image recognition, stock market prediction, weather forecasting | language translation, NLP, self-driving car, healthcare diagnostics, chess |
Applications of deep learning
- Natural Language Processing (NLP): lets machines understand human language, both text and speech, and give suitable replies. Examples: language translators, sentiment analysis, customer-service chatbots.
- Healthcare: diagnosis of life-threatening diseases such as cancer and diabetes through medical imaging; acute disease detection, smart health monitoring, drug discovery and medical research.
- Fraud detection: detects suspicious login attempts and informs the user. PayPal used DL-based predictive analytics to detect and prevent fraud.
- Self-driving car: an autonomous vehicle that senses its environment with cameras, sensors and geo-mapping, calculates distances, detects traffic lights, recognizes signs and avoids pedestrians. Example: Tesla. Helpful for elderly and physically disabled people.
- Robotics: robots with sensors, cameras and microphones, controlled by a computer, perform tasks with little or no human help: manufacturing, moving goods in warehouses, hospitality, packaging medicine, surgery, handling hazardous material, working in extreme temperature.
- Entertainment: DL analyses browsing history, preferences, interests and behaviour to give personalized recommendations. Amazon, YouTube, Netflix and Spotify recommend movies, songs and videos this way.
5.7.6Relationship between AI, ML, neural network and DL
The four terms are distinct but closely related. Each one sits inside the one before it.
- Artificial intelligence (AI) is the core idea: creating machines that simulate human intelligence. Examples: robotics, computer vision, virtual assistants.
- Machine learning (ML) is a subset of AI that develops algorithms which learn from training data without explicit programming. Examples: email spam filtering, online fraud detection, product recommendation.
- Neural network is a subset of ML. It simulates the human brain to build algorithms that recognize patterns and make intelligent decisions. Examples: image recognition, stock market prediction, weather forecasting.
- Deep learning is a specialized form of ML that uses neural networks with multiple hidden layers, especially for large data sets. Examples: language translation, NLP, self-driving car, healthcare diagnostics, playing strategic games such as chess.
5.8.1–5.8.5Data sharing and data privacyOften examined
Data sharing
- Data sharing
- Making the same data available to multiple users, applications and organizations.
Benefits of data sharing
- Efficiency and collaboration within an organization, with business partners and with the wider community. It promotes transparency and research and lets businesses offer better services. For example, sharing health data helps medical research; sharing result data shows institutions' academic achievements.
- Better decision-making by policymakers, managers and teams, which is essential for good organizational performance.
- Customer relationships and marketing: products and services reach the right people with the right offer.
- Public policy: data shared by and among government agencies helps to make public policies, plan the delivery of services and improve citizens' lives.
Data privacy
- Data privacy
- The ability of a person to control his personal information and to know when, how and what personal information is shared with others.
- Personal Identifiable Information (PII)
- Information that identifies a person, such as name, ID (CNIC) number, email or postal address, birth date and contact number.
- Personal Health Information (PHI)
- Health records of a person, such as diseases, test reports and prescriptions.
Data privacy applies to sensitive data: PII, PHI and the financial information of businesses and organizations. Sensitive data about employees, customers and shareholders is important for the operations and finances of an organization.
Conflict between data sharing and data privacy
With growing Internet use, websites, apps and social media collect and store personal data to provide services, for example when we order food or shop online. Sharing has benefits but also risks. Shared data can face unauthorized access, misuse and theft, and it is hard to ensure it is used only for the right purpose. Illegal access can cause invasion of privacy, risk to personal safety and damage to reputation. So sharing needs openness while privacy needs limits: the two have conflicting requirements.
Misuse of personal data
Misuse of personal information can harm individuals, businesses and the whole society. Examples of misuse include identity theft and financial fraud, selling data to advertisers without consent, spam and scam messages, blackmail or harassment, and discrimination. Individuals, organizations and governments must maintain ethical standards and follow data protection regulations when collecting, sharing and processing personal information. Respecting others' privacy rights builds a trustworthy and safe digital environment.
Safeguards against information misuse
Governments have made data protection regulations.
- General Data Protection Regulation (GDPR): rules on how personal data of individuals in the European Union (EU) can be collected, stored and processed.
- California Consumer Privacy Act (CCPA): consumers must know what personal data is collected about them and get control over it, such as the right that it is not disclosed or sold to others.
More countries may pass such laws, because many people feel individuals do not have enough control over their personal data.
5.8.6Assessing policies to protect stakeholders in data privacy conflictsOften examined
A stakeholder is any person or group affected by a decision, for example customers, employees, managers, IT teams, legal advisors and the government. The book gives three steps to assess data privacy conflicts among stakeholders and find practical solutions.
Step 1: Identify the source of the conflict
- Inconsistencies in the organization's data governance policies.
- Conflicting standards and expectations about data quality (accuracy and reliability), security and accessibility between data users and providers.
- Ethical and social issues in collecting, using or sharing personal data.
- Different interpretations of privacy laws, unclear data-handling policies or conflicting interests of stakeholders.
- Misunderstanding of how data is being used.
- Different data protection laws and regulations in different countries and regions.
- Data governance
- How data is collected, stored and processed, and who can have access to what kind of data.
Step 2: Negotiate and compromise
- Stakeholders negotiate trade-offs and find common ground for mutual agreement.
- They hold dialogue to understand each party's priorities and limitations.
- They balance data access and usability with data protection and encryption.
- They balance data completeness and accuracy with data minimization and anonymization.
- Data minimization
- Limiting the collection of personal information to what is necessary to accomplish a specified purpose. Example: a pizza delivery app asks for name, phone and address, but not CNIC or date of birth.
- Data anonymization
- Altering or removing personally identifiable information from data sets to protect the privacy of individuals while the data can still be used for software testing and analytics. Example: removing house numbers from addresses so that people cannot be identified.
Step 3: Implement the solutions
- Adopt a data privacy framework that implements all aspects of the data governance strategy.
- Apply data privacy tools such as data encryption, data loss prevention and firewalls to control what is shared.
- Monitor data privacy compliance.
- Run training programs so employees at all levels support the policy.
- Take feedback from all stakeholders to check effectiveness and find areas for improvement.
5.8.7Developing data governance policies to reduce conflicts
Well-structured data governance policies are needed to handle data according to laws and regulations. Conflicting policies cause confusion, inefficiency and even legal problems. The book gives five steps to develop policies for data collection, availability, usability, integrity and security.
- Assess context: find why and when the conflicting policies were made; check whether any are outdated; identify which parts can be revised and which are fixed by law; study each policy's objectives and compliance needs and how they match the organization's goals; involve stakeholders; assess the risks and benefits of each policy for privacy and security.
- Identify the stakeholders: those affected by the policies and those with authority to change them (department heads, IT security teams, legal advisors and others). Their views build consensus and balanced policies.
- Evaluate risks: consider security of sensitive information, the result of non-compliance with regulations and damage to reputation; consult stakeholders and legal advisors; document every decision and communicate it for transparency and accountability.
- Propose solutions: analyse the strengths and weaknesses of each policy; suggest changing one policy, combining parts of two, or writing a new one; keep solutions specific and actionable, because unclear policies cause confusion.
- Implement changes: update documents, communicate the changes to everyone, give training if needed, monitor the changes and collect feedback to improve data governance.
5.8.8OECD principles on data sharing and protection of privacy
The Organization for Economic Cooperation and Development (OECD) is an international organization of 37 member countries, established in Paris in 1961. It develops social and economic policies and international standards for better lives and works on trade, environment, technology and education. Pakistan is not a member but is regularly invited to its meetings.
The OECD principles on data sharing and privacy are:
- Collection limitation: there should be limits to how much personal data is collected.
- Data quality: personal data should be accurate and relevant to the purpose for which it is used.
- Purpose specification: the use of personal data should be specified.
- Use limitation: data should not be used for purposes other than those specified.
- Security safeguards: data should be kept secure.
- Openness: collection and use of personal data should not be kept secret from individuals.
- Individual participation: individuals have the right to know who has their data, to have it communicated to them, to know why a request for their data is denied, and to have it corrected or erased.
- Accountability: anyone who collects data should be held accountable for following these principles.
Formula sheet
Key terms
- Internet of Things (IoT)
- A network of physical devices with sensors (smartphones, smart watches, security systems, home appliances, smart TVs, smart doors) connected through the Internet to communicate with each other.
- Sensor
- A device that measures a physical quantity and converts it into data.
- Air Quality Index (AQI)
- A number calculated from pollutant readings that shows how polluted the air is.
- Smart grid
- An electricity grid that uses IoT devices communicating with each other and with consumers for reliable, efficient supply.
- RFID (Radio Frequency Identification)
- Tags that are read wirelessly; used on cars to open gated entrances automatically.
- Internet of Medical Things (IoMT)
- The use of IoT devices and wearables, combined with AI, in healthcare.
- Smart home
- A residence with IoT-enabled appliances connected to a central hub that receives sensor data and takes decisions.
- NDMA
- National Disaster Management Authority of Pakistan; formulates and enforces national disaster policies and runs the Pak NDMA Disaster Alert app.
- Blockchain
- A distributed ledger of records or transactions shared among many network users, in which blocks are chained together using cryptography.
- Distributed ledger
- A database whose identical copies are kept by many nodes of a network.
- Immutability
- The property that recorded data cannot be changed.
- Cloud computing
- The use of hosted services such as servers, storage, databases, networking and software over the Internet, maintained by a provider and available on demand.
- Learning Management System (LMS)
- A cloud-based platform that provides course material, assignments, assessments and announcements.
- Telemedicine
- Virtual consultation between patients and healthcare providers through video conferencing.
- Machine learning (ML)
- A branch of AI that teaches computers to learn from data and experience without direct programming.
- Neural network
- A simulation of the working of the human brain: a network of neurons that receive and send information to make predictions.
- Neuron
- A computational unit of a neural network.
- Input layer
- The layer whose neurons receive raw data; each neuron represents a feature of the input.
- Hidden layer
- A layer between input and output layers; the number of hidden layers depends on the complexity of the problem.
- Output layer
- The final layer that produces the output.
- Synapse
- The connection between layers of a neural network that allows information to pass from one layer to the next.
- Weights
- Numerical values on the connections between neurons that set the influence of one neuron's output on the next neuron's input.
- Biases
- Numerical constants associated with each neuron, added to its output to give flexibility.
- Activation function
- Decides whether a neuron is activated, that is, whether its input is important for predicting the output.
- Loss function
- Measures how well the network's predicted outputs match the true outputs; training minimizes it.
- Feedforward propagation
- Passing information forward from the input layer through hidden layers to the output layer.
- Backpropagation
- Comparing predicted and actual output with the loss function and adjusting weights from the output layer back to the input layer.
- Deep learning (DL)
- AI technology that uses deep neural networks (many hidden layers) to autonomously extract hidden patterns from huge data sets.
- GPU
- Graphical Processing Unit; processes many data sets at the same time, used for training deep learning models.
- Natural Language Processing (NLP)
- A deep learning application that lets machines understand and respond to human language in text and speech.
- Data sharing
- Making the same data available to multiple users, applications and organizations.
- Data privacy
- The ability of a person to control his personal information and know when, how and what is shared with others.
- PII
- Personal Identifiable Information: name, ID number, email or postal address, birth date, contact number.
- PHI
- Personal Health Information: health records of a person.
- GDPR
- General Data Protection Regulation: EU rules on collecting, storing and processing personal data.
- CCPA
- California Consumer Privacy Act: gives consumers knowledge and control of the personal data collected about them.
- Data governance
- How data is collected, stored and processed and who can access what kind of data.
- Data quality
- The accuracy and reliability of data.
- Data minimization
- Limiting the collection of personal information to what is necessary for a specified purpose.
- Data anonymization
- Altering or removing PII from data sets to protect privacy while allowing use in testing and analytics.
- OECD
- Organization for Economic Cooperation and Development: 37 member countries, established in Paris in 1961; Pakistan is not a member but is invited to meetings.
Multiple choice questionsp. 156
- ACloud computing
- BNeural network
- CIoT
- DBlockchainAnswer
Blockchain is a distributed ledger (database) of records shared among many network users. Cloud computing stores data on a provider's servers, which is centralized, not a shared ledger.
- ASmart medical bed
- BSmart wearablesAnswer
- CSmart ambulance
- DDrone
Wearables with sensors (smart watches, wristbands, patches) monitor a patient who is at home. Smart beds work inside the hospital, and smart ambulances work during transport.
- AHidden layer
- BInput layerAnswer
- CNetwork layer
- DOutput layer
Each neuron of the input layer receives raw data (text, image, video) from the outside world and passes it to the hidden layer. There is no \"network layer\" in a neural network.
- AWeightAnswer
- BBiases
- CActivation function
- DLoss function
Weights belong to the connections and decide how much one neuron's output influences the next neuron. Biases are constants attached to each neuron, not to connections.
- AWeight
- BBiases
- CActivation functionAnswer
- DLoss function
The activation function decides whether a neuron is activated, that is, whether its input is important for the prediction. The loss function measures the error of the whole network instead.
- AData protection
- BData privacyAnswer
- CData copyright
- DData transfer
Data privacy is the ability of a person to control his personal information and to know when, how and what is shared. Data protection refers to the rules and tools that secure data.
- AArtificial intelligence
- BMachine learning
- CNeural network
- DDeep learningAnswer
The book states that deep learning technology is heavily used for building robots that perform specific tasks with little or no human help. AI and ML are broader fields; deep learning is the specific technology.
- AData minimization
- BData anonymizationAnswer
- CMachine learning
- DDeep learning
Data anonymization alters or removes PII from data sets. Data minimization only limits how much data is collected; it does not alter data already collected.
- AIoT
- BCloud computing
- CBlockchainAnswer
- DNeural network
In a Blockchain, blocks are chained together using cryptography to enhance security against fraud and increase transparency; these are the words of the book's definition.
- ARobotics
- BNatural language processing
- CMachine learningAnswer
- DCloud servers
Machine learning is the subset of AI that develops algorithms which learn from training data without explicit programming. Robotics and NLP are applications that use it.
Short response questionsp. 157
Agriculture is the backbone of Pakistan's economy and food demand is rising with the population. IoT turns traditional farming into smart agriculture in these ways:
- Weather and climate knowledge: IoT sensors observe real-time weather, so farmers know when to sow, irrigate or protect crops.
- Precise, controlled farming: sensors measure temperature, humidity, rainfall and soil moisture, so water, fertilizer and pesticide are given only where and when needed. This saves resources and raises yield.
- Drones and lower cost: drones monitor planting and crop health, spray fertilizer and pesticides and help irrigation. Less waste and labour reduce production cost and support economic development.
IoT, combined with AI and robots, connects machines and sensors in a factory so they share data and coordinate production. Three benefits are:
- Automation and higher productivity: processes are automated and optimized; robots work faster and more accurately, and the workflow needs minimal human intervention.
- Better quality: robotic systems, sensors, cameras and machine learning detect faults, so there are fewer defective products and customers are more satisfied.
- Safety and lower cost: robots take over risky manual tasks, reducing accidents and injuries; automation, less labour cost and lower energy use reduce the product cost. IoT with Blockchain also gives an efficient supply chain.
Air pollution from industries, vehicles, brick kilns and crop burning causes heart disease, lung cancer and eye irritation in Pakistan's big cities. IoT helps in three ways:
- Real-time monitoring: a network of IoT sensors across the city measures pollutants such as and and conditions such as temperature and humidity, and sends the readings wirelessly to the cloud.
- Analysis and forecasting: the cloud uses machine learning to calculate the Air Quality Index (AQI), show trends and predict future pollution.
- Quick response: when pollution crosses a safe limit, alerts go to citizens and authorities through apps and dashboards, so action can be taken, such as closing polluting units, controlling traffic or warning people to stay indoors. Blockchain can keep the records tamper-proof.
The Pak NDMA Disaster Alert mobile app was developed by Pakistan's National Disaster Management Authority. Its purpose is to give early warnings and advisories directly to users' phones, so that individuals and communities have vital information to prepare for and respond to disasters.
- It shows NDMA alerts for each province, for example heatwaves and flash floods.
- It gives hazard projections, safety guidelines and public service messages.
- It keeps people informed and safe \"at their fingertips\", giving them time to evacuate, store supplies or avoid danger zones.
| Neural network | Deep learning |
|---|---|
| A network of neurons in layers (input, hidden, output) that simulates the human brain. | A specialized form of ML that uses neural networks with many hidden layers (deep neural networks). |
| The foundational building block of machine learning. | Emphasizes the depth of the network; it cannot exist without neural networks. |
| Can have only one or a few hidden layers; works with smaller data. | Needs vast data, long training time and GPU-based computers. |
| Examples: image recognition, stock market prediction, weather forecasting. | Examples: NLP, language translation, self-driving cars, robotics. |
Deep learning uses deep neural networks to find hidden patterns in huge data. Its main applications are:
- Natural Language Processing: translators, sentiment analysis and chatbots that understand text and speech.
- Healthcare: diagnosis of cancer and diabetes from medical images, smart health monitoring, drug and medical research.
- Fraud detection: detecting suspicious logins and transactions (for example PayPal).
- Self-driving cars: sensing traffic lights, signs and pedestrians (for example Tesla).
- Robotics: robots for factories, warehouses, surgery and hazardous work.
- Entertainment: personalized recommendations on YouTube, Netflix, Spotify and Amazon.
Data sharing means making the same data available to multiple users, applications and organizations. Three benefits are:
- Efficiency and collaboration: teams, partners and the community work together; it promotes transparency and research. For example, shared health data helps medical research and better healthcare.
- Better decisions: policymakers, managers and teams make informed decisions, which improves organizational performance.
- Better services and policy: businesses build customer relationships and reach people with the right offer, and government agencies use shared data to plan public policies and services that improve citizens' lives.
Personal data (name, CNIC number, address, phone, bank and health details) is collected by websites, apps and organizations. If it reaches the wrong hands through unauthorized access, theft or careless sharing, it can be misused:
- Identity theft and fraud: criminals open accounts, take loans or make purchases in the victim's name.
- Selling without consent: data is sold to advertisers or other companies, leading to spam calls and messages.
- Scams, blackmail and harassment: personal photos, contacts or location are used to threaten or stalk a person.
- Discrimination and damage to reputation: health or financial details are used unfairly against a person.
Such misuse invades privacy and puts personal safety at risk, so organizations must follow ethical standards and data protection laws.
Cloud computing is the use of hosted services such as servers, storage, databases and software over the Internet, available on demand. In business it gives these benefits:
- Access from anywhere: data and applications stored on the cloud can be reached from any location.
- Up-to-date staff: mobile access through smartphones keeps employees instantly connected with customers and co-workers.
- Lower operational cost: the business does not need to own, manage and maintain on-premise servers; it pays only for what it uses.
- Cost-effective cyber security: the provider protects the data and applications stored on the cloud.
| Data anonymization | Data minimization |
|---|---|
| Altering or removing personally identifiable information from data sets that are already collected. | Limiting the collection of personal information to what is necessary for a specified purpose. |
| Works after collection; data is kept but people cannot be identified. | Works at the time of collection; unnecessary data is never collected. |
| Data can still be used for software testing and analytics. | Reduces the amount of data that could be misused or stolen. |
| Example: removing house numbers from addresses, or replacing names with codes, before giving hospital data to researchers. | Example: an online shop asks only for name, phone and delivery address, not CNIC number or date of birth. |
Extended response questionsp. 157
The book covers agriculture, smart grid, traffic, healthcare, manufacturing, homes, air pollution and disasters. Two further applications useful for Pakistan are smart water management and smart waste management.
Application 1: Smart water management
Why needed: Pakistan is a water-stressed country. Large amounts of water are lost through leaking pipes, illegal connections and overuse, and cities such as Karachi and Quetta face shortages. Groundwater levels are falling.
How IoT works: flow and pressure sensors in pipelines, level sensors in tanks and reservoirs, and smart water meters at homes send readings through the network to a cloud platform. Software compares the water supplied with the water billed and finds sudden drops in pressure.
- Leaks and illegal connections are detected quickly, reducing water loss.
- Smart meters give accurate bills and show consumers their use, encouraging saving.
- Pumps and valves are controlled remotely, so water is supplied fairly to different areas.
- Data on tube-well use helps protect groundwater.
Application 2: Smart waste management
Why needed: big cities produce thousands of tonnes of waste every day. Bins overflow, garbage is burnt in the open (adding to smog), and collection vehicles follow fixed routes and waste fuel.
How IoT works: fill-level sensors in public bins report how full each bin is. GPS trackers on garbage trucks send their location. A cloud application plans the shortest route to only those bins that are nearly full.
- Bins are emptied on time, so streets are cleaner and disease spreads less.
- Fuel, time and labour are saved through optimized routes.
- Less open burning of waste, so air pollution is reduced.
- Municipal authorities get data to plan recycling and new landfill sites.
The book covers voting, healthcare, banking and education. Two more applications useful for Pakistan are land record management and supply chain tracking.
Application 1: Land record management
Why needed: land ownership disputes fill Pakistan's courts. Paper records (fard, registry) can be forged or changed by corrupt officials, the same plot is sometimes sold twice, and checking ownership takes a long time.
How Blockchain helps: every plot and every transfer of ownership is recorded as a transaction on a distributed ledger kept by the revenue department, banks and courts. Each new transfer is added as a new block linked to the previous one by its hash, so the full ownership history is preserved.
- Records are immutable: no one can secretly change the owner's name.
- Fraud such as double selling of plots is prevented.
- Buyers, banks and courts can verify ownership in minutes.
- Transparency reduces corruption and court cases.
Application 2: Supply chain tracking (agriculture and medicines)
Why needed: farmers get low prices while middlemen take large profits, food exports need proof of quality, and fake or expired medicines are a serious health risk.
How Blockchain helps: at each stage (farm, warehouse, factory, distributor, shop) the product's details are recorded on a shared ledger, often with IoT sensors adding temperature and location. A QR code on the pack lets anyone see the full history.
- Consumers and pharmacies can check that a medicine is genuine and was stored correctly.
- Exporters can prove the origin and quality of rice, mangoes or cotton, increasing trust abroad.
- Farmers get fair payment because every transaction is transparent.
- Fake products are removed from the market.
Step 1: Choose the inputs (features)
Five specifications are taken as the input features, one neuron each: processor speed (GHz), camera (megapixels), screen size (inches), battery capacity (mAh) and RAM (GB). The output is the price of the phone.
Step 2: Design the network
- Input layer: 5 neurons, one for each specification.
- Hidden layer: 3 neurons that combine the features (for example a \"performance\" neuron from processor and RAM, a \"camera and display\" neuron, a \"battery\" neuron).
- Output layer: 1 neuron, because only one value (the price) is predicted.
- Every connection has a weight and every neuron has a bias .
Step 3: Working of each neuron (feedforward)
The activation function decides whether the neuron passes its value on. For price, a ReLU function can be used, so the price is never negative.
Step 4: Training
- Collect data on many phones: their five specifications and their actual market prices.
- Start with random weights and biases.
- Feedforward: for each phone, compute the predicted price.
- Loss function: compare predicted and actual price, for example with the squared error .
- Backpropagation: adjust the weights and biases from the output layer back to the input layer to reduce the loss.
- Repeat over all phones many times until the loss is minimum. The trained model can now predict the price of a new phone.
Step 5: Prediction with trained weights (simplified to one output neuron)
# Simple neural network model (one output neuron) for phone price
specs = {"processor_ghz": 2.8, "camera_mp": 50, "screen_inch": 6.5,
"battery_mah": 5000, "ram_gb": 8}
weights = {"processor_ghz": 12000, "camera_mp": 400, "screen_inch": 5000,
"battery_mah": 3, "ram_gb": 4000}
bias = -20000
z = bias
for name in specs:
z = z + weights[name] * specs[name] # weighted sum of inputs
price = max(0, z) # ReLU activation: no negative price
print("Predicted price: Rs", round(price))Predicted price: Rs 113100Check: rupees. The weights here are illustrative; a real model learns them from data.
Organizations share data with employees, partners and other organizations to work efficiently, but sharing personal and confidential data brings risks. Four main risks are:
- Unauthorized access and data breaches: shared data travels to more places and people, so hackers or unauthorized staff may reach it. A breach exposes customers' names, CNIC numbers and bank details.
- Misuse of data for the wrong purpose: data given for one purpose may be used for another, for example customer data sold to advertisers without consent. It is hard to ensure data is used only for the right purpose.
- Theft and identity fraud: stolen personal data is used for identity theft, financial fraud, scams and blackmail, putting individuals' personal safety at risk.
- Legal penalties and damage to reputation: invasion of privacy breaks data protection laws (for example GDPR for EU customers), leading to fines; customers lose trust and the organization's reputation is damaged.
Other risks include loss of data quality when data is copied and changed in many places, and conflicts between stakeholders about who may access what. These risks show why data sharing and privacy have conflicting requirements, and why organizations need data governance policies, encryption, access control, data minimization and anonymization.
Data governance means how data is collected, stored and processed, and who can have access to what kind of data. Well-structured data governance policies make sure that data is handled according to laws. Conflicting or unclear policies cause confusion, inefficiency and legal issues, so an organization develops policies in five steps.
- Assess context: study why the conflicting policies were made, find outdated ones, separate the parts that can be revised from those fixed by law, and check each policy's objectives against the organization's goals and its risks to privacy and security.
- Identify stakeholders: involve department heads, IT security teams, legal advisors and other affected people. Their views build consensus and balanced policies.
- Evaluate risks: consider security of sensitive data, penalties for non-compliance and damage to reputation; consult legal advisors; document decisions for transparency and accountability.
- Propose solutions: change one policy, combine parts of two, or write a new one; keep it specific and actionable.
- Implement changes: update documents, communicate changes, train staff, monitor and collect feedback.
How this mitigates the conflict
- Clear rules on who can access which data allow useful sharing while protecting privacy.
- Balancing data access with encryption, and completeness with data minimization and anonymization, satisfies both sides.
- Compliance with laws avoids legal problems.
- Training and feedback make everyone follow the same policy, so misunderstandings about data use disappear.
Stakeholders (management, employees, customers, IT teams, legal advisors, partners and government) often have different interests in the same data. Data privacy conflicts arise for these reasons:
- Inconsistent data governance policies: different departments follow different rules on how data is collected, stored and processed and who may access it.
- Conflicting standards and expectations: data users want easy access and complete data, while data providers want security and protection; they also disagree on data quality (accuracy and reliability).
- Ethical and social issues: collecting or sharing personal data (for example health or family details) may be legal but seen as unethical by customers.
- Different interpretations of privacy laws and unclear policies: vague rules and conflicting interests of stakeholders lead to disputes. In Pakistan, data protection law is still developing, which adds to the confusion.
- Misunderstanding of how data is used: customers or employees may not know why their data is collected, and suspect misuse.
A sixth reason is different laws in different countries and regions: a Pakistani company working with European clients must follow GDPR, which may differ from local practice. Identifying these sources is the first step in resolving the conflict.
Pakistan is not a member of the OECD (Organization for Economic Cooperation and Development, 37 members, founded in Paris in 1961), but it is regularly invited to its meetings. The OECD principles on data sharing and privacy are a good model for Pakistan:
- Collection limitation: there should be limits to how much personal data is collected.
- Data quality: collected data should be accurate and relevant to its purpose.
- Purpose specification: the purpose of using personal data should be stated.
- Use limitation: data should not be used for any other purpose than the one specified.
- Security safeguards: data should be kept secure, for example with encryption and access control.
- Openness: collection and use of data should not be kept secret from individuals.
- Individual participation: people have the right to know who has their data, to receive it, to know why a request is denied, and to have it corrected or erased.
- Accountability: whoever collects data is responsible for following these principles.
Adopting these principles, together with practices like data minimization, data anonymization and a clear data governance framework, would protect citizens' privacy in Pakistan while still allowing useful data sharing by government and businesses.
Important exam questions (not in the exercise)
Likely FBISE short (3-mark) and long (5-mark) questions from this unit that are not in the book exercise.
The Internet of Things (IoT) is a network of physical devices fitted with sensors that are connected through the Internet so that they can collect data, communicate with each other and be controlled remotely. It gives automation, comfort and economical use of energy.
Examples of IoT devices:
- Smart watch / wearable: measures heart rate and sends it to a phone or doctor.
- Smart home appliances: lights, air conditioners and refrigerators controlled from a smartphone.
- Smart security system: cameras, door locks and motion sensors that alert the owner in real time.
A smart grid uses the same electricity infrastructure as a traditional grid (transmission lines, transformers, substations, power grids) but adds IoT devices that communicate with each other and with consumers. Pakistan faces costly electricity and shortages, so smart grids are needed.
- Better fault detection gives more reliable supply; electricity is automatically rerouted during a failure, avoiding a blackout of a whole area, and power is restored quickly.
- Consumers get feedback on their usage and advice to reduce consumption in peak hours, so wastage falls.
- It predicts shortages in advance and produces more accurate bills.
IoMT is the use of IoT in healthcare: medical devices, wearables and hospital equipment with sensors, connected to the Internet and combined with AI, to collect and analyse patients' data.
- Smart beds: sensors observe the vital signs of patients in real time and alert the nurse or doctor to attend the patient urgently when needed.
- Smart ambulances: sensors send the patient's critical data to the hospital during transport, so doctors can guide diagnosis and treatment while the patient is still in the ambulance. In the past many patients died because such support was missing during transport.
A smart home is a residence equipped with IoT-enabled home appliances (TV, oven, washing machine, refrigerator, lights, fans, air conditioner, security cameras) connected to a central hub. The hub receives data from sensors and processes it to take decisions.
- Convenience and remote control: owners control and monitor devices through a smartphone or web interface, even when away.
- Energy saving: sensors detect whether someone is in a room and switch lights or air conditioning on or off, reducing electricity bills.
- Security: smart cameras, door locks and motion sensors alert the owner in real time.
Earthquakes, floods, thunderstorms and landslides are common in Pakistan. IoT helps to anticipate disasters and to reduce loss of life and damage to infrastructure in three ways:
- Real-time data collection and processing: IoT devices collect environmental data (rainfall, water level, ground movement); analysed data helps emergency authorities take the right decisions.
- Monitoring infrastructure: sensors in dams, bridges and buildings report cracks, stress or rising water, so action can be taken before failure.
- Search and rescue: rescue robots and drones with cameras help responders find and rescue trapped people quickly.
A distributed ledger is a database of records or transactions whose identical copies are shared among many network users (nodes), instead of being kept on one central server. Blockchain is a distributed ledger that grows as new blocks are added.
Data on a Blockchain is tamper-proof because:
- Each block stores the cryptographic hash of the previous block. Changing data in one block changes its hash and breaks the link with the next block.
- Every node keeps a copy, so a changed copy does not match the others and is rejected.
- Once recorded, data cannot be changed (immutability), so fraud is detected easily.
Pakistan's paper ballot system has faced allegations of rigging and manipulation. Blockchain can transform voting:
- Each vote is recorded as a transaction on a distributed ledger that is transparent and immutable, so votes cannot be added, removed or changed secretly.
- This ensures the accuracy, security and integrity of the voting process and prevents fraudulent activities.
- Voters are confident that their vote is counted and that the result is accurate.
- Counting is faster and the voting process becomes more efficient and less costly.
Hospitals in Pakistan and worldwide face data security issues. Sensitive medical data, diagnostic images and patient records must be protected. Blockchain helps because:
- Cryptographic algorithms protect the records, so only authorized people can read them.
- Immutability means records cannot be altered, reducing the risk of data loss through unauthorized access and breaches.
- It increases privacy, transparency and accessibility of patient data, so authorized doctors in different hospitals can see a patient's true history.
Cloud computing provides hosted services (storage, software, servers) over the Internet on demand. In education it improves overall institutional efficiency:
- Cloud-based solutions streamline administrative tasks such as student enrolment, grade management and attendance tracking.
- A Learning Management System (LMS) gives easy access to course material, assignments, assessments and announcements, and allows easy interaction with teachers and staff.
- Online classes, workshops and training can be held, saving cost and reaching students anywhere.
A neural network processes information layer by layer through three kinds of layers of neurons:
- Input layer: receives raw data (text, image, video) from the outside world; each neuron represents one feature of the input and passes it to the hidden layer.
- Hidden layers: one or more layers between input and output that process the data; their number and size depend on the complexity of the problem.
- Output layer: the final layer that produces the result; it has one neuron (for example spam or not spam) or many neurons when several outputs are needed.
Layers are joined by synapse connections, each carrying a weight.
- Weights
- Numerical values associated with the connections between neurons. They decide how much one neuron's output influences the next neuron's input, acting as coefficients that increase or decrease the importance of information. Purpose: to fine-tune the network so it makes accurate predictions; they are adjusted during training to reduce error.
- Biases
- Numerical constants associated with each neuron and added to the neuron's output. Purpose: to give adaptability and flexibility, so a neuron can activate even when its input is below the threshold. This helps the network handle complex patterns and make better predictions.
| Activation function | Loss function |
|---|---|
| Works inside each neuron. | Works on the output of the whole network. |
| Decides whether a neuron should be activated, that is, whether its input is important for predicting the output. | Measures how well the predicted outputs match the true outputs. |
| If its value reaches a threshold, the neuron's output passes to the next layer; otherwise nothing is passed. | Its value (the loss) is minimized during training by adjusting the weights. |
| Used in feedforward propagation and to map inputs to the desired output in the last layer. | Used in backpropagation to evaluate and optimize the model. |
Deep learning uses deep neural networks with many hidden layers. Such networks have a very large number of weights and biases to adjust, so:
- They need vast amounts of data to learn hidden patterns and features correctly without human help.
- Training takes more time, so high-performance computers with a GPU (Graphical Processing Unit) are used; a GPU can process many data sets at the same time.
Compared with ordinary machine learning: ML can work with smaller data on ordinary computers and often needs humans to choose features, while deep learning extracts features autonomously and keeps improving its decisions as more data is given.
Data privacy is the ability of a person to control his personal information and to know when, how and what personal information is shared with others. It applies to sensitive data such as PII, Personal Health Information (PHI) and financial information of businesses.
Personal Identifiable Information (PII) is any information that can identify a particular person. Examples: name, CNIC or employee ID number, email or postal address, date of birth and contact number. If PII is leaked it can be used for identity theft or fraud, so it must be protected. Data such as weather forecasts or traffic statistics is not PII because it does not identify a person.
Governments have made data protection regulations to prevent misuse of personal information.
- GDPR (General Data Protection Regulation): rules and regulations on how the personal data of individuals in the European Union (EU) can be collected, stored and processed.
- CCPA (California Consumer Privacy Act): requires that consumers know what personal data is collected about them and gives them control over it, such as the right that it is not disclosed or sold to others.
They safeguard people by limiting how organizations collect and use data, giving individuals rights over their data, and punishing organizations that break the rules. More countries may pass such laws in future.
Data governance refers to how data is collected, stored and processed and who can have access to what kind of data in an organization.
Clear data governance policies are important because:
- They make sure data is handled in compliance with laws and regulations.
- Inconsistent or conflicting policies cause confusion, inefficiency and even legal issues, and are a main source of data privacy conflicts.
- They define data availability, usability, integrity and security, so stakeholders know exactly what may be shared and with whom.
Cities such as Lahore and Karachi suffer severe air pollution from industrial and vehicle emissions, brick kilns and crop burning, causing respiratory and heart diseases. The system below works in three stages.
Stage 1: IoT-based real-time data collection using sensors
Deploy a network of IoT sensors across the polluted region: on poles, schools, hospitals and near factories. They measure pollutants (\ce{CO}, \ce{NO2}, particulate matter) and conditions such as temperature and humidity. Readings are sent by wireless communication (Wi-Fi) to a central network hub, which forwards them to the cloud.
Stage 2: Cloud platform for data storage and processing
A cloud platform such as AWS or Google Cloud receives and stores the massive data, including historical data. Machine learning and data visualization calculate the Air Quality Index (AQI) in real time. When pollution exceeds a set level the platform generates alerts and notifications. Based on history and patterns it predicts future air quality.
Stage 3: Blockchain for transparency and security
Readings are recorded on a Blockchain ledger, so they are tamper-proof and authentic. No factory or official can alter the data to hide violations.
Integration and user interface
The three parts are joined by defining data formats, communication protocols and security measures. A web dashboard and mobile app show AQI maps, trends and alerts to citizens and the environment department, which can close polluting units, restrict traffic or advise people to stay indoors.
Floods are common in Pakistan when rivers and lakes overflow after excessive rain, causing loss of life and property. Integrating IoT, cloud computing and Blockchain gives real-time monitoring, analysis and secure information sharing, allowing early warning and efficient response.
1. IoT-based real-time data collection
IoT sensors are installed in flood-prone areas, on rivers, dams and bridges. They monitor water level, rainfall, temperature, humidity, wind speed and direction, and water temperature in real time. Data is sent wirelessly to the cloud. This is the core of the system.
2. Cloud computing for storage and processing
- Stores and analyses large volumes of flood data securely.
- Machine learning identifies patterns and predicts flood risk.
- Computer vision and image processing create real-time maps of flood zones.
- When a reading exceeds its upper limit, an alarm goes to the administrator for timely evacuation and preparedness.
- Different agencies (NDMA, district administration, rescue services) coordinate on one platform.
3. Blockchain for transparency and security
- Keeps an immutable, transparent record of flood events.
- Tracks the movement of relief materials and the progress of recovery.
- Ensures aid reaches the people who need it and prevents corruption.
Result: proactive planning, early warnings (for example through the NDMA app), better safety and reduced damage.
IoT in smart grid
Electricity in Pakistan is expensive and in short supply. A smart grid adds communicating IoT devices to the ordinary grid (transmission lines, transformers, substations).
- Better fault detection gives reliable supply; power is rerouted automatically in a failure, avoiding area-wide blackouts, and restored quickly.
- Consumers get feedback on usage; in peak hours the app advises them to reduce consumption, so wastage falls.
- Production is analysed to predict shortages, so companies can prepare.
- Bills become more accurate.
IoT in agriculture
Agriculture is the backbone of Pakistan's economy, and food demand rises with population. Smart agriculture uses IoT:
- Sensors give real-time weather information to farmers.
- Data on temperature, humidity, rainfall and soil condition makes farming controlled, precise and efficient.
- Drones monitor planting and crop health, spray fertilizer and pesticides and help irrigation.
- Production cost falls and farm income and the economy grow.
Overall improvement: both applications use the same IoT pattern: sensors collect real-time data, the network sends it to the cloud for analysis, and the result is used to take automatic or informed decisions. For Pakistan this means less load-shedding and lower bills in the energy sector, and higher crop yield, lower cost and better food security in agriculture.
A neural network is a simulation of the working of the human brain: a network of neurons that receive and send information to make predictions and solve complex problems. A neuron is its computational unit.
Layers
- Input layer: receives raw data; each neuron is one feature.
- Hidden layers: process the data; their number depends on the problem's complexity.
- Output layer: produces the final result.
Neurons of one layer pass information to the next through synapse connections.
Weights, biases and activation function
- **Weights (w):** numbers on the connections that set the importance of each input; they are adjusted during training to make predictions accurate.
- **Bias (b):** a constant added in each neuron that gives flexibility, letting the neuron activate even below the normal threshold.
- **Activation function (f):** decides whether the neuron is activated; if the value reaches the threshold, the output is passed to the next layer, otherwise it is not.
Example: in a spam filter, input neurons receive features of an email (number of links, certain words). Weights make important features count more, biases shift how easily hidden neurons fire, and the single output neuron gives \"spam\" or \"not spam\". During training the weights and biases are adjusted until the loss function shows the smallest error.
The four terms are distinct but closely related; each is a subset of the one before it.
- Artificial intelligence: the core field that creates machines able to simulate human intelligence. Examples: robotics, computer vision, virtual assistants.
- Machine learning: a subset of AI that develops algorithms which learn from training data without explicit programming. Examples: email spam filtering, online fraud detection, product recommendation.
- Neural network: a subset of ML that simulates the human brain to recognize patterns and make intelligent decisions. Examples: image recognition, stock market prediction, weather forecasting.
- Deep learning: a specialized form of ML that uses neural networks with multiple hidden layers, especially for large data sets. Examples: language translation, NLP, self-driving car, healthcare diagnostics, playing chess.
How they work together: a self-driving car
The goal of a self-driving car, to drive like an intelligent human, is AI. The car's software learns from millions of recorded driving examples instead of hand-written rules, which is ML. The learning is done by neural networks that recognize traffic signs, lanes and pedestrians in camera images. Because the images are complex and the data is huge, the networks have many hidden layers and are trained on GPUs, which is deep learning. So every deep learning system is also a neural network, an ML system and an AI system, but not every AI system uses deep learning (for example a simple rule-based chess program).
Cloud computing is the use of hosted services such as servers, data storage, databases, networking and software over the Internet. The services are maintained by a cloud service provider and are available on demand, so data can be reached from anywhere with an Internet-connected device.
Healthcare
- Doctors view, share and update patients' medical records in real time.
- Complete past history helps better treatment.
- Telemedicine allows virtual consultation by video conferencing for patients who cannot travel.
- Patients access their reports, lab results and doctor's notes online.
Transport
- Intelligent transport systems streamline operations and improve collaboration.
- Better fleet management, route planning and freight tracking.
- E-ticketing improves passengers' travelling experience; mobile access helps partners and customers.
Software development
- On-demand storage and processing power for developers.
- Pay-as-you-go saves cost; resources are added when needed and removed when unused.
- Real-time collaboration from any location with tools such as Dropbox and Google Drive speeds up development.
Why it matters for Pakistan: hospitals, transport companies and software houses do not have to buy and maintain costly servers. They pay only for what they use, can grow quickly and can serve people in remote areas through the Internet, which saves cost and improves services.
After the sources of a data privacy conflict are identified, stakeholders resolve it in two further steps.
Negotiate and compromise
- Stakeholders negotiate trade-offs between their interests and objectives, and establish common ground for mutual agreement.
- They hold dialogue to understand each party's priorities and limitations.
- They balance the need for data access and usability with the need for data protection and encryption.
- They balance data completeness and accuracy with data minimization (collect only what is necessary) and data anonymization (remove PII, for example house numbers from addresses).
Implement the solutions
- Adopt a data privacy framework covering all aspects of the data governance strategy.
- Apply data privacy tools: encryption, data loss prevention, firewalls, to control what is shared.
- Monitor compliance with privacy policies and laws.
- Conduct training programs so employees at all levels understand and support the policy.
- Take feedback from all stakeholders to check effectiveness and improve.
Example: a hospital's research team wants complete patient records, while patients want privacy. After dialogue, the hospital shares records only after anonymization (names and CNIC numbers removed), collects only the fields needed for the study, encrypts the data and trains its staff. Researchers still get useful data and patients' identities stay protected.
This approach protects each stakeholder's interest while still allowing useful data sharing, which is the acceptable compromise the curriculum expects.
FBISE 2026 questions
Questions from the FBISE HSSC-II 2026 (1st Annual) papers that belong to this unit, answered the way an examiner expects.
- AProcessing unit
- BInput layer
- COutput layerAnswer
- DHidden layer
The output layer is the final layer that produces the output. The input layer only receives raw data, and hidden layers process it in between. \"Processing unit\" is not a layer.
- ATraffic flow statistics
- BEmployee ID numberAnswer
- CWeather forecast data
- DCompany revenue reports
PII identifies a particular person: names, ID numbers, addresses, birth dates, contact numbers. An employee ID number points to one person. The other options are general data about traffic, weather or a company.
Robotics is the branch of computer science and engineering that designs, builds and operates robots. Deep learning is heavily used to build robots that perform specific tasks with little or no human intervention.
- Sensing: a robot has sensors, cameras and microphones. Deep neural networks with many hidden layers process these images and sounds to recognize objects, people, speech and obstacles.
- Learning: the network is trained on huge data sets (by feedforward and backpropagation) so the robot learns tasks such as picking, sorting or moving, and improves as more data is given.
- Acting: the computer that controls the robot uses the network's output to decide and act, for example in manufacturing, moving goods in warehouses, packaging medicine, performing operations, handling hazardous material or working in extreme temperature.
Concept of Blockchain (2 marks)
Blockchain is a distributed ledger (database) of records or transactions shared among many network users. The ledger keeps growing as new records, called blocks, are added. Blocks are chained together using cryptography: each block stores the hash of the previous block, so changing one block breaks the chain. Once data is recorded it cannot be changed (immutability). This increases security against fraud, increases transparency and reduces vulnerability to cyber attacks.
One application (1 mark)
Voting: each vote is recorded on the transparent, immutable ledger, so rigging and manipulation are prevented and voters trust that their vote is counted and the result is accurate. (Other acceptable applications: banking, healthcare records, verification of degrees.)
Air pollution from industries, vehicles and homes causes heart disease, lung cancer and eye irritation in Pakistan's cities. IoT helps control it for three reasons:
- Real-time monitoring: IoT sensors across the city measure pollutants such as \ce{CO} and \ce{NO2} plus temperature and humidity, and send the data wirelessly to the cloud.
- Forecasting and trends: the cloud processes the data with machine learning to calculate the Air Quality Index, show trends and forecast pollution.
- Quick, intelligent response: when pollution exceeds a limit, alerts reach authorities and citizens, so polluting sources can be controlled and people protected in time.
IoT in the healthcare sector (2.5 marks)
IoT combined with AI has created the Internet of Medical Things (IoMT). It improves doctors' productivity and hospital workflow.
- Patients' data is saved in the cloud, where machine learning finds patterns to diagnose disease and recommend medicines or tests.
- IoT devices track blood pressure, heart rate and oxygen level in real time.
- Smart wearables allow remote patient monitoring at home, saving hospital visits, time and money.
- Smart beds observe vital signs and alert nurses when urgent care is needed.
- Smart ambulances send the patient's critical data to the hospital during transport so treatment starts on the way.
IoT in traffic management systems (2.5 marks)
Traffic congestion in big cities wastes fuel and time, so a smart traffic management system is needed.
- Sensors at traffic lights, roads and highways collect real-time traffic data and send it wirelessly to traffic control rooms.
- Traffic flow is optimized, reducing congestion, improving road safety and lowering accident risk.
- Drivers get real-time information about road conditions, congested areas and hazards.
- RFID tags on cars open gated entrances automatically, saving time.
- Surveillance cameras capture images of traffic rule violators for action by authorities.
How a neural network is trained (1 mark)
A neural network is not given rules. It learns from a set of input data with known correct outputs by repeating two processes, feedforward propagation and backpropagation, until the difference between predicted and actual output (the loss) is minimum. After training it can predict outputs for new data it has never seen.
Feedforward propagation (2 marks)
Information moves in the forward direction: from the input layer, through the hidden layers, to the output layer. Each neuron computes the weighted sum of its inputs plus bias and applies the activation function. Only neurons whose output is above a threshold pass their value to the next layer. The output layer finally produces the predicted result.
Backpropagation (2 marks)
The predicted output is compared with the actual output using the loss function, which tells how well the network is performing. To minimize the loss, the weights (and biases) are modified working backward from the output layer, through the hidden layers, to the input layer. This reduces the difference between actual and predicted output, so the network performs better after each cycle.
- AInput layerAnswer
- BHidden layer
- CNetwork layer
- DOutput layer
Each neuron of the input layer receives raw data from the outside world and passes it to the hidden layer. \"Network layer\" is not a layer of a neural network.
- ABoth require full transparency
- BBoth demand maximum collection
- CNeither affects stakeholders
- DSharing needs openness, privacy needs limitsAnswer
Data sharing needs data to be open and available to many users, while privacy needs limits on who can access personal data and for what purpose. So they have conflicting requirements. The other options are false: neither requires full transparency or maximum collection, and both affect stakeholders.
IoT combined with AI has produced the Internet of Medical Things (IoMT), which improves doctors' productivity and hospital workflow:
- Real-time tracking: IoT devices measure blood pressure, heart rate and oxygen level continuously; data saved in the cloud is analysed by machine learning to diagnose disease and suggest treatment.
- Remote patient monitoring: smart wearables let doctors monitor patients at home, saving visits, time and money.
- Smart beds and smart ambulances: smart beds alert nurses when a patient needs urgent attention; smart ambulances send the patient's critical data to the hospital so treatment starts during transport.
Neural networks learn from input data through feedforward propagation (followed by backpropagation). In feedforward propagation:
- Training data enters the input layer; each input neuron represents one feature.
- Information moves only in the forward direction through the hidden layers. Each neuron computes the weighted sum of its inputs plus its bias and applies the activation function; only neurons whose value exceeds a threshold pass their output to the next layer.
- The output layer produces the prediction. This prediction is compared with the actual output by the loss function, and backpropagation then adjusts the weights. Repeating the cycle trains the network.
Cloud computing (1 mark)
Cloud computing is the use of hosted services such as servers, data storage, databases, networking and software over the Internet. These services are maintained by a cloud service provider and are available on demand, so users can store data and software on the cloud and access them from anywhere with an Internet-connected device.
One application (2 marks)
Healthcare: hospitals keep patients' medical records on the cloud, so doctors can view, share and update them in real time and give better treatment based on the complete history. Telemedicine platforms on the cloud allow video consultation with patients who cannot travel, and patients can see their lab reports online. (Other acceptable applications: education through LMS, banking, business, transport e-ticketing, Netflix and YouTube, software development.)
Deep learning (1 mark)
Deep learning (DL) is an AI technology, a specialized form of machine learning, that uses deep neural networks (neural networks with multiple hidden layers) to enable computers to autonomously extract hidden patterns and features from huge data sets for making decisions. It needs vast data, long training time and GPU-based computers, and its decisions improve as more data is given.
Application 1: Natural Language Processing (2 marks)
NLP allows machines to understand human language in the form of text and speech. DL-based NLP teaches computers and robots to give suitable responses to linguistic inputs. Widely used examples are language translators (such as Google Translate), sentiment analysis of reviews and customer-service chatbots.
Application 2: Self-driving car (2 marks)
A self-driving car is an autonomous vehicle based on DL that senses its environment and operates without a human driver. It uses data from cameras, sensors and geo-mapping to calculate distances to nearby objects, detect traffic lights, recognize road signs and avoid pedestrians. Tesla is an example. Such cars can help elderly and physically disabled people to travel.
Blockchain (1 mark)
Blockchain is a distributed ledger (database) of records or transactions shared among many network users. It grows as new records (blocks) are added, and the blocks are chained together using cryptography, which increases security against fraud and increases transparency. Once recorded, data cannot be changed.
Blockchain in the banking industry (2 marks)
Online banking has made transfers easy but exposed banks to data breaches and cyber threats, in Pakistan as elsewhere. Blockchain integrated with cyber security solves these problems:
- Every transaction is recorded permanently on a shared ledger that cannot be secretly altered, so financial fraud is eliminated.
- Operations become more secure and transparent.
- Transactions are processed efficiently and at lower cost, without many middle steps.
Blockchain in the education sector (2 marks)
Degrees, diplomas and certificates are kept manually, so verification is slow and fake credentials are used.
- Records on a distributed ledger make record-keeping efficient, secure and transparent and eliminate fake degrees.
- Verification by employers and universities becomes simple and quick.
- Students' academic records and administrative processes become more secure, and students get complete control of their certificates because they are saved on the Blockchain, not only on institutions' servers.
Exam focus
- How is a neural network trained? Explain feedforward and backpropagation. (long)Asked in both 2026 sets (Set B Q.6 OR as 5 marks, Set D Q.2 (xii) OR as 3 marks).Go to answer
- What is Blockchain? Explain its applications in banking and education (or give one application). (long)Asked in both 2026 sets (Set D Q.5, Set B Q.2 (xiii)); the definition words also give MCQs.Go to answer
- How IoT helps in healthcare and in traffic management. (long)Set B Q.5 and Set D Q.2 (xii) in 2026; learn smart wearables, smart beds, smart ambulances, RFID and cameras.Go to answer
- How IoT can help control air pollution in Pakistan. (short)Book short Q3 was repeated as Set B Q.2 (xiv); the three-stage design can also come as a long question.Go to answer
- What is deep learning? Describe two applications (NLP, self-driving car, robotics, healthcare). (long)Set D Q.4 OR and Set B Q.2 (xii) OR (robotics) in 2026.Go to answer
- Cloud computing: definition and applications (business, education, healthcare). (short)Set D Q.2 (xiv) in 2026 and book short Q9.Go to answer
- Layers of a neural network, weights, biases, activation and loss function. (short)Source of several MCQs (layers in both 2026 sets) and likely short questions.Go to answer
- Neural network model to predict the price of a house or mobile phone. (long)Book long Q3; tests layers, weighted sum and training together.Go to answer
- Data privacy, PII, data minimization and anonymization. (short)2026 MCQs on PII and on why sharing and privacy conflict; book short Q10.Go to answer
- Reasons for data privacy conflicts and data governance steps to resolve them. (long)Three of the book's seven long questions come from 5.8.6 to 5.8.8.Go to answer
- OECD principles on data sharing and privacy. (long)Book long Q7; a list of eight principles is easy to score.Go to answer