Artificial Intelligence

Steps of Data Science Methodology (CBSE Class 12 Artificial Intelligence)

Class 12 · Artificial Intelligence

Steps of Data Science Methodology

Every successful Artificial Intelligence (AI) and Data Science project follows a systematic sequence of activities. These activities help data scientists transform raw data into meaningful insights and intelligent solutions. This sequence is known as the Data Science Methodology.

Following a structured methodology ensures that problems are clearly understood, appropriate data is collected, the correct Machine Learning model is developed, and the final solution meets the desired objectives.

Although different organizations may follow slightly different methodologies, the fundamental steps remain almost the same. Each step builds upon the previous one, making the entire process systematic, organized, and reliable.


Learning Objectives

After studying this topic, you will be able to:

  • Understand the complete Data Science Methodology.
  • Explain the purpose of each stage.
  • Understand the importance of following a systematic workflow.
  • Relate each step to real-world Artificial Intelligence projects.
  • Identify the sequence of activities in a Data Science project.

What are the Steps of Data Science Methodology?

Data Science Methodology consists of a series of logical steps followed to solve a problem using data. Each step contributes towards developing a reliable and accurate Artificial Intelligence solution.


Major Steps of Data Science Methodology

  1. Business Understanding
  2. Data Collection
  3. Data Understanding
  4. Data Preparation
  5. Exploratory Data Analysis (EDA)
  6. Model Building
  7. Model Evaluation
  8. Deployment
  9. Monitoring and Improvement

Overall Workflow



Business Understanding

        │

        ▼

Data Collection

        │

        ▼

Data Understanding

        │

        ▼

Data Preparation

        │

        ▼

Exploratory Data Analysis

        │

        ▼

Model Building

        │

        ▼

Model Evaluation

        │

        ▼

Deployment

        │

        ▼

Monitoring & Improvement


Step 1: Business Understanding

Every Data Science project begins with understanding the problem that needs to be solved.

Instead of immediately collecting data or writing code, data scientists first identify the objectives, requirements, stakeholders, and expected outcomes of the project.

Example

A hospital wants to predict whether a patient is at risk of diabetes. Before collecting any data, the hospital must clearly define the objective of the project.


Objectives of Business Understanding

  • Identify the problem.
  • Understand business goals.
  • Define project objectives.
  • Identify success criteria.
  • Understand stakeholder expectations.

Step 2: Data Collection

After understanding the problem, relevant data is collected from different sources.

The quality of the collected data has a significant impact on the quality of the final AI model.


Sources of Data

Source Example
Databases Student records
CSV Files Sales reports
Websites Weather information
Sensors Temperature readings
Online Forms Survey responses
Mobile Applications User activity logs

Example

For predicting student performance, data such as attendance, unit test marks, assignments, practical marks, and previous examination results may be collected.


Step 3: Data Understanding

Once data has been collected, it is examined carefully to understand its structure, quality, completeness, and relevance.

Data scientists identify missing values, duplicate records, incorrect entries, and inconsistencies before proceeding further.


Activities Performed

  • Inspect the dataset.
  • Identify missing values.
  • Check data types.
  • Find duplicate records.
  • Understand relationships among variables.

Step 4: Data Preparation

Raw data cannot usually be used directly for Machine Learning. It must first be cleaned and transformed into a suitable format.

This step is often the most time-consuming stage of a Data Science project.


Data Preparation Includes

  • Handling missing values.
  • Removing duplicate records.
  • Correcting invalid data.
  • Converting data types.
  • Selecting useful features.
  • Formatting datasets.

Example

Suppose a student dataset contains blank attendance values and duplicate records. These issues must be corrected before training a Machine Learning model.


Step 5: Exploratory Data Analysis (EDA)

Exploratory Data Analysis (EDA) helps understand the characteristics of the dataset through statistical summaries and visualizations.

EDA allows data scientists to discover patterns, trends, relationships, and anomalies before building the model.


Common EDA Activities

  • Calculating averages.
  • Finding maximum and minimum values.
  • Generating graphs and charts.
  • Studying relationships between variables.
  • Identifying outliers.

Real-Life Example

A supermarket analyzes customer purchase data to discover which products are frequently purchased together. This information helps improve product placement and increase sales.


Think Like a Data Scientist

A school has collected examination data for the last five years. Before building an AI model to predict students at academic risk, why should the school analyze the dataset instead of directly training the model?

Click to View Answer

Analyzing the dataset helps identify missing values, incorrect records, trends, and relationships. Clean and well-understood data produces more accurate Machine Learning models.


Step 6: Model Building

After the data has been collected, cleaned, and analyzed, the next step is to build a Machine Learning model. During this stage, an appropriate algorithm is selected based on the nature of the problem and the available data.

The selected algorithm learns patterns from historical data and creates a mathematical model that can make predictions for new or unseen data.


Activities Performed

  • Select an appropriate Machine Learning algorithm.
  • Split the dataset into training and testing datasets.
  • Train the model using the training dataset.
  • Generate predictions.

Example

If the objective is to predict house prices, the Linear Regression algorithm may be selected because the output is a continuous numerical value.


Step 7: Model Evaluation

After training the model, it is necessary to evaluate its performance. A Machine Learning model should not be accepted simply because it produces predictions. Instead, its predictions must be compared with actual values to determine how accurately it performs.

Various evaluation metrics such as Accuracy, Precision, Recall, F1-Score, Mean Squared Error (MSE), and Root Mean Squared Error (RMSE) are used depending on the type of Machine Learning problem.


Objectives of Model Evaluation

  • Measure prediction accuracy.
  • Identify errors.
  • Compare different models.
  • Select the best-performing model.
  • Improve model performance.

Step 8: Deployment

Once the model performs satisfactorily, it is deployed into a real-world environment where users can utilize it for making predictions or intelligent decisions.

Deployment means integrating the trained Machine Learning model into an application, website, mobile app, or business system.


Examples of Deployment

  • Online shopping recommendation systems.
  • Hospital disease prediction systems.
  • Bank fraud detection software.
  • Weather forecasting applications.
  • Traffic management systems.

Step 9: Monitoring and Improvement

Deployment is not the final stage of a Data Science project. The performance of the deployed model must be continuously monitored because data changes over time.

If prediction accuracy decreases, the model should be retrained using new data so that it continues to perform effectively.


Activities Performed

  • Monitor prediction accuracy.
  • Collect new data.
  • Retrain the model.
  • Update the deployed system.
  • Improve overall performance.

Complete Data Science Methodology Workflow



1. Business Understanding

          │

          ▼

2. Data Collection

          │

          ▼

3. Data Understanding

          │

          ▼

4. Data Preparation

          │

          ▼

5. Exploratory Data Analysis

          │

          ▼

6. Model Building

          │

          ▼

7. Model Evaluation

          │

          ▼

8. Deployment

          │

          ▼

9. Monitoring & Improvement


Summary of All Steps

Step Purpose
Business Understanding Define the problem and objectives.
Data Collection Gather relevant data.
Data Understanding Study the quality and structure of data.
Data Preparation Clean and transform data.
Exploratory Data Analysis Discover patterns and relationships.
Model Building Train the Machine Learning model.
Model Evaluation Measure model performance.
Deployment Use the model in real applications.
Monitoring & Improvement Continuously improve the deployed model.

Case Study

A bank wants to detect fraudulent credit card transactions using Artificial Intelligence.

Methodology Step Application in the Project
Business Understanding Reduce fraudulent transactions.
Data Collection Collect previous transaction records.
Data Understanding Study transaction patterns.
Data Preparation Remove incomplete and duplicate records.
EDA Identify suspicious behaviour patterns.
Model Building Train a fraud detection model.
Model Evaluation Measure prediction accuracy.
Deployment Integrate into online banking.
Monitoring Continuously improve the model.

Advantages of Following Data Science Methodology

  • Provides a systematic workflow.
  • Improves project planning.
  • Produces reliable AI models.
  • Improves prediction accuracy.
  • Reduces project risks.
  • Facilitates better decision-making.
  • Supports continuous improvement.

Think Like a Data Scientist

An e-commerce company has successfully deployed a recommendation system. After six months, customers begin reporting irrelevant recommendations.

Which step of the Data Science Methodology should now be performed and why?

Click to View Answer

The Monitoring and Improvement step should be performed. Customer preferences and purchasing behaviour change over time, so the model should be monitored, updated, and retrained using new data to maintain its accuracy.


Competency-Based Question

A hospital wants to develop an Artificial Intelligence system to predict the possibility of heart disease in patients.

Describe how the hospital can apply each step of the Data Science Methodology to successfully complete the project.


Activity

Choose any one real-life problem from the following list and identify how each step of the Data Science Methodology can be applied.

  • Weather Prediction
  • House Price Prediction
  • Student Performance Prediction
  • Online Shopping Recommendation
  • Traffic Management System

Common Beginner Mistakes

  • Starting model building without understanding the problem.
  • Ignoring missing or incorrect data.
  • Skipping Exploratory Data Analysis.
  • Evaluating the model without proper testing.
  • Assuming deployment is the final step.
  • Not monitoring model performance after deployment.

Quick Revision

  • Every Data Science project follows a systematic methodology.
  • Business Understanding is the first step.
  • Data Preparation improves data quality.
  • EDA discovers patterns and relationships.
  • Model Evaluation measures prediction performance.
  • Deployment makes the model available to users.
  • Monitoring keeps the model accurate over time.

Memory Trick

Understand → Collect → Prepare → Analyze → Build → Evaluate → Deploy → Improve

Remember the keyword: UCPABEDI


Exam Tips

  • Remember the correct sequence of all Data Science Methodology steps.
  • Understand the purpose of each step instead of memorizing only the names.
  • Practice explaining each step with real-life examples.
  • Differentiate between Data Understanding and Data Preparation.
  • Know why Monitoring and Improvement is necessary after deployment.

Frequently Asked Questions (FAQs)

1. Which is the first step of the Data Science Methodology?

The first step is Business Understanding, where the problem and project objectives are clearly defined.

2. Why is Data Preparation important?

It removes errors, missing values, duplicate records, and inconsistencies, making the dataset suitable for Machine Learning.

3. What is Exploratory Data Analysis (EDA)?

EDA is the process of analyzing data using statistical methods and visualizations to discover patterns, trends, and relationships.

4. What happens during Model Evaluation?

The trained model is tested using evaluation metrics to determine its prediction accuracy and overall performance.

5. Why is Monitoring required after Deployment?

Because real-world data changes over time. Continuous monitoring ensures that the model remains accurate and reliable.


Summary

  • Data Science Methodology provides a structured approach for solving real-world problems.
  • Each step builds upon the previous one to produce reliable Artificial Intelligence solutions.
  • Clean and properly analyzed data leads to better Machine Learning models.
  • Model Evaluation helps select the best-performing model.
  • Monitoring and continuous improvement ensure long-term model performance.

Next Topic: Model Validation Techniques