Every data science project follows a similar lifecycle. Knowing the stages helps you plan work, avoid skipping steps and explain progress to stakeholders. Popular frameworks such as CRISP-DM describe the same flow.
What You Will Learn
- The 7 stages of a project
- What happens and what is produced at each stage
- How much time each stage takes
- CRISP-DM
- Common pitfalls
The Stages
| # | Stage | Key questions | Output |
|---|---|---|---|
| 1 | Problem definition | What decision will this support? How will we measure success? | Goal, metric, scope |
| 2 | Data collection | Where does the data live? Is it enough and allowed? | Raw data (SQL, APIs, files) |
| 3 | Data cleaning | Missing values, duplicates, wrong types, errors? | Clean dataset – guide |
| 4 | Exploratory analysis | What patterns, relationships and outliers exist? | Insights, charts – EDA |
| 5 | Feature engineering & modelling | Which features and algorithms work best? | Trained, validated model – features |
| 6 | Evaluation | Does it beat a baseline on unseen data and meet the business goal? | Metrics, error analysis – metrics |
| 7 | Deployment & monitoring | How do users get predictions? Is performance stable? | API, dashboard, monitoring – deployment |
Where the Time Goes
Surveys of practitioners consistently find that collecting, cleaning and preparing data takes the largest share of project time – often more than modelling. Plan for it.
CRISP-DM
| CRISP-DM phase | Matches stage(s) |
|---|---|
| Business Understanding | 1 |
| Data Understanding | 2, 4 |
| Data Preparation | 3, 5 (features) |
| Modeling | 5 |
| Evaluation | 6 |
| Deployment | 7 |
Example: Churn Prediction
- Goal: reduce customer churn; metric: recall of churners at fixed precision.
- Pull customer, usage and billing tables with SQL.
- Fix missing charges, convert types, remove duplicate customers.
- Find that month-to-month contracts churn most.
- Create tenure groups, train logistic regression and gradient boosting.
- Compare with a “predict no churn” baseline; check recall.
- Serve with FastAPI; monitor drift monthly.
The full build is in the end-to-end churn project.
Common Pitfalls
- Starting to model before agreeing on the business metric.
- Data leakage – using information not available at prediction time.
- Evaluating on training data.
- Never deploying, or deploying without monitoring.
Series
Data Science series: What is Data Science · Lifecycle · Data Cleaning · EDA · Outliers · Feature Engineering · Visualization · Seaborn · Roadmap
Interview Questions
Q: Name the stages of a data science project.
Problem definition, data collection, cleaning, EDA, feature engineering and modelling, evaluation, deployment and monitoring.
Q: What is CRISP-DM?
A standard six-phase process model for data mining and data science projects.
Practice Exercises
- Write the 7 stages for a project predicting house prices in your city.
- List three possible sources of data leakage in a loan-default model.
Summary
A project moves from problem to data to cleaning, EDA, modelling, evaluation and deployment – and loops back. Most effort goes into data preparation.
Machine Learning Tutorials, Courses and Certifications