Incomplete Data and Inference · Vol. 1 No. 1 (2026)
Original publication: October 17, 2026
Derek Knight — Sweden; Wesley Stewart — Denmark; Ryan King — Norway
A fixed connected-component filter applied to public handwritten-document images. Annotated connected regions are geometric units, not verified characters, words or semantic strokes.
Removing tiny foreground components deleted 20,210 predicted pieces from ten binarized document pages. The resulting maps had slightly higher average pixel precision, but the change was uncertain and F1 improved on only five pages. Meanwhile, the fraction of annotated components retaining at least half their pixels fell from 78.65% to 70.94%. Some losses also occurred among larger annotated components. This simple cleanup operation illustrates a restoration tradeoff that a nearly unchanged pixel score can obscure: fewer predicted specks need not mean better preservation of the source's small foreground structures.
After document binarization, an output can contain many tiny isolated foreground regions. Deleting them is a plausible way to remove specks and simplify later processing. Yet size alone cannot tell whether a region is noise, a detached mark or a fragment of a larger structure that the binarizer failed to connect. The same operation can improve one measure of cleanliness while sacrificing another kind of evidence.
We ask whether a fixed small-component deletion rule improves foreground pixel precision while reducing the retention of annotated foreground regions. The intervention is deliberately simple: begin with one frozen binarization, remove every predicted eight-connected component smaller than twenty-five native-image pixels, and rescore the same pages. The area threshold is chosen before running this new cleanup comparison, without a search across its outcomes.
Meng et al., 2025 addresses inpainting of oracle-bone inscription rubbings through a visual Mamba block. We do not run that model or assume that handwritten-page binarization measures its restoration quality. The relevant issue is preservation of small visual evidence. Before calling a restoration cleaner or better, one should specify which source structures and which errors the evaluation can detect.
Our unit of retained content is an eight-connected region in the supplied binary ground truth. That unit is operational rather than semantic. A single connected region may contain more than one character, while a detached mark may form its own component. This limitation is maintained throughout the analysis so that a loss of component coverage is not silently translated into a measured loss of readable characters.
The official H-DIBCO 2018 resource provides ten handwritten document pages and their paired binary foreground annotations (Pratikakis et al., 2018). We use their native resolution and all ten pages. Dark ground-truth pixels define foreground. Original images are converted to grayscale with the same local image-loading procedure for both conditions; no resizing, added corruption or annotation revision is performed.
The base binarization uses a Sauvola rule with a fifty-one-pixel window, coefficient 0.2 and intensity-range constant 128 (Sauvola and Pietikäinen, 2000). That parameter pair was selected in earlier local work using the ten H-DIBCO 2016 pages (Pratikakis et al., 2016). We reuse the saved source-only parameter record rather than select a new binarizer using the 2018 cleanup results. The local threshold uses reflected image boundaries and a nonnegative numerical variance calculation.
The current audit therefore shares the 2018 page cohort and fixed base outputs with earlier document analyses. It is a new intervention on those outputs, not an independent dataset replication. Its question concerns the area filter's effect after binarization, separate from choosing a local threshold or lowering image resolution. This provenance matters when interpreting how much independent evidence the collection of analyses supplies.
Otsu's histogram-based threshold offers a contrasting binarization principle (Otsu, 1979), but it is not an additional experimental arm here. Changing both the thresholding method and the cleanup rule would mix two interventions. We retain one base map per page so that every deleted pixel is attributable to the declared connected-component filter rather than to a newly fitted foreground decision.
Connected-component labeling is a basic operation in digital image processing (Rosenfeld and Pfaltz, 1966). Mathematical morphology further establishes why set-based image operations can change shape as well as apparent cleanliness (Haralick et al., 1987). We apply a direct area criterion to labelled components. The implementation is not an opening with a spatial structuring element, and no morphological reconstruction procedure restores pixels after deletion.
Eight-connectivity treats horizontal, vertical and diagonal neighboring foreground pixels as connected. We label the base prediction under that convention and count the pixels in every nonbackground component. Components with at least twenty-five pixels survive; smaller ones are removed in full. Ground-truth labels play no role in deciding which predicted component to delete.
The filtered map is a subset of the original predicted foreground. This fact provides a useful check: the operation cannot introduce a new foreground pixel. It also means that ordinary foreground recall cannot increase, since no previously missed true pixel is recovered. Precision has no corresponding monotonic guarantee, because removed pixels can include both true and false positives in different proportions.
Across the ten pages, the base maps contain 22,194 predicted components. The filter deletes 20,210 of them, leaving 1,984. It removes 71,594 predicted foreground pixels. A very large reduction in the number of components can therefore accompany a much smaller change in the foreground-pixel inventory. Counting pieces and counting pixels emphasize different aspects of the output.
The rule can preserve a large false-positive region while removing a small true-positive one. It can also delete a small predicted fragment of a large ground-truth region. Neither outcome violates the rule, because its input is predicted component area rather than a verified noise label. Calling every deleted component noise would assume the conclusion that the evaluation is intended to examine.
For each page, ordinary foreground precision divides true-positive pixels by all predicted foreground pixels; recall divides them by all annotated foreground pixels. F1 combines precision and recall through their harmonic mean. These are standard binary-classification quantities with different denominators. Work comparing classification metrics emphasizes that one scalar cannot preserve every aspect of the confusion table (Matthews, 1975; Saito and Rehmsmeier, 2015).
We separately label the binary ground truth using eight-connectivity. A ground-truth component counts as hit if at least half of its pixels are predicted as foreground. The page-level hit rate gives each ground-truth component on that page equal weight. We calculate it before and after filtering, retaining every annotated component of at least one pixel rather than silently dropping the smallest regions.
There are 1,365 ground-truth components across the pages, including 206 with area below twenty-five pixels. We also save a descriptive hit rate restricted to ground-truth components of at least twenty-five pixels. That restriction concerns the scoring unit and is distinct from the filter, which acts on predicted components. A large annotated region can overlap several smaller predicted fragments and remain exposed to deletion.
A half-overlap hit does not require a component to be complete. It permits nearly half its pixels to be absent, and it does not test whether the surviving pixels preserve a diagnostic shape. A merged prediction can hit multiple annotated components without keeping them separate. We therefore use the term component hit rate rather than character accuracy, topology correctness or human readability.
The filtered hit rate cannot increase under this definition. Deleting predicted pixels cannot make an annotated component cross from below the half-overlap criterion to above it. Its observed decrease measures the size of that monotone sacrifice in this sample, while pixel precision and F1 remain empirical tradeoffs whose directions are not fixed by the construction.
Figure 1. A fixed binarization is filtered by predicted component area. Pixel precision and F1 are scored alongside retention of independently defined ground-truth components, with no ground-truth-guided deletion.
Each page supplies a filtered-minus-base precision difference, F1 difference and component-hit-rate difference. Models 1 through 3 estimate their equal-page means with an intercept and no covariates. Standard errors use HC3 covariance and intervals use t9. N is ten pages, not the number of labelled components or image pixels.
Heteroskedasticity-consistent variance states a working regression assumption (White, 1980). The pages may still share document, writer or acquisition characteristics that are not separately identified here. Ten pages also provide limited information about between-document variability. The intervals condition on this cohort and the fixed operation, without including uncertainty from selecting other area thresholds or another base binarizer.
Table 1. Filtered-minus-base page metrics, N=10, intercept-only OLS, HC3 standard errors and t9 confidence intervals. R-squared is numerically zero. Components are used to construct page outcomes rather than counted as independent regression observations.
| Model | Term | Estimate (SE) | 95% CI | N |
|---|---|---|---|---|
| M1 | Mean outcome/contrast | 0.007857 (0.012858) | [-0.021229, 0.036944] | 10 |
| M1: fit | R-squared = 0.0000 | - | - | 10 |
| M2 | Mean outcome/contrast | 0.001745 (0.010326) | [-0.021614, 0.025103] | 10 |
| M2: fit | R-squared = 0.0000 | - | - | 10 |
| M3 | Mean outcome/contrast | -0.077020 (0.021428) | [-0.125493, -0.028547] | 10 |
| M3: fit | R-squared = 0.0000 | - | - | 10 |
Model labels: M1 = Small-component removal minus base foreground precision; M2 = Small-component removal minus base foreground F1; M3 = Small-component removal minus base ground-truth-component hit rate.
Mean foreground precision increases from 0.631100 to 0.638957, a change of 0.007857. Its standard error is 0.012858 and interval [−0.021229, 0.036944]. Eight pages improve and two deteriorate. The direction is therefore favorable on most pages, but the average improvement is uncertain and deletion alone does not ensure better precision.
Mean F1 changes from 0.647999 to 0.649744. The difference is 0.001745, with standard error 0.010326 and interval [−0.021614, 0.025103]. Five pages improve and five deteriorate. Mean recall decreases from 0.750709 to 0.735457. We retain that decrease as part of the output's behavior rather than describe the operation solely by the small positive F1 change.
Component hit rate falls from 0.786458 to 0.709438. The difference is −0.077020, standard error 0.021428 and interval [−0.125493, −0.028547]. Expressed in percentage points, the average loss is about 7.70. This scale differs from a relative percentage change or a count of lost components, so the units remain explicit (Stevens, 1946).
Across all pages, 133 previously hit ground-truth components no longer meet the half-overlap criterion. Dividing that count by the pooled component total would weight pages by their numbers of components. It would not reproduce the equal-page regression coefficient. Both the pooled count and the page-average change are saved, allowing their different denominators to be inspected.
Among ground-truth components with at least twenty-five pixels, mean hit rate also decreases, from 0.814596 to 0.792076. Thus the observed sacrifice is not confined to ground-truth components smaller than the deletion cutoff. Fragmentation of a larger region into small predicted pieces is one way this can happen. We have not manually adjudicated each lost component's semantic role.
The modest aggregate F1 movement and larger component-retention movement describe different targets. Agreement analysis cautions against relying only on a common summary while ignoring consequential differences (Bland and Altman, 1986). Here the metrics are not interchangeable measurements on a shared unit scale. We compare their reported behavior to expose a tradeoff, not to calculate a concordance coefficient between them.
Measurement-error reasoning distinguishes an operational variable from the construct it is intended to represent (Carroll et al., 2006). Annotated component coverage is closer to preserving small foreground evidence than a background-dominated accuracy score would be, but it still falls short of reading accuracy. A useful restoration claim should therefore identify the missing validation rather than promote the geometric proxy into a semantic outcome.
Perceptual image measures offer other assessment perspectives. SSIM, FSIM, LPIPS and DISTS emphasize different structural or feature relationships (Wang et al., 2004; Lin Zhang et al., 2011; Zhang et al., 2018; Ding et al., 2020). BRISQUE adds another image-quality approach (Mittal et al., 2012). None is computed here, and their existence does not establish that a document page with a better perceptual score retains its smallest diagnostic marks.
The same distinction applies to stronger restoration methods. Context encoders, RePaint and LaMa address learned image completion under different modeling assumptions (Pathak et al., 2016; Lugmayr et al., 2022; Suvorov et al., 2021). Gated, partial and edge-connected approaches organize information around missing image regions (Yu et al., 2018b; Liu et al., 2018; Nazeri et al., 2019). Our area-filter result is not a comparison with those systems, since it synthesizes no missing pixels and evaluates none of their outputs.
U-Net, denoising representations and Deep Image Prior provide further architectural or signal-processing contexts (Ronneberger et al., 2015; Vincent et al., 2008; Ulyanov et al., 2017). A postprocessing rule can be appended to many pipelines, but its effect must be measured on the resulting predictions. It would be unsound to transfer the exact precision and component losses from this one binarizer to a different network or dataset without evaluation.
The results argue for retaining the base prediction and the deletion map during review. A user can then inspect which regions were removed and decide whether their visual role matters. Influence diagnostics can help direct that inspection toward pages with large changes (Cook, 1977), but such an inspection has not been used here to exempt inconvenient pages or redefine the main scoring rule.
A practical follow-up could choose an area criterion using an earlier development cohort, evaluate it on independent documents and include a task-specific outcome such as transcription or expert assessment of marks. Native-image area would also need attention when capture resolution changes. Our twenty-five-pixel threshold is tied to this native grid and is not a physical size in millimeters.
Connectivity deserves the same care as size. A diagonal contact joins regions under the eight-neighbor convention used here, while a different convention could leave them separate and expose them to deletion. We have not searched connectivity choices for a more attractive result. The saved component table therefore includes the exact labeling convention, and the reported losses belong to that convention rather than to an undefined notion of a visual fragment.
Small isolated marks might matter greatly to a reader, but that possibility is not a semantic finding from these binary annotations. The 133 lost hits require contextual review before being described as lost punctuation, diacritics or character strokes. Conversely, their small pixel contribution would not justify declaring them harmless. The current evidence identifies candidate preservation failures and quantifies the geometric tradeoff; it leaves their meaning to an appropriately designed content-level assessment.
The local artifacts record component areas, before-and-after overlaps and page metrics. Dataset documentation keeps the connectivity, threshold and ground-truth meaning visible (Gebru et al., 2021), while provenance supports tracing those outputs to the paired public pages (Wilkinson et al., 2016). For this fixed operation, deletion simplified the foreground inventory and barely changed average F1, while measurably reducing annotated-component retention. Those are separate properties that a preservation-oriented report should retain together.