Computer Lecture 5 6
Computer Lecture 5 6
Applications in Pharmacy
(Theory)
PHARM 519
Cr.Hr.03
What Is Data Processing?
Data in its raw form is not useful to any organization. Data
processing is the method of collecting raw data and translating it
into usable information. It is usually performed in a step-by-step
process by a team of data scientists' and data engineers in an
organization. The raw data is collected, filtered, sorted, processed,
analyzed, stored, and then presented in a readable format.
Data processing is essential for organizations to create better
business strategies and increase their competitive edge. By
converting the data into readable formats like graphs, charts, and
documents, employees throughout the organization can
understand and use the data.
Importance of Data Processing
• Helps in Decision-making – Organizations use processed
data for informed business decisions.
• Enhances Efficiency & Productivity – Data processing
speeds up workflows and improves accuracy.
• Ensures Data Accuracy & Reliability – Reduces errors
and inconsistencies in data.
• Supports AI & Automation – Structured data is essential
for AI-driven analysis and automation tools.
Data Processing Cycle
The data processing cycle consists of a series of steps where
raw data (input) is fed into a system to produce actionable
insights (output). Each step is taken in a specific order, but
the entire process is repeated in a cyclic manner. The first
data processing cycle's output can be stored and fed as the
input for the next cycle
Data Processing Cycle
Step 3: Input
In this step, the raw data is converted into machine
readable form and fed into the processing unit. This can be
in the form of data entry through a keyboard, scanner or
any other input source.
Example: Inputting customer survey results into a database.
Data Processing Cycle
Step 4: Data Processing
Supervised Learning
Definition: Supervised learning is a type of ML where models learn from
labeled training data.
•Examples:
• Spam Detection: Email filters classify emails as spam or not
spam.
• Medical Diagnosis: AI predicts diseases based on symptoms
and medical records.
• Fraud Detection: Banks use supervised learning to detect
fraudulent transactions.
• Stock Market Prediction: AI predicts stock prices based on
historical data.
Supervised Learning Models
Regression Model
Definition: Regression models predict continuous numerical
values based on input variables.
•How It Works: Uses historical data to learn relationships
between variables and make predictions.
•Example Applications:
• House Price Prediction: Predicting property prices
based on factors like location, size, and amenities.
Supervised Learning Models
Classification is a Supervised
Learning technique where the
model learns to categorize data
into predefined classes or labels.
It predicts discrete values by
analyzing input data and
assigning it to a specific
category.
Supervised Learning Models
Decision Trees & Random Forest (Supervised Learning)
•Definition: Decision trees classify data by learning decision rules from
input features. Random forest combines multiple decision trees for better
accuracy.
•How It Works: Splits data into nodes based on the most significant
features and predicts outcomes.
•Example Applications
• Spam or Not Spam (Email Classification)
• Malignant or Benign Tumor (Medical Diagnosis)
Unsupervised Learning
Unsupervised Learning is a type of Machine Learning where the
model is trained on unlabeled data, meaning there are no
predefined categories or correct answers. Instead, the model finds
hidden patterns, structures, or relationships in the data without
human supervision.
Difference Between Supervised and
Unsupervised Learning
Unsupervised
Feature Supervised Learning
Learning
Labeled Data labeled dataset unlabeled dataset
Predict output based Find hidden patterns
Goal
on past data & structures
Customer
Spam detection,
Examples segmentation, fraud
disease prediction
detection
Classification,
Techniques Used Clustering, Association
Regression
Unsupervised Learning
•Clustering models group similar
data points without predefined
labels.
•How It Works: Uses distance-
based algorithms to cluster related
data points.
•Example Applications:
• Customer Segmentation:
Grouping customers based on
purchasing behavior.
• Market Basket Analysis:
Finding relationships
between frequently bought
items.
Neural Networks & Deep Learning
•Definition: Neural networks mimic the human brain to recognize
patterns in large datasets.
•How It Works: Consists of interconnected layers of artificial
neurons that process and learn from data.
•Example Applications:
• Image & Speech Recognition: Face recognition, voice
assistants like Siri & Alexa.
• Fraud Detection: Identifying suspicious activities in
transactions.
• Autonomous Vehicles: AI-powered self-driving car
navigation.
Reinforcement Learning
•Definition: AI models learn by interacting with an
environment and receiving rewards or penalties.
•How It Works: Uses trial-and-error to optimize decision-
making strategies.
•Example Applications:
• Self-Driving Cars: Learning safe navigation strategies.
• AI in Gaming: Teaching AI to play and master games like
Chess & Go.
• Robotics: Teaching robots how to move, grasp objects, and
perform tasks.
Methods of Data Collection
Manual Data Collection
•Manual data collection involves gathering information
using traditional, non-digital methods such as paper-
based surveys, interviews, written records, and direct
observation.
Advantages
•Lower Initial Cost – Manual methods do not require
expensive technology, making them more accessible,
especially in resource-limited environments.
•No Technical Expertise Required – Unlike digital
systems, manual data collection does not necessitate
specialized training or knowledge of software.
Manual Data Collection