---
title: "Data Extraction from Handwritten Documents"
slug: document-extraction-sampling-log
url: https://invertbio.com/docs/assist-use-cases/document-extraction-sampling-log
keywords: ["assist","use case","document extraction","scanned batch record","handwritten","sampling log","offline data","cell count","metabolites","review before import"]
---

# Data Extraction from Handwritten Documents

Eight days of offline samples, three people's handwriting, one struck-through value and a note in the margin. Photograph the sheet, hand it to Assist, and the numbers are on the run, checked against the page, before the spreadsheet would even have been opened.

> PDF reports, scanned batch records, CoAs, even photos of handwritten sheets: Assist reads them, extracts the values and prepares them for your review.

## The problem

Offline samples on the 50 L seed bioreactor are still logged on paper: one sheet per run, a row per day, filled in by whoever takes the sample. VCD, viability, glucose, lactate, offline pH and osmolality, with a re-count written over a crossed-out value and the unused rows marked N/A. At the end of the run someone types it all into a spreadsheet. Transcription errors surface, if at all, when the growth curve looks wrong.

![Handwritten in-process sampling log: eight days of VCD, viability, glucose, lactate, pH and osmolality for a 50 L seed bioreactor, with corrections and observations](/docs/assist-use-cases/document-extraction-sampling-log/image-1.png)

## What you do

Photograph the sheet and drop it into Assist:

> _"This is the sampling log for BR-02. Extract the offline data and add it to the run."_

## What Assist does

1.  **Reads the header** (bioreactor, cell line, batch/lot, inoculation date and time) and matches the batch/lot to the run in Invert. No match? It asks whether to create the run or pick an existing one.
2.  **Extracts the table** into timestamped rows: VCD, viability, glucose, lactate (raw reading and dilution-corrected g/L), offline pH and osmolality. Rows marked N/A are skipped.
3.  **Flags what needs a human**: the struck-through day-4 VCD and its replacement, the margin note that explains it, the day-5 glucose top-up that should become an event rather than a data point, and any digit it is not sure about.
4.  **Shows you the values next to the image**, so each flagged cell can be checked against the handwriting and corrected in place.
5.  **Prepares the import for your approval**: offline time series on the run, feed and top-up as events, observations as notes. Nothing is written until you click **Complete import**.

![Assist asks which run the BR-02 data belongs to and which timezone the log uses, prepares three imports for your approval (run data, offline time series, events) and the Import preview shows the extracted VCD, viability, glucose and osmolality series on 50L-SUB-BR-02](/docs/assist-use-cases/document-extraction-sampling-log/image-2.png)

If the same form comes in every run, say so: Assist remembers the layout and the next sheet lands straight in the review step.

## Why it matters

-   **Paper stops being a dead end.** Bench data reaches Invert the same day it is written, not at the end of the run.
-   **Fewer transcription errors.** Every uncertain digit is flagged and checked against the source, not retyped from memory.
-   **Context survives.** Corrections, feeds and observations arrive as events and notes, where an analysis can find them.

## Example prompts

-   _"The lactate g/L column looks like it just repeats the reading. Check the dilution and tell me what the intended values are."_
-   _"Record who took each sample, from the initials column, as a note on the sample event."_
-   _"Here are the sheets for BR-01 and BR-03 from the same campaign. Do the same for those."_

## Related guides

-   [Assist](/docs/user-guides/assist)
-   [Import](/docs/user-guides/import)
