Dataset
Production batch record datasets for AI training
A batch record dataset is the executed record of each production lot at a process manufacturer: the materials and lot numbers consumed, the equipment used, every step with its recorded parameters, in-process checks, operator and verifier sign-offs, deviations raised, yield and the release decision. SourceX sources these records to a buyer's spec from established food, chemical, cosmetics and pharmaceutical plants, exported from electronic batch record and MES systems or scanned from paper. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Executed lot records: inputs consumed, equipment, steps with parameters, checks, sign-offs, deviations, yield and release
- Typical systems
- Electronic batch record and MES systems such as PAS-X, Syncade, Opcenter and PharmaSuite, ERP process orders, scanned paper
- Typical history
- Specified by the buyer; bounded by record retention, system migrations and the move from paper to electronic records
- Modality
- Structured step and material tables, free-text deviations, scanned pages for paper records
- Delivery formats
- Agreed per order; JSONL or Parquet per batch with genealogy tables, scans as PDF or TIFF with transcription if scoped
- Preparation
- Operators and verifiers pseudonymized, including handwritten signatures; products and suppliers tokenized; lot numbers mapped consistently
- Licensing
- Rights reviewed per plant and product; formulation scope and permitted use set in the license
- Availability
- Sourced to your spec from manufacturers who agree to license; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| batch_id | string | Pseudonymous batch number, mapped the same way wherever the batch appears as an output or a later input. |
| master_record | object | The master batch record the lot was executed against, with its version, tokenized product and planned batch size. |
| record_form | enum | Electronic, scanned paper or hybrid, with page image references for paper. |
| consumed_inputs | array | Each material issued: item, input lot, supplier lot, target and actual quantity, and whether it was weighed or backflushed. |
| equipment_used | array | Vessels, lines and instruments used, with IDs and the cleaning and calibration status recorded at the time. |
| step_executions | array | Executed steps in order with times, recorded parameters, the limits from the master record and an in-limits flag. |
| in_process_checks | array | Checks made during the batch, such as pH, viscosity or fill weight, with result, limits and any action taken. |
| signoffs | array | Performed-by and verified-by entries per step, with pseudonymous person IDs, roles and timestamps. |
| entry_corrections | array | Original and corrected value, person, time and reason, from the audit trail or the strike-through on paper. |
| deviations | array | Deviations raised: description, severity class, investigation text, root cause and corrective action reference. |
| yield_reconciliation | object | Theoretical and actual yield by stage, accounted losses and reconciliation of labels or packaging components. |
| output_lots | array | Lots produced, including intermediates, splits into sub-lots and rework lots, with quantities. |
| review_flags | object | Exceptions the system or reviewer flagged for batch review and how each was resolved. |
| release_decision | object | Released, released after rework or extra testing, rejected or on hold, with date and deciding role. |
Field names from the table above; values are masked placeholders.
Example record
{
"batch_id": "bat_k7e210",
"master_record": { "mbr_id": "mbr_lotion_base_04", "version": 7, "planned_size_kg": 2000 },
"record_form": "electronic",
"consumed_inputs": [
{ "item": "mat_thickener_02", "input_lot": "lot_s8842", "supplier_lot": "sup_5f1c",
"target_kg": 16.0, "actual_kg": 16.02, "method": "weighed_scanned" },
{ "item": "mat_emulsifier_01", "input_lot": "lot_s8790",
"target_kg": 64.0, "actual_kg": 64.0, "method": "backflushed" }
],
"equipment_used": [ { "equipment_id": "ves_m3", "type": "jacketed mixing vessel",
"cleaning_status": "clean, verified" } ],
"step_executions": [
{ "step": 40, "name": "Emulsify", "start": "2024-04-11T09:12:00Z", "end": "2024-04-11T09:42:00Z",
"params": { "temperature_degC": { "value": 74.6, "limits": [72, 78] } }, "in_limits": true }
],
"in_process_checks": [
{ "step": 70, "check": "viscosity_mPas", "result": 14200, "limits": [18000, 26000],
"in_limits": false }
],
"signoffs": [ { "step": 40, "performed_by": "person_a41", "verified_by": "person_c07",
"t": "2024-04-11T09:44:10Z" } ],
"entry_corrections": [ { "step": 20, "field": "actual_kg", "from": 16.2, "to": 16.02,
"by": "person_a41", "reason": "Keying error, scale printout attached." } ],
"deviations": [
{ "deviation_id": "dev_2291", "class": "major",
"description": "Viscosity below limit after cooling.",
"root_cause": "Thickener lot lot_s8842 at low end of supplier range; hydration time not extended.",
"capa_ref": "capa_0612" }
],
"yield_reconciliation": { "theoretical_kg": 2000, "actual_kg": 1962, "yield_pct": 98.1 },
"output_lots": [ { "lot": "lot_b11873", "stage": "bulk", "quantity_kg": 1962 } ],
"review_flags": { "exceptions": 2, "resolved": 2 },
"release_decision": { "decision": "released_after_rework", "t": "2024-04-15T15:20:00Z",
"by_role": "quality_assurance" }
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Trace lots through genealogy
Linked input and output lots let a model answer which batches a suspect material reached and what went into a lot named in a complaint.
Assist batch record review
Executed entries with limits, flags and resolutions train assistants that find missing sign-offs, out-of-limit values and unexplained corrections before release.
Draft and assess deviation investigations
Deviations with their investigations and decisions give worked examples of impact assessment and of the reasoning behind release, rework or reject.
Read scanned batch records
Paper records with handwriting, checkboxes, stamps and struck-through corrections, paired with transcriptions, train and test document extraction.
Predict yield and deviation risk
Input lots, equipment, step timings and in-process results across many batches support models of yield and the chance of an exception.
Use-case guides: Document AI, enterprise search and RAG, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
One lot mapping everywhere
The same token for a lot in inputs, outputs, free text and scans keeps the genealogy intact.
Weighed versus backflushed
A flag on each consumption line says whether the quantity and lot were observed or assumed.
Investigations in full
Deviation narratives, root causes and impact assessments carry the reasoning that a reference number does not.
A real decision mix
Rework and reject decisions beside routine releases give a model both sides of the judgment.
Master record attached
The version each batch ran against supplies the limits that make an entry normal or an exception.
Corrections kept
Audit-trail entries and struck-through values show what was first recorded and why it changed.
Process
Batch record dataset
Genealogy is what makes a batch record more than a form
One batch record on its own is a completed form. The value is in the links between records. Every material issued to a batch carries an input lot number, and the lots a batch produces become inputs to later ones, from premix to bulk to filled and packed product. Followed forward, the links answer which batches and finished lots a suspect raw material reached. Followed backward, they answer what went into a lot named in a complaint. Plants run this trace in mock recalls, and for a model it is a graph task with a verifiable answer.
The graph is weaker than it looks in several known places. A silo or tank topped up before it is empty holds a blend, so the system records the newest lot, an assumed first-in-first-out lot, or every lot present. Backflushing posts consumption from the bill of materials at the planned quantity when an order is confirmed, so the quantity, and sometimes the lot, was assumed and not weighed. Rework added to a later batch creates loops. A supplier's lot number and the internal lot assigned at receipt are two identifiers for one material. On paper records, lot numbers are handwritten and can be mistranscribed.
De-identification can break what remains. Lot numbers often encode the plant, line, production date and product, so they have to be masked, and masking each file or table separately destroys every link. The mapping must be one consistent table applied to consumed inputs, output lots, deviation narratives that quote lot numbers in free text, linked quality records and scanned pages. Test it on the sample: pick one input lot, count the batches that consumed it, and check that the same token appears in the investigation text.
Review by exception is the labeled signal
Most batches are uneventful. Every parameter is inside its limits, every check passes and the release is signed. Electronic batch record systems are built around that fact: they can check each entry against the limits in the master record as it is made, so the reviewer looks at the flagged exceptions instead of every page, a practice called review by exception. On paper batch sheets the same exceptions exist, but a reviewer finds them by reading every page and no system lists them, so ask how exceptions were identified in scanned records. Clean batches teach a model what normal execution looks like, but they are largely the master record repeated with small differences in weights and times.
The decisions are in the minority that went wrong. A deviation carries a description of what happened, a severity class, an investigation with a root cause or a statement that none was found, an assessment of the effect on the product, and a decision by an accountable person: release, release after extra testing, rework or reject. Smaller exceptions carry signal too, such as an out-of-limit entry resolved with a comment, a corrected weight or a step signed out of sequence. Each is an observation, a line of reasoning and a decision with a real cost.
So specify the dataset by its exceptions. Ask for the share of batches with a deviation, the mix by severity and the mix of decisions, including rejected batches, which are the rarest and the ones a seller is least keen to release. Check where the investigation text lives. It is often in a separate quality system linked by batch number, and an export of the batch record alone leaves only a reference. Read a low deviation rate with care, since it can mean a stable process or under-reporting.
What to check before licensing
- On the sample, trace one input lot forward to every batch and output lot, and confirm the same tokens appear in deviation text and in any linked quality records.
- Ask whether each consumption line was weighed at the point of use or backflushed from the bill of materials, and how tanks and silos holding mixed lots are recorded.
- Ask for the deviation rate and the mix by severity and by decision, per product and year, and whether investigations are delivered in full or only as reference numbers.
- Ask which master record version each batch ran against and whether the master records, with their limits, are included.
- For scanned paper, check page completeness, attachments such as scale printouts and labels, and how handwritten entries and corrections were transcribed.
- Confirm which product formulations the seller treats as trade secrets and whether they are in scope or masked, for example with tokenized components and scaled quantities.
- For plants operating under GMP rules, confirm that the site's quality unit approved releasing the records for licensing, and that operator and verifier names, initials and signatures are pseudonymized, including handwriting on scans.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does a batch record dataset contain?
It contains one executed record per production lot: the input lots consumed, the equipment used, each step with its recorded parameters and limits, in-process checks, who performed and who verified each step, corrections, deviations, yield and the release decision. Across batches, input and output lot numbers form a genealogy that links raw materials to finished lots.
What is the difference between a master and an executed batch record?
A master batch record is the approved template for a product: the materials, steps, parameters and limits every batch must follow. An executed batch record is that template filled in for one lot, with actual quantities, times, readings, signatures and anything that went wrong. The master versions are needed beside the executed records to tell a normal entry from an exception.
Can scanned paper batch records be used?
Yes, with different strengths. Paper records are page images with handwriting, checkboxes, stamps and struck-through corrections, which makes them useful for document extraction work. Using them as structured data requires transcription, and lot numbers and weights are where transcription errors matter most. Ask how the transcription was produced and checked.
How are lot numbers de-identified without breaking traceability?
By replacing each lot number with a token from one mapping applied across the whole delivery. Real lot numbers often encode plant, line and production date, so they are masked, but the same lot must receive the same token as an input, as an output, inside deviation text and on scanned pages. Ask whether production dates are kept or shifted consistently, since batch sequence matters for genealogy.
Can records from GMP-regulated plants be licensed?
Sometimes, and the buyer should check how. Batch records at pharmaceutical and other GMP plants are controlled quality records, so confirm that the site's quality unit approved their release for licensing and that operator and verifier signatures are pseudonymized. Records made for a contract customer may need that customer's consent, which counsel should check against the supply contract. Formulations the seller treats as trade secrets can be masked or left out of scope.
Should I specify a number of batches or a number of deviations?
Specify both, and weight the deviations. Clean batches of one product resemble each other closely, so a large count adds little after a point. The reasoning sits in batches with exceptions, so state the minimum share with a deviation, the severities and decisions you need, including rework and reject, and the number of distinct products.
Related datasets
- Manufacturing quality and inspection records
Inspection results, nonconformances, dispositions and corrective actions from production plants
- Process recipes and parameter change histories
Versioned recipes and parameter sets with each change, its reason and approval, and the measured results before and after
- Process historian and SCADA data
Process tag values with the tag dictionary, compression settings, alarm and event journal and operator actions
- Lab notebooks and R&D records
Experiment records with protocols, raw instrument output, analysis and results, failures included
- Supply chain and logistics operations records
Linked orders, shipments, tracking events, exceptions and freight documents from real operations
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.