← Fundamentals 1.2 Β· Fundamentals

The Data Science Lifecycle

Six iterative stages take every project from business question to production system β€” and back again. Mastering each stage is what separates teams that ship from those that don't.

πŸ“š 5 min readβ€’Updated: October 2025
The Six Stages

Iterative, not linear

Teams regularly revisit earlier phases β€” data exploration may reframe the problem, deployment may expose gaps, monitoring may trigger retraining.

🎯
Problem
Definition
πŸ—„οΈ
Data
Acquisition
πŸ”
Exploration &
Preparation
🧠
Modelling
πŸš€
Deployment
πŸ“‘
Monitoring &
Iteration

Monitoring feeds back into earlier stages β€” the lifecycle loops rather than ending.

Overview

Six stages at a glance

🎯

1 Β· Problem Definition

Align stakeholders on the business outcome, success metrics, and operational constraints before a single line of code is written.

  • Define success metrics (NPS, retention rate, ticket volume)
  • Document error tradeoffs and explainability needs
  • Time-box to 1–2 weeks to avoid misdirection
πŸ—„οΈ

2 Β· Data Acquisition

Identify, assess, and ingest every relevant source β€” involve domain experts early to surface non-obvious signals.

  • Map sources: demographics, transactions, web interactions
  • Assess quality: missing values, staleness, structural breaks
  • Sample before committing to flawed data
πŸ”

3 Β· Exploration & Preparation

EDA surfaces structure, quality issues, and predictive signals; preparation transforms raw data into model-ready features.

  • Validate assumptions; investigate outliers
  • Encode, scale, and engineer features
  • Create train / validation / test splits
🧠

4 Β· Modelling

Select algorithms, train, tune, and evaluate β€” always starting with baselines to confirm learnable signal exists.

  • Match problem type: classification, regression, clustering…
  • Balance interpretability, latency, and memory footprint
  • Involve stakeholders in final model selection
πŸš€

5 Β· Deployment

Transform notebook prototypes into reliable production systems with proper engineering practices at their core.

  • Modular code, config management, error handling, logging
  • Choose architecture: batch, REST API, stream, or edge
  • Automated testing and documentation throughout
πŸ“‘

6 Β· Monitoring & Iteration

Deployment is the beginning, not the end β€” models degrade silently as real-world data drifts from training distributions.

  • Monitor prediction distributions and performance metrics
  • Automate: detect drift β†’ retrain β†’ evaluate β†’ promote
  • MLOps infrastructure often exceeds initial model effort
Stages 1 – 3

From question to clean data

1

Problem Definition

Articulate the business outcome, success criteria, and constraints before touching data. Vague goals β€” "improve customer experience" β€” provide insufficient guidance for any technical team. Rushing past this stage is the most common cause of project failure.

Practical questions to answer upfront: which decision does this improve and who currently makes it? Are false positives or false negatives more costly? What are the latency requirements β€” real-time scoring or overnight batch? Does regulation or customer expectation demand explainability? Is deployment on-premises or cloud?

Concrete success metrics guard against scope drift: lift Net Promoter Score by 5 points, reduce support ticket volume by 20%, double customer retention rate β€” each measured against an agreed baseline.

Key Insight β€” Time invested in problem definition pays compound returns: 1–2 weeks of stakeholder alignment prevents months of misdirected effort downstream.
Constraint checklist
  • Latency requirements (real-time vs overnight batch)
  • Explainability (customers, regulators)
  • Deployment environment (on-premises, cloud, edge)
  • Cost of false positives vs false negatives
  • Success metrics with baseline: NPS, retention rate, support ticket volume
2

Data Acquisition

Identify, assess, and ingest every relevant source. Timelines in large organisations regularly exceed estimates β€” siloed systems and competing team priorities mean data access alone can consume months before a single model is trained.

Brainstorm sources with domain experts, not just engineers. For a customer churn model the obvious sources are customer demographics and transaction histories; the non-obvious ones β€” support ticket text, community forum engagement β€” often prove most predictive. Other common sources include website interactions, product usage logs, and external market data.

Examine a real sample early. A data quality assessment should flag: missing values percentage, inconsistencies across systems, update lag, and structural breaks caused by historical regime changes. Discovering these after months of modelling work is expensive.

3

Exploration & Preparation

Exploratory data analysis (EDA) serves multiple purposes simultaneously: building familiarity with the data, uncovering quality issues before they corrupt a model, generating hypotheses about predictive relationships, identifying promising features, and spotting outliers that need investigation.

Preparation steps β€” handling missing values, categorical encoding, numeric scaling, and creating train/validation/test splits β€” are mechanical. Feature engineering is not. Transforming raw transactions into average order value, purchase frequency, and days since last purchase for an e-commerce churn model requires domain understanding and creativity. This stage rewards practitioners who combine technical skill with business intuition.

Stages 4 – 6

From model to production value

4

Modelling

Select algorithms, train on historical data, tune hyperparameters, and evaluate rigorously. Strong foundations in stages 1–3 cannot be replaced by sophisticated modelling β€” a brilliant algorithm applied to the wrong problem or dirty data will still fail.

The problem type shapes algorithm selection: classification (is this customer churning?), regression (what will this customer's spend be?), clustering (which segments exist?), ranking (which offer to show first?), generation (what response fits this query?). Start with a baseline model β€” a simple rule or logistic regression β€” to confirm that learnable signal actually exists before investing in complexity.

Model selection balances competing constraints: interpretability for regulated domains, training time for fast iteration cycles, inference latency for real-time applications, memory footprint for edge deployment, and maintenance requirements over the model's production life. Involve decision-makers in this selection β€” the highest-scoring technical metric rarely maps directly to business value.

5

Deployment

A model running in a Jupyter notebook delivers no business value. Deployment transforms prototype code into a reliable system serving predictions at scale β€” and this transformation is far harder than it looks.

Production requirements that notebooks lack: modular code structure, configuration management, comprehensive error handling, structured logging, automated testing, and documentation. Each is non-negotiable at scale.

Deployment architectures
  • Batch β€” periodic processing: nightly, hourly, or event-triggered
  • REST API β€” synchronous, essential for user-facing applications
  • Stream processing β€” real-time, event-by-event predictions
  • Edge β€” on-device inference for latency or connectivity constraints
6

Monitoring & Iteration

Deployment is the beginning of the production lifecycle, not the end. Real-world data distributions shift β€” customer behaviour changes, product catalogues evolve, economic conditions move β€” and models degrade silently in response.

Two monitoring tracks run in parallel: prediction distribution monitoring detects when current inputs diverge from the training distribution; performance monitoring tracks model accuracy over time. The second is harder β€” ground truth labels often arrive with significant delay, making immediate performance assessment impossible.

The solution is automated retraining pipelines: drift detection triggers retraining, a new model version is evaluated, then promoted to production or rolled back if it underperforms. Building and operating this MLOps infrastructure typically requires more engineering effort than the initial model development.

Effort Distribution

Where time actually goes

Modelling consumes a smaller share of project effort than most practitioners expect. The surrounding stages β€” defining, acquiring, cleaning, deploying, and monitoring β€” dominate real-world timelines.

Exploration & Preparation consistently accounts for the largest single share of effort β€” a finding that surprises practitioners who assume modelling dominates.
Context Matters

Lifecycle variations

⚑

Agile & GenAI adaptations

  • Agile sprints: 2-week cycles deliver incremental value rather than disappearing for months
  • GenAI β€” data acquisition: curating prompt examples and evaluation sets replaces large training corpora
  • GenAI β€” exploration: prompt engineering replaces traditional feature engineering
  • GenAI β€” modelling: foundation model selection and RAG replace training from scratch
🏒

Org size & domain requirements

  • Small company: simple infrastructure compresses timelines β€” weeks from definition to production
  • Large enterprise: complex governance and siloed data β€” access alone can consume months
  • Medical / regulated: rigorous clinical validation and regulatory approval add substantial time
  • Financial services: fairness testing and explainability requirements shape model selection throughout
Failure Modes

Pitfalls and mitigations

❌ Common pitfalls

  • Insufficient problem definition
  • Data quality underestimation
  • Premature modelling before understanding data
  • Late deployment consideration
  • Inadequate evaluation
  • Ignored production monitoring

βœ“ Mitigation strategies

  • Explicit documentation and stakeholder review
  • Early data assessment with real samples
  • Dedicate time to exploration before modelling
  • Consider deployment architecture from the start
  • Multiple validation strategies
  • Dedicated operational support post-launch

Key takeaways

  • The lifecycle is iterative, not linear β€” revisiting earlier stages is normal and expected
  • Each stage contributes essential value; neglecting any one undermines the whole
  • Problem definition and deployment are as important as modelling itself
  • Monitoring and iteration transform one-time projects into continuous improvement systems
  • Timeline estimates must account for iteration, uncertainty, and organisational complexity
  • Context determines the right lifecycle shape β€” small startup vs large enterprise vs regulated domain vs GenAI