Add the M6 manuscript draft, figure script and number check

First full draft of the Volve-DIA paper in paper/ (13 LaTeX sections, 44 pages),
four figures built from outputs/ with assertions, a checker that traces every
number to plan.md or outputs/, and a source audit with its fixes. Correct the
pooled T2(b) values in the notes to the primary values and sync the plan, README,
overview and progress page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 02:02:43 +00:00
parent 8c924b7f0d
commit 221399260f
37 changed files with 4198 additions and 46 deletions

198
paper/sections/03_data.tex Normal file
View File

@@ -0,0 +1,198 @@
% Section 3: Data. Every number is traced in paper/provenance/03_05_AB.md.
\section{Data}\label{sec:data}
\VolveDIA{} is built from the daily drilling reports (DDRs), the WITSML real-time logs and the formation picks of the
Volve field data set \citep{equinor2018volve}. All counts in this section are computed by code from the local copy of
that release, and Table~\ref{tab:inventory} collects them. Figure~\ref{fig:overview} shows how the sources feed the
labels and the model inputs. The one rule the figure is meant to show is that labels and reference answers come only
from the XML and WITSML files; rendered and OCR text is model input and never a label source.
\begin{table}[t]
\centering
\caption{Inventory of the Volve sources used by \VolveDIA{}. Counts are from the parsed local copy; OCR figures are
for the full-corpus export, not the pilot.}
\label{tab:inventory}
\small
\begin{tabular}{@{}p{0.30\textwidth}p{0.62\textwidth}@{}}
\toprule
Item & Value \\
\midrule
Daily drilling reports & 1,759 reports on 26 wellbores of 11 wells; 6 (15/9-F-15 B) to 165 (15/9-F-12) per
wellbore \\
Formats per report & XML (WITSML \texttt{drillReport}), HTML and PDF for all 1,759 reports \\
Size on disk & XML 21.3 MB; HTML 31.0 MB; PDF 56.8 MB; WITSML 19.3 GB \\
Activities & 23,447 rows; 64 activity codes in 7 main groups \\
PDF pages & 3,066 (457 one-page, 1,297 two-page and 5 three-page reports); 83 near-empty last pages \\
Sentinel values set to missing & 9,164 in the DDR tables; 3,703 in the WITSML object files \\
WITSML coverage & 21 DDR wellbores with time logs (none for the five 15/9-19 wellbores); 1,384 reports on those
wellbores, 1,102 with at least 1 h and 983 with at least 23 h of log in the report period \\
WITSML volume & 2.25 billion time-log values; 45.4 million depth-log values; 1,744 mnemonics; 2.2 GB as Parquet \\
Formation picks & 409 picks on 35 wellbores; 24 DDR wellbores with their own picks, 2 with shared picks only \\
OCR export & 3,059 of 3,066 DDR pages matched; 1,752 of 1,759 reports complete; 16 pages with a date
disagreement \\
\bottomrule
\end{tabular}
\end{table}
\begin{figure}[t]
\centering
\begin{tikzpicture}[
font=\small,
box/.style={draw, rounded corners=2pt, align=center, minimum height=9mm, text width=3.0cm, inner sep=3pt},
src/.style={box, fill=gray!12},
code/.style={box, fill=blue!8},
res/.style={box, fill=green!10},
arr/.style={-{Stealth[length=2.2mm]}, thick}]
\node[src] (xml) at (0,0) {DDR XML\\(1,759 reports)};
\node[src] (wits) at (0,-1.6) {WITSML logs and\\formation picks};
\node[src] (render) at (0,-3.8) {HTML and PDF\\renders};
\node[code] (code) at (3.75,-0.8) {Deterministic code\\(parser, \texttt{labels.yaml},\\SQL)};
\node[code] (ocr) at (3.75,-3.8) {OCR of\\page images};
\node[res] (lab) at (7.5,-0.8) {Labels and answers\\T1--T5, with provenance};
\node[box] (inp) at (7.5,-3.8) {Model input\\(masked text,\\WITSML features)};
\node[box, text width=1.6cm] (eval) at (10.9,-2.3) {Scoring\\by code};
\draw[arr] (xml) -- (code);
\draw[arr] (wits) -- (code);
\draw[arr] (code) -- (lab);
\draw[arr] (xml.west) -- ++(-3mm,0) |- (render.west) node[pos=0.25, left, align=right] {publisher\\render};
\draw[arr] (render) -- (ocr);
\draw[arr] (ocr) -- (inp);
\draw[arr] (code.south east) -- node[right, pos=0.5, align=left, font=\scriptsize] {masked XML\\text and tables}
(inp.north west);
\draw[arr] (lab.east) -| (eval.north);
\draw[arr] (inp.east) -| node[pos=0.25, below, font=\scriptsize] {predictions} (eval.south);
\draw[arr, dashed, red!70!black] (ocr.north) -- node[pos=0.5, font=\Large] {$\times$}
node[pos=0.5, left=3mm, align=right, font=\scriptsize, text=red!70!black] {OCR never\\creates a label} (code.south);
\end{tikzpicture}
\caption{Data flow of \VolveDIA{}. Labels and reference answers for tasks T1--T5 are computed by code from the DDR
XML, the WITSML logs and the formation picks. The HTML and PDF renders and their OCR text only reach the model input,
for example in the document-fidelity contrast C4; the crossed arrow marks the path that is never used.}
\label{fig:overview}
\end{figure}
\subsection{Daily drilling reports}
The DDR corpus has 1,759 reports on 26 wellbores of 11 wells, and every report exists in three versions. The XML file
follows the WITSML \texttt{drillReport} schema; the HTML and PDF files are renders of it by the publisher. We parse
the XML into 17 DuckDB tables that keep the WITSML element names as column names, so that every value can be traced
back to the schema. The report count per wellbore ranges from 6 (15/9-F-15 B) to 165 (15/9-F-12).
The activity table is the core of the corpus. It holds 23,447 rows, each with start and end times, an end depth in
metres measured depth (MD), a free-text comment, a proprietary activity code, a state and a state detail. The 64
codes fall into seven main groups: drilling (9,137 rows), plug and abandon (4,595), interruption (3,577), completion
(2,944), workover (2,221), formation evaluation (732) and moving (241). The state is \texttt{ok} on 22,967 rows and
\texttt{fail} on 480. The state detail is \texttt{success} on 20,802 rows; the remaining values are equipment failure
(1,975), operation failed (456), stuck equipment (109), circulation loss (92), mud loss (12) and injury (1). These
three fields are the source of the NPT labels in Sec.~\ref{sec:design:labels}, and they are masked in the model input
(Sec.~\ref{sec:design:splits}). The \texttt{phase} column holds only the values ``fixed'' (20,696) and ``wire line''
(2,751); it records the rig type, not a drilling phase, and is not used as a label. The text fields are short: a
comment has 114.3 characters on average and a 24-hour summary 173.2. The summary is the literal string ``None'' in 73
reports, and the forecast in 103.
The reports are internally consistent with few exceptions. The date in each file name equals the end of its reporting
period, and no (wellbore, date) pair repeats. The period lasts 24 h in 1,751 reports and 23 h or 25 h in four
reports each, at the daylight-saving changes. Between consecutive activities, 21,667 gaps are zero, 25 are positive
and 5 are negative (overlaps). Activity durations sum to the period length in 1,529 reports and fall short in 221
(2,605.01 h in total); none exceeds it. Nine reports have no activity. One of them, \texttt{15\_9\_19\_A\_1980\_01\_01},
is a placeholder for five tie-in survey stations with a default date in 1980, while its wellbore was spudded in
1997. It is excluded from T1--T3 and kept in the published data that T4 queries.
\subsection{Sentinels, units and missing fields}
Missing values in the DDR XML are written as sentinels, which the parser turns into nulls. We found 9,164 values equal
to $-999.99$, $-999.25$ or $-9999$ and set each to missing, with a per-column count kept in a \texttt{sentinels}
table. Two header fields are sentinels in all 1,759 reports: the planned depth (\texttt{mdPlanned}) and the current
rate of penetration (\texttt{ropCurrent}). Rate of penetration therefore cannot be read from the report header. The
drilled distance (\texttt{distDrill}) is a sentinel in 1,247 reports, and the bit record gives an average rate of
penetration in only 88 values over 80 reports on 21 wellbores. Questions about rate of penetration must state which
of these sources they use, and the T4 templates do. Each column carries a single unit, recorded in a \texttt{units}
table of 105 rows. The parsed hole diameter (\texttt{diaHole}) is missing in 990 reports, including the placeholder report. Most of them are
completion, workover or abandonment days, but 260 of them, on 24 wellbores, still contain drilling activities
(2,618 rows). The bit table covers only 25 of these 260 reports, so the section label of T1 needs a fill rule
(Sec.~\ref{sec:design:labels}).
\subsection{WITSML real-time data and formation picks}
WITSML time logs exist for 21 of the 26 DDR wellbores; the five 15/9-19 wellbores have none. The 1,384 reports of the
21 wellbores are the scope of the parts of the benchmark that need real-time data: T3, T5 and the WITSML features of
T1. Of these reports, 1,102 have at least one hour of log data in their period and 983 have at least 23 hours. Three
wellbore names differ between WITSML and DDR: WITSML \texttt{15/9-F-15 S} is DDR 15/9-F-15, WITSML 15/9-F-15 is DDR
15/9-F-15 A, and WITSML 15/9-F-15A is DDR 15/9-F-15 C. We resolved them from the wellbore identifier, the final
report depth, the survey stations and the total depth, not from the names. A pipeline that joins the two sources by
name assigns the logs of these wellbores to the wrong DDRs.
The parser stores the logs in long format, one Parquet file per wellbore: 2.25 billion time-log values and 45.4
million depth-log values over 1,744 mnemonics, 2.2 GB in total. The logs come from two service companies with
different layouts. The 2013--2016 logs have 78 channels at a 3.0~s step. The 2007--2009 logs have 42 to 252 channels
with a median step of 3.97~s. Within a log, 2.9 million values are duplicated, all with identical values and no
conflict; we rank duplicates across logs and delete none. In the WITSML object files, 3,703 sentinel values are set to
missing. Further suspect values stay in the stored logs and are counted, and protocol v1 treats them as missing at
the feature stage: $-999$, $-99999$, $99999$, $9999$ and magnitudes above $10^{15}$. The rule follows what the values
are: $-999$ fills MWD channels (224,841 values), $99999$ sits almost entirely in one annular-velocity channel
(279,676 of 279,866 values), and $9999$ appears in timer channels. The object counts reproduce those reported for
TADI \citep{lu2026tadi}: 161 BHA runs, 2,882 mud-log intervals and 11,134 messages. The trajectory count does not:
we parse 5,561 stations against 4,217 in TADI, and we have not found the cause.
Formation tops come from the field's well-pick file, with 409 picks on 35 wellbores. Matching by name finds picks
for 23 of the 26 DDR wellbores. Three mappings close the gap: \texttt{15/9-19 SR} is DDR 15/9-19 ST2; DDR 15/9-19 S
inherits the four picks of SR above the kick-off point at 1,493~m; and 15/9-F-9 A inherits two picks of 15/9-F-9.
After mapping, 24 DDR wellbores have their own picks and 2 have shared picks only. The DDRs also list formation tops
(\texttt{stratInfo}). Against them, 130 picks match by name, with a median difference of 0.0~m and 97 within 5~m.
The other 33 differ by up to 1,093~m. The largest differences occur where the DDR lists two different depths for the
same formation, so we keep the pick file as the single source of formation labels and use \texttt{stratInfo} only as
a cross-check.
\subsection{Fidelity of the rendered reports}
The renders are not faithful copies of the XML. We compared 272,544 printed items of the 1,759 HTML reports with the
XML values: the header, 31 report fields, the two 24-hour summaries and the Operations table. All items agree except
two flags. \emph{Tight well} and \emph{HPHT} are 0 (no) in the XML of all 1,759 reports and are printed as ``Y'' in
all 1,759 renders. A third error came to light when we checked T4 answers: the ``End mMD'' column of the Bit Record
table prints the hole depth at the \emph{start} of the bit run (\texttt{bitRun\_mdHoleStart}). We confirmed this on
16 of 16 rows by hand and on 90 of 90 rows through T4; the ``Form ROP'' column of the same table prints the average
rate of penetration correctly (88 of 88). The other 13 tables of the HTML report were not compared. A pipeline that
reads only the PDF inherits these errors, and no OCR system can correct them, because the page itself is wrong.
\VolveDIA{} therefore takes these fields from the XML only, and the C4 contrast (Sec.~\ref{sec:res:c4}) starts from
the fact that a born-digital render can already differ from its source.
\subsection{OCR of the rendered pages}
The PDFs are born-digital, with a text layer. OCR matters when a DDR archive exists only as page images, and to
measure what it does to the benchmark tasks, the pages were read as images by an OCR model. \todo{name and version of
the OCR model
used for the full-corpus export} The PDFs have 3,066 pages; 83 near-empty pages (fewer than 50 characters) are all last
pages of a report. A colleague ran OCR on 3,639 PDF pages, of which 3,066 are DDR pages, and exported the result through
a data hub in COCO format (3,502 images, 33,489 text blocks). The export did not keep file names, so we matched each
page to its report by content. A TF-IDF filter proposes candidate pages; an idf-weighted token F1 of at least 0.7
accepts a match for pages with at least 50 tokens; a thumbnail correlation of at least 0.9 decides pages without
text. Of the 3,066 DDR pages, 3,059 were matched, including all 49 blank pages, and 1,752 of the 1,759 reports are
complete. The seven unmatched pages have thumbnail correlations of 0.69--0.94 with their best candidate, and their
seven reports are dropped from the OCR experiments. A second check compares the dates printed on a page with the dates
the OCR read. Of the 1,753 pages that carry a date, 16 disagree. All 16 have a text F1 of at least 0.91 and a
thumbnail correlation of at least 0.94, so the page match is probably right and the OCR misread a digit or dropped the
period line; we have not inspected them page by page. C4 reports results with and without these 16 pages.
The OCR quality was measured on the full export, not on a sample. The QC parses the HTML and the OCR blocks into the
same structure (header, fields, paragraphs and tables) and compares them item by item. Only whitespace is normalised;
a missing item counts as a deletion and an extra OCR item as an insertion. The OCR parser undoes the pagination of
the PDF before the comparison: it joined tables broken across pages 1,136 times and merged continuation rows 151 times,
a repair that never fires on the HTML. Over 1,752 reports, 3,056 pages and 365,698 content items, the exact-match
rate is 0.9181, the character error rate (CER) 2.40\% and the word error rate (WER) 5.56\%. Table cells (280,995
items) reach an exact-match rate of 0.9116 and a CER of 2.67\%; the Operations table (140,322 cells) is weaker, at
0.8605 and 2.99\%. Header fields reach 0.9280 and 3.00\%. The fields that matter most for drilling questions are the
weakest. The depth field (metres MD) has an exact-match rate of 0.9241 and a CER of 6.97\%, the hole diameter has a CER
of
5.4\%, and the rig name has an exact-match rate of only 0.3385. In the pressure and temperature fields the OCR
inserts units that the page does not print. The per-report CER has a median of 0.93\%, a 90th percentile of 4.98\% and
a maximum of 85.7\%, and only 9 of the 1,752 reports are read without any error. The most frequent character errors
are an inserted space (9,507), a dropped hyphen (9,160), a hyphen read as an en dash (7,952), an inserted degree sign
(2,524) and \AE{} read as E (1,152).
These rates understate the risk for drilling use. In a pilot of 26 reports (47 pages), each error was checked against
the page image, and the error types are listed in Appendix~\ref{app:labels}. The OCR fills empty unit brackets, invents
a printed-date line, silently corrects typing errors of the source, misreads proper names, merges table columns, and in
one report shifts a depth value one field down. The last error type produces a value that looks valid and is wrong.
The pilot pages come from a different OCR run (3.97\% of their characters differ from the export), so the pilot
illustrates the error types; all rates in this paper are full-corpus rates.
The release terms for the labels and tables derived from this copy of the data are still to be settled.