This is a ready-to-use SOP. Replace every <<FILL: ...>> placeholder with your own specifics, set your document numbers and dates, and route it through your normal document control, review, and approval. A worked filled specimen follows the template so you can see how a completed assessment reads. Verify each cited regulation against the current source before you rely on it.
Document control header
| Field | Entry |
|---|---|
| Document title | AI and Machine Learning Training Data Readiness Assessment |
| Document number | <<FILL: SOP-ID, e.g. SOP-AI-031>> |
| Version | <<FILL: version, e.g. 1.0>> |
| Effective date | <<FILL: effective date>> |
| Supersedes | <<FILL: prior version or "New">> |
| Document owner | <<FILL: role, e.g. Head of Data Governance / Quality Assurance>> |
| Applies to | <<FILL: sites / departments / model types in scope>> |
1. Purpose
This procedure defines how <<FILL: COMPANY NAME>> assesses whether a candidate dataset is fit to train, retrain, or run an AI or machine learning model used in a GxP-relevant workflow. The objective is to confirm, before any modeling begins, that the data is profiled, contextualized, truthfully labeled where applicable, governed under ALCOA+ and lineage controls, split without leakage, and checked for bias, so the eventual model rests on evidence that can be reproduced, investigated, and defended.
2. Scope
This procedure applies to structured and tabular data sourced from process historians, manufacturing execution and batch systems, laboratory information management systems, and quality management systems for training, retraining, or running an AI/ML model that influences a GxP decision, directly or through advisory output. It applies whether the model is built in-house or configured on a vendor platform using <<FILL: COMPANY NAME>> data. It does not cover the model build, testing, or validation itself, which is governed by <<FILL: SOP-ID for AI/ML validation>>, and it does not cover readiness of a text or document corpus for a retrieval-based generative assistant, which requires a companion procedure adapted from the freshness, redaction, chunking, and citation controls specific to that pattern.
3. Responsibilities
| Role | Responsibility |
|---|---|
| Data Engineering | Performs profiling, cleaning, and pipeline implementation; documents every transformation and exclusion. |
| Process or Domain Subject Matter Expert | Judges plausibility and representativeness of the data; defines contextualization and feature logic with Data Engineering. |
| Data Steward (per source system) | Confirms the source system’s data is accurate, accessible, and under governance for the extract. |
| Data Science | Defines the train/validation/test split, checks for leakage, and assesses class balance and bias. |
| Qualified labelers (SME) | Apply labels under the labeling procedure; participate in double-labeling and agreement measurement. |
| Quality Assurance | Reviews the readiness package against this SOP’s acceptance criteria and signs the gate before modeling begins. |
| System Owner | Confirms source system access, extract mechanism, and change control over the readiness pipeline. |
4. Definitions
- Intended use: the specific decision or output the model supports, and how much human review sits between the model and the decision. Drives how much readiness effort is warranted.
- Ground truth: the set of labels or outcomes the assessment team trusts enough to train a model against, established under a documented labeling procedure or drawn from an objective downstream outcome.
- Data lineage: the documented, traceable chain from a source record through every transformation to the value used in the dataset.
- Leakage: any way information from the test set, or from the future, reaches the training or tuning process, inflating reported performance.
- Readiness package: the collected evidence (profiling report, labeling record, feature specification, lineage log, split definition, representativeness analysis) that supports the QA sign-off in section 5.9.
5. Procedure
5.1 Define the intended use and the data it implies
- Record the model’s intended use, the decision it supports, and whether output is advisory (human confirms) or acts with less oversight.
- From the intended use, identify which source systems and record types the model needs.
- Record the intended-use statement on the readiness assessment record (section 8).
5.2 Inventory sources and assign data owners
- List every source system feeding the dataset (historian, MES, LIMS, QMS, or others) and name a data steward for each.
- Confirm each steward has visibility into that source’s known quality issues, outages, or migrations that could affect the extract period.
5.3 Profile the data quality dimensions
- Profile the candidate extract for completeness, accuracy, consistency, timeliness, uniqueness, validity, representativeness, and traceability.
- Set acceptance thresholds for each dimension before profiling, tied to how load-bearing each field is, not a single fixed number applied everywhere.
- Range-check numerics against the process specification, not the data’s own minimum and maximum, since the data may already contain the errors being screened for.
- Document every flagged gap and its planned remediation or documented acceptance.
5.4 Contextualize and define features
- Anchor raw values to their batch, phase, and process context using the execution record (MES or equivalent).
- Define each engineered feature in a written feature specification: its source, its transformation, and confirmation it is reproducible.
- Confirm the exact feature logic used to build the dataset is the same logic that will run at inference time.
5.5 Assess and establish ground truth
- Determine the label source: existing structured records, purpose-built expert labeling, or an objective downstream outcome.
- If labels come from a labeling program, confirm it runs under
<<FILL: SOP-ID for AI/ML ground-truth labeling>>and that inter-rater agreement has been measured against a pre-set threshold. - Record the label version used and its agreement statistics on the readiness assessment record.
5.6 Assess representativeness and bias
- Tabulate coverage of the dataset against the population the model will face in production (products, sites, instruments, operating regimes).
- Quantify class balance for the target variable and select evaluation metrics that are not fooled by imbalance.
- For any under-represented subgroup that is important to the intended use, decide to remediate (collect more data) or explicitly scope it out of the intended use, and record which.
5.7 Apply ALCOA+ and lineage controls
- Keep the source data in its governed system; the extract is a documented true copy, never the only copy.
- Capture the extract query, parameters, and date so the extract can be reproduced.
- Build the cleaning and transformation pipeline as version-controlled, re-runnable code, not manual spreadsheet edits.
- Document every exclusion with a reason on the dataset lineage and exclusion log (see the companion log,
<<FILL: LOG-ID>>or dataset lineage and exclusion log). - Freeze the final dataset, generate a version identifier or hash, and retain it per
<<FILL: retention period / SOP-ID>>.
5.8 Define the split and control leakage
- Identify the grouping unit (batch, lot, or equivalent) and the time structure of the data.
- Split by group to prevent the same batch or lot appearing in both training and test, and by time if the model runs forward in time in production.
- Lock the test set, place it under version control, and use it once.
- Fit every preprocessing transformation (scaling, imputation, feature selection) on training data only.
- Audit each feature for availability at the moment of prediction; remove any that encode the outcome.
5.9 Assemble the readiness package and route for QA sign-off
- Compile the profiling report, feature specification, labeling record, representativeness analysis, lineage and exclusion log, and split definition into the readiness package.
- Route the package to QA for review against the acceptance criteria in section 6.
- QA signs the readiness assessment record (section 8) before any modeling activity begins. Modeling that begins before sign-off is out of procedure and must be stopped and re-scoped.
5.10 Handle a “not ready” outcome
- Where the package fails one or more acceptance criteria, QA returns it with the specific gaps identified.
- The assessment team remediates (re-profile, re-label, re-source) and resubmits; do not proceed to modeling on a conditional or partial sign-off.
- Record the remediation cycle on the readiness assessment record so the history of what was found and fixed is preserved.
6. Acceptance criteria
A readiness assessment is acceptable when all of the following are true:
- The intended use is defined and the data it requires is identified and sourced with named owners.
- Profiling against the quality dimensions is complete, with documented remediation or accepted, justified gaps.
- Features are contextualized, defined in a written specification, and confirmed identical between training and inference.
- Ground truth has a documented source; where labeling was used, inter-rater agreement meets the pre-set threshold and disagreements were adjudicated and recorded.
- Representativeness and bias have been assessed, with any under-covered subgroup either remediated or explicitly excluded from the intended use.
- ALCOA+ and lineage controls are in place: source preserved, extract reproducible, transformations version-controlled, exclusions documented, dataset frozen and versioned.
- The split is grouped and time-appropriate where relevant, the test set is locked and used once, and no feature leaks the outcome.
- QA has reviewed and signed the readiness assessment record before modeling began.
7. Records generated
- Readiness assessment record (section 8 of this SOP).
- Dataset profiling report.
- Feature specification.
- Labeling and inter-rater agreement record (where applicable).
- Dataset lineage and exclusion log.
- Split and leakage-check definition.
8. Record generated: readiness assessment record
| Field | Entry |
|---|---|
| Model / project name | <<FILL>> |
| Intended use statement | <<FILL>> |
| Source systems and owners | <<FILL>> |
| Profiling outcome (dimensions, gaps, remediation) | <<FILL>> |
| Feature specification reference | <<FILL>> |
| Ground truth source and agreement statistic | <<FILL>> |
| Representativeness / bias findings and disposition | <<FILL>> |
| Dataset version / hash | <<FILL>> |
| Split method and leakage check outcome | <<FILL>> |
| Assessment outcome | Ready / Not ready, remediation required |
| Prepared by (name, signature, date) | <<FILL>> |
| QA sign-off (name, signature, date) | <<FILL>> |
9. References
21 CFR Part 11 (electronic records and signatures); EU GMP Annex 11 (computerised systems). FDA, Data Integrity and Compliance With Drug CGMP, Questions and Answers (Guidance for Industry, December 2018). MHRA GxP Data Integrity Guidance and Definitions; PIC/S PI 041, Good Practices for Data Management and Integrity. ICH Q9, Quality Risk Management (for sizing the assessment effort to intended use). GAMP 5 Second Edition (ISPE, 2022), for the computerized system lifecycle the readiness pipeline sits within (reference by title, do not reproduce clauses).
Confirm the current version and clause numbers of each reference before issue.
10. Revision history
| Version | Date | Author | Summary of change |
|---|---|---|---|
<<FILL: 1.0>> | <<FILL: date>> | <<FILL: author>> | Initial issue. |
11. Approvals
| Role | Name | Signature | Date |
|---|---|---|---|
| Author | <<FILL>> | ||
| Reviewer (Data Science) | <<FILL>> | ||
| Approver (Quality Assurance) | <<FILL>> |
Filled specimen
The following shows the readiness assessment record completed for an illustrative model that classifies incoming deviations into criticality tiers to support, not replace, QA triage. The company, systems, and numbers are illustrative; replace them with your own.
| Field | Entry |
|---|---|
| Model / project name | Deviation Criticality Triage Assist, v1 |
| Intended use statement | Advisory tier suggestion on new deviations; a QA reviewer confirms or overrides every suggestion before it is acted on. |
| Source systems and owners | QMS (deviation module), steward: M. Okoye, Quality Systems |
| Profiling outcome | 6,012 deviations, three years; narrative 99% present; “area” field 18% blank in year one (added later); flagged, early-year records excluded per section 5.7 |
| Feature specification reference | FEAT-SPEC-DEV-CRIT-v1: text features from narrative, structured area/product/equipment, engineered sterile-area flag |
| Ground truth source and agreement statistic | Re-labeled subset under revised SOP-AI-014; 300 double-labeled, Cohen’s kappa 0.84 |
| Representativeness / bias findings and disposition | Critical class 8% of set (imbalance handled via recall-focused metrics); Product Line C under-represented (4% of records), intended use scoped to exclude Line C until more data is collected |
| Dataset version / hash | DEV-CRIT-2026-08-15-frozen, SHA-256 on file with Data Engineering |
| Split method and leakage check outcome | Time-based: train through Feb 2026, validation Mar-Apr 2026, test May-Jul 2026 (locked); no deviation ID appears in more than one split |
| Assessment outcome | Ready, with Product Line C excluded from intended use |
| Prepared by | R. Iyer, Data Engineering, 18 August 2026 |
| QA sign-off | S. Whitfield, Quality Assurance, 19 August 2026 |
The scoped exclusion of Product Line C is stated on the record rather than hidden. That is the disposition an inspector expects to see: a documented limit, not a silent gap discovered later.
Common inspection findings this SOP prevents
- Modeling began before any documented readiness assessment, so there is no evidence the data was fit for the intended use.
- A readiness claim exists but with no profiling report, feature specification, or lineage log behind it.
- Labels were used with no documented source or, where a labeling program applies, no measured inter-rater agreement.
- A known representativeness gap surfaces in production because it was never assessed or disclosed at readiness time.
- The dataset used to build the model cannot be reproduced because no version or hash was ever recorded.
- QA reviewed the model after it was built rather than the data before modeling began.
How to adapt this SOP
- Set your document number, owner, and effective date in the header.
- Point the cross-references in sections 2, 5.5, and 5.7 to your actual AI/ML validation SOP, ground-truth labeling SOP, and retention policy.
- Adjust the source systems named in section 3 and section 5.2 to your real system inventory.
- If your organization also builds retrieval-based generative assistants over a document corpus, issue a companion procedure for that pattern rather than stretching this one, since the readiness concerns differ (freshness and versioning, redaction, chunking, retrieval evaluation, and citation, rather than profiling, splitting, and leakage control).
- Confirm every regulation in section 9 against the current published version before issue.