Manuscript Offprint
arXiv:2610.30863Cross-Spectral Feature Fusion for Multispectral Document Binarization
Investigating Cross-Spectral Feature Fusion and Targeted Structural Guidance for Multispectral Document Binarization
Yasas Savinda and Maheshi Buddhinee Dissanayake
Department of Electrical and Electronic Engineering, University of Peradeniya, Peradeniya, Sri Lanka.
*Corresponding author(s). E-mail(s): e19356@eng.pdn.ac.lk; maheshid@eng.pdn.ac.lk;
Abstract
Purpose: Historical document binarization remains challenging when faded ink, bleed-through, and background degradation exhibit wavelength-dependent behavior across visible and near-infrared observations. This study investigates whether adaptive cross-spectral feature fusion and targeted structural guidance can improve multispectral document binarization beyond fixed fusion and generic attention mechanisms.
Methods: Four registered SMADI bands at 500, 600, 700, and 1000 nm are processed using a multi-branch conditional generative adversarial network (cGAN). Visible, NIR, and structural feature streams are fused at encoder depth using spatial- and channel-wise softmax gating, while auxiliary edge maps derived from selected VIS–NIR band pairs provide targeted structural guidance. Nine controlled fusion and structural configurations are evaluated using five-fold document-level cross-validation, DIBCO-standard metrics, and Holm-corrected statistical testing.
Results: The NIR edge-guided configuration provides the strongest overall performance among the evaluated models, achieving mean , p-FM = 0.8044, and IoU = 0.6654. Relative to the fixed Mid AVG baseline, it improves by 0.0269, p-FM by 0.0360, and IoU by 0.0321, with all three gains remaining statistically significant after Holm correction. Mean NRM and DRD are also reduced, although these reductions are not statistically significant after correction.
Conclusion: Targeted cross-spectral structural guidance provides an effective mechanism for regulating intermediate multispectral fusion, improving primary foreground-overlap performance while retaining the complete four-band observation.
Keywords: Historical document binarization, Multispectral imaging, Cross-spectral feature fusion, Targeted structural guidance, Conditional generative adversarial networks
when text–background separation is ambiguous in visible imagery.
Multispectral imaging (MSI) records the same document at multiple wavelengths, providing complementary evidence because ink, paper, stains, and degradation can respond differently across bands. Earlier work showed that hyperspectral and multispectral observations improve degraded-document visualization and restoration, with near-infrared (NIR) particularly useful when ink and substrate exhibit different spectral behavior [3–5]. This motivated multispectral text-extraction and binarization methods, including the ICDAR 2015 MS-TEx benchmark [6], target-detection methods [7], CNN-based binarization [8], and MSdB-NMF [9], establishing that spectral diversity provides information unavailable from a single conventional image.
However, exploiting multiple spectral bands introduces a second problem: observations must be combined to preserve complementary information rather than treating all channels equally. Existing multispectral document methods have predominantly relied on spectral-band or subspace selection, analytical transformations, source decomposition, target detection, factorization, or direct learned mappings from spectral input to binary output [7–9]. These approaches demonstrate the value of multispectral information, but leave less explored how modality-specific visible and NIR features should be adaptively integrated within a deep restoration network. More generally, multimodal learning has shown that fusion location affects branch representations and that intermediate fusion preserves modality-specific processing before joint reasoning [10].
Related developments in visible-infrared image fusion demonstrate the advantages of replacing fixed fusion rules with learned integration. Deep fusion models preserve complementary modality information, while adversarial formulations incorporate detail- and edge-sensitive objectives for structural preservation [11]. These results are architecturally relevant, although generic visible-infrared fusion commonly considers thermal imagery, whereas historical-document MSI uses reflected NIR observations. In parallel, document-binarization research increasingly incorporates structural priors. For example, GDB combines Sobel-derived edge information with gated convolutions [2], while recent multispectral research shows that selected wavelength responses and ink-contour information can be highly discriminative for separating foreground from substrate [12]. Collectively, these studies establish the value of learned gating, structural guidance, and wavelength-specific evidence, but largely investigate them separately.
Despite these advancements, existing literature remains bifurcated: generic vision frameworks investigate multimodal fusion strategies without considering document-specific stroke topology, whereas document restoration methods incorporate structural priors but operate largely on single-channel or RGB images. Crucially, no prior work has systematically investigated how, where, and under what structural guidance visible and near-infrared (VIS–NIR) spectral bands should be integrated within a learned intermediate-fusion strategy for historical document restoration and downstream text legibility.
This gap motivates the central objective of this work: to establish an adaptive, edge-guided multispectral fusion paradigm that bridges cross-spectral physics with structural text priors. Rather than forcing hard channel selection or unguided feature blending, we investigate whether a targeted VIS–NIR structural cue can dynamically regulate intermediate feature maps at encoder depth , suppressing severe background artifacts such as stains, foxing, and bleed-through while recovering degraded or missing character-stroke geometry for binarisation and OCR readability.
This study substantially extends our preliminary multispectral-fusion work [5], which compared early, intermediate, and late fusion and identified normalized additive fusion at encoder depth as the strongest baseline. That study established where to fuse spectral information but not how to adaptively control fusion. This journal extension replaces fixed averaging with learned modality and structural gating, adds targeted visible–NIR edge guidance and edge-aware supervision, shifts to full-page binarization, and expands evaluation to five-fold document-level cross-validation with statistical and computational profiling.
The principal contributions of this work are summarized as follows:
• Adaptive VIS–NIR Edge-Guided Fusion Architecture: We propose a multi-branch framework for degraded document binarization that retains the full multispectral observation while employing an auxiliary visible–NIR structural representation to dynamically gate intermediate features at encoder depth L = 3.
• Controlled Architectural & Spectral Source Ablation: We conduct a systematic comparative study of nine fusion configurations, including fixed intermediate averaging, learned visible/NIR gating, edge-guided gating (with and without structural loss), generic spatial/channel attention (Squeeze-and-Excitation and CBAM), four-band structural guidance, and targeted spectral-source variants ( , , and ). This isolates whether gains stem from adaptive fusion, generic attention, explicit structural conditioning, or specific spectral pairings.
• Rigorous Page-Level Validation & Statistical Profiling: All architectures are evaluated using strict five-fold document-level cross-validation (ensuring zero patch leakage prior to extraction), validation-only threshold tuning, and full-page image reconstruction. Performance is assessed using standard DIBCO metrics ( , pseudo- , IoU, NRM, and DRD), with pseudo- and DRD independently verified against official DIBCO reference tools, and backed by paired Wilcoxon signed-rank tests with Holm multiple-comparison correction.
• Computational & Reconstruction Profiling: We characterize the proposed framework in terms of parameters, multiply-accumulate operations (MACs), floating-point operations (FLOPs), GPU memory footprint, patch-level inference latency, throughput, and overlap-sensitivity during full-page reconstruction.
Empirical evaluations confirm that structural guidance derived from the 600 nm visible band and 1000 nm NIR band ( ) provides the strongest overall binarization performance among the evaluated configurations. Gains over the fixed intermediate averaging (Mid AVG) baseline are statistically significant after Holm correction for , pseudo- , and IoU ( ). These findings demonstrate that targeted cross-spectral structural guidance effectively regulates intermediate multispectral fusion without stroke fragmentation or spectral artifact transfer.
2 Related Work
2.1 Historical Document Binarization and Enhancement
Document image binarization separates foreground text from background while preserving stroke geometry. Classical methods range from global Otsu thresholding [13] to locally adaptive Sauvola thresholding [14], which better handles varying illumination. These remain useful baselines, but combined faded ink, bleed-through, stains, texture variation, and localized degradation are difficult for a single handcrafted rule.
Deep-learning methods increasingly formulate binarization as supervised image-to-image prediction. Vo et al. [15] introduced a hierarchical deeply supervised network in which multiple representation levels contribute to the binary output, combining coarse degradation suppression with fine boundary retention. Calvo-Zaragoza and Gallego [16] proposed a selectional auto-encoder that estimates foreground confidence directly, demonstrating end-to-end binarization across heterogeneous collections. DeepOtsu [17] instead iteratively produces a cleaner representation for conventional thresholding.
Adversarial learning further extended this direction. Zhao et al. [18] used cascaded conditional GANs for degraded-document binarization, while DE-GAN [1] supported binarization, deblurring, and watermark removal. Khamekhem Jemni et al. [19] added a recognition-oriented objective, showing that visually plausible restoration is insufficient if thin or degraded strokes are lost. These studies motivate reconstruction and adversarial objectives but do not explicitly exploit wavelength-dependent multispectral information.
Recent methods add stronger adaptive and structural mechanisms. GDB [2] combines an Otsu-derived prior, Sobel gradients, an edge branch, and gated convolutions, while RA-GAN [20] uses gradient-gated convolution, guided attention, and a gated feature pyramid. Both show that structural mechanisms improve binarization, but derive their priors from the same conventional input rather than complementary spectral observations.
2.2 Multispectral Historical Document Analysis
Multispectral and hyperspectral imaging provide registered observations at multiple wavelengths, allowing text, substrate, stains, and degradation to exhibit distinct responses. Kim et al. [3] used hyperspectral information to enhance old documents, while Hedjam and Cheriet [4] exploited visible and infrared behavior for restoration. Qureshi et al. [21] further review hyperspectral imaging for historical information recovery, ink analysis, forensics, and cultural heritage.
The ICDAR 2015 MultiSpectral Text Extraction contest established a benchmark for multispectral text extraction [6]. Early binarization methods relied on explicit spectral modeling. Farrahi Moghaddam and Cheriet [22] used multiple experts over different multispectral subspaces, showing that spectral combinations carry different discriminative information. MSIO [7] combined target detection with spatial segmentation, while Hollaus et al. [23] modeled foreground and background using Gaussian mixtures.
Later work adopted learned and factorized representations. Hollaus et al. [8] applied a CNN directly to multispectral binarization, establishing a neural baseline. Rahiche et al. [24] used graph-regularized non-negative matrix factorization for blind source separation, while MSdB-NMF [9] reduced multispectral or hyperspectral observations before conventional binarization. These methods show that spectral dimensionality can be exploited without treating all channels identically.
Recent work published in the International Journal on Document Analysis and Recognition (IJDAR) [12] provides relevant evidence that selected wavelength responses and structural information can be more discriminative than indiscriminate spectral combination. The study analyzed twelve multispectral observations of Dead Sea Scroll fragments and exploited discriminative spectral differences together with ink-contour information in an energy-minimization segmentation framework. This work is close to the present study in using selected spectral evidence and structural contours, but its processing remains based on spectral thresholding and graph-cut optimization. In contrast, the present work investigates whether a selected visible–NIR pair can provide an auxiliary structural representation that regulates learned intermediate feature fusion while the complete multispectral input remains available. Beyond pixel-level segmentation, such unified spectral-structural enhancement can benefit downstream optical character recognition (OCR) by removing severe background interference while reconstructing fragmented stroke geometry to improve machine text legibility.
2.3 Adaptive Multimodal and Visible–Infrared Fusion
Multimodal representation learning broadly categorizes feature integration into early fusion at the input layer, intermediate fusion within latent feature spaces, and late fusion at the decision or output stage [10]. Intermediate fusion is advantageous when distinct modalities require domain-specific feature extraction before cross-modal interaction. For instance, FuseNet [25] demonstrated the effectiveness of internally combining modality-specific feature streams within a convolutional architecture for RGB-D semantic segmentation.
To overcome static feature concatenation, adaptive paradigms dynamically weight multi-source contributions based on context. Gated Multimodal Units (GMUs) [26] introduced multiplicative gating for context-dependent multimodal integration, providing a basis for replacing handcrafted fusion rules with learned representations. Attention mechanisms similarly offer spatial and channel-wise recalibration. Squeeze-and-Excitation (SE) networks [27] model inter-channel dependencies to emphasize informative feature maps, whereas CBAM [28] combines channel and spatial attention. While effective, these modules operate on domain-agnostic feature maps rather than document-specific stroke topographies, providing baselines for assessing explicit structural guidance.
Visible-infrared (VIS-IR) fusion provides another relevant precedent. DenseFuse [29] combines deep encoder features to preserve complementary visible and infrared information, while FusionGAN [30] uses adversarial learning to retain salient infrared targets and visible textures. Both demonstrate learned blending of complementary spectral inputs.
A physical distinction must be drawn between generic visible-infrared fusion and historical document analysis. Conventional VIS–IR fusion predominantly processes thermal infrared emissions (e.g., long-wave IR for heat signatures), whereas historical document multispectral imaging relies on reflected near-infrared (NIR, 1000 nm) light. While deep adaptive fusion principles remain relevant, the physical basis of spectral complementarity differs: in document analysis, spectral contrast emerges from wavelength-dependent light absorption and scattering across ink pigments, aged substrates, stains, and bleed-through artifacts rather than thermal radiation.
2.4 Structural Guidance for Fusion and Binarization
Preserving edges and fine structures is a recurring concern in both multimodal image fusion and document binarization. In visible-infrared fusion, Ma et al. [11] incorporated detail-preservation and target-edge-enhancement objectives into an adversarial framework to reduce boundary degradation and retain complementary source information. This shows that structural constraints can improve learned multimodal fusion, but the objective is generic fused-image generation rather than foreground/background separation in degraded historical documents.
In document binarization, GDB [2] provides an algorithmic precedent by combining explicit Sobel edge maps with gated convolutions to maintain stroke integrity. Similarly, RA-GAN [20] utilizes gradient-dependent gating and guided attention to handle spatially heterogeneous degradations. However, in both frameworks, the structural control signal is extracted solely from a single conventional document observation. These architectures therefore lack access to decoupled spectral channels where complementary, background-free structural cues can be isolated.
Conversely, multispectral document research confirms that specific spectral bands, inter-band differences, and ink-contour regions can be highly discriminative for foreground-background separation [12, 22]. Nevertheless, existing techniques typically restrict these spectral cues to hard band selection, heuristic thresholding, matrix factorization, or localized graph-cut segmentation, rather than using them as dynamic control mechanisms within deep neural architectures.
Collectively, prior literature establishes four insights: (i) multispectral observations reveal text and degradation cues inaccessible to standard RGB imaging; (ii) intermediate learned fusion models cross-modal interactions; (iii) gradient-aware mechanisms protect fine character-stroke topology during binarization; and (iv) targeted spectral bands offer superior structural clarity. However, these paradigms have largely evolved in isolation. This work addresses the unresolved intersection by using a targeted cross-spectral structural representation to govern intermediate multispectral feature fusion while preserving the full-spectrum observation.
3 Proposed Method
3.1 Problem Formulation
Let a multispectral historical document page be represented by four spatially registered spectral observations,
where , , and denote visible wavelengths at 500, 600, and 700 nm, respectively, and corresponds to the 1000 nm near-infrared (NIR) band. The input is partitioned into a visible stream and an NIR stream .
The objective is to estimate a continuous document representation that separates foreground text from degraded background. A generator with learnable weights maps the input streams and auxiliary structural prior to the output space,
The auxiliary structural representation is constructed from a selected visible–NIR pair via a deterministic edge-extraction operator (Section 3.2). provides targeted structural guidance without discarding or replacing any original spectral band in .
Rather than imposing fixed arithmetic rules, extracts modality-specific features and performs adaptive fusion at intermediate depth
- Let , , and denote intermediate features from the visible, NIR, and structural branches, respectively. The fused representation is:
where is a learnable spatial and channel-wise adaptive gating operator (Section 3.4).
Full-page predictions are converted to binary maps using a global threshold :
where p denotes pixel location. Threshold is optimized on reconstructed validation pages and fixed during test evaluation.
3.2 Multispectral Preprocessing and Structural Edge Construction
To prevent data leakage, document-level splitting precedes all statistical estimation and patch operations. Normalization parameters are derived only from training documents within each fold.
For each band , minimum and maximum intensities are computed from the training set. Inputs are rescaled to via:
where ensures numerical stability.
Raw ground-truth maps, , are thresholded at 128 to enforce binary targets (0 for text, 255 for background). For training, is normalized to :
The discrete format is retained for padding and evaluation, while is used for loss calculation.
To prevent boundary artifacts during sliding-window inference, pages are symmetrically padded before patch extraction. Spectral inputs use reflection padding (BORDER_REFLECT_101), while target maps use a constant white value (255) to avoid artificial foreground edges.
The auxiliary structural representation E is generated at full-page resolution before patch extraction to avoid artificial boundary gradients. Construction comprises four steps:
- Intensity Normalization and Channel Averaging: The 600 nm visible band ( ) and the 1000 nm NIR band ( ) are used specifically to construct the auxiliary structural representation. These two bands are independently normalized to the 8-bit dynamic range ([0, 255]) and combined using equal-weight averaging. Importantly, this spectral-pair selection applies only to the structural-map construction; the complete multispectral observation, comprising , , , and , remains available as input to the network:
- Local Contrast Enhancement: Contrast-Limited Adaptive Histogram Equalization (CLAHE) is applied to with clip limit over an grid to enhance local stroke transitions:
- Gradient Magnitude Extraction: Horizontal and vertical gradients are computed using Sobel operators, yielding magnitude :
- Range Normalization: G is min-max rescaled to 8-bit space and mapped to :
where .
(10)
Aligned spectral inputs X, structural prior , and ground truth are extracted as patches with 204-pixel stride ( overlap), preserving registration across channels.
3.3 Fixed Intermediate Fusion Baseline
The fixed intermediate-fusion architecture is the principal baseline for the proposed adaptive mechanism. It uses the intermediate scheme identified in our prior work [5], where normalized additive fusion at encoder depth outperformed early- and late-fusion alternatives. The baseline is retrained and evaluated under the five-fold document-level cross-validation protocol in Section 4.2.
The multispectral input is partitioned into visible and near-infrared (NIR) streams,
The streams are encoded independently through the first three stages of the dual-branch network. Let and denote the representations at depth :
Both feature maps have identical spatial and channel dimensions, permitting element-wise averaging:
This fixes the spatial and channel-wise fusion weights to across all samples and locations.
The unified representation passes through the remaining shared encoder stages and U-Net decoder to produce :
Because averaging has no learnable parameters, it assigns static weights regardless of local degradation or spectral contrast. This motivates the dynamic, content-adaptive architecture introduced next.
3.4 Adaptive Visible–NIR Edge-Guided Fusion
To overcome static averaging, the proposed generator replaces the two-stream baseline with learned three-stream dynamic gating and explicit structural guidance. The network accepts the complete multispectral tensor and auxiliary visible–NIR structural map (Section 3.2):
These channels form three feature-extraction branches:
Each branch has three encoder stages, expanding channel capacity from 64 to 128 and 256. For a patch, the representations at depth L = 3 are:
where C = 256 and H = W = 32.
To compute context-dependent fusion weights, the feature tensors are concatenated along the channel dimension:
A convolution maps the concatenated features to a logit tensor :
Reshaping Z yields modality-specific logits . Spatial- and channel-wise Softmax normalization is applied across :
where denotes channel and spatial location. This guarantees unit-simplex normalization at each coordinate:
The fused representation is formed using element-wise Hadamard products ( ):
After fusion at depth L = 3, the streams merge and pass through the remaining shared encoder stages. A U-Net decoder with skip connections restores spatial resolution and produces the final single-channel output using a hyperbolic tangent (tanh) activation:
Unlike fixed averaging, this formulation allocates spatial and channel attention according to local signal quality, favoring visible features when strokes are clear, shifting toward NIR under severe visible-spectrum staining, or using near degraded boundaries to preserve stroke topology.
3.5 Conditional Adversarial Learning Objective
The framework is optimized as a supervised cGAN inspired by Pix2Pix [31, 32]. Generator maps to a restored single-channel representation, while PatchGAN discriminator distinguishes generated outputs from paired ground truth conditioned on .
The conditional adversarial objective is:
(24)
To enforce pixel-level alignment and preserve high-frequency stroke detail, the objective includes an reconstruction loss:
The norm provides a robust penalty that reduces blurring along thin text boundaries compared with squared error.
The total generator objective combines adversarial, pixel-level reconstruction, and edge-aware structural constraints:
where and are fixed hyperparameters.
Binary cross-entropy (BCE) supervises adversarial updates. The discriminator loss and generator adversarial term are:
where . Optimization alternates between updating with detached generated outputs and updating by end-to-end backpropagation.
3.6 Edge-Aware Structural Loss
To penalize structural and boundary errors, an edge-consistency loss is added to the objective. Tensors normalized to are rescaled to via and .
Gradient magnitudes are computed using Sobel operators and :
where denotes spatial convolution and ensures numerical stability during backpropagation.
With and , the edge-aware loss measures mean absolute gradient difference:
While enforces global intensity fidelity, penalizes character erosion, stroke fragmentation, and boundary degradation. The complete generator loss is:
The reconstruction weight follows Pix2Pix [31] to retain pixel-level fidelity and baseline consistency. The fixed moderate weight allows structural supervision to contribute without dominating adversarial and reconstruction objectives.
Structural guidance acts in two complementary ways: (i) input-side channel drives adaptive gating (Section 3.4), and (ii) output-side constraint supervises boundary integrity.
3.7 Full-Page Reconstruction and Inference
To evaluate global topology and reduce patch-boundary artifacts, inference uses tiled full-page soft reconstruction. Padded documents are partitioned into aligned patches with stride pixels ( overlap).
Let denote the set of extracted patches for a document page. Each patch is processed independently by the generator to yield soft continuous predictions . Soft outputs are accumulated into a page-level intensity matrix and a spatial coverage counter matrix :
where denotes patches overlapping coordinate p.
Overlap averaging suppresses boundary seams and edge discontinuities. After cropping margins, the final binary map is obtained by global thresholding:
The threshold is tuned only on reconstructed validation pages (Section 3.8) and applied unchanged to the test fold.
3.8 Validation-Based Model and Threshold Selection
To prevent data leakage, model and threshold selection use only the validation partition of each fold. Held-out test documents remain unseen during optimization and are evaluated once per fold.
Checkpoint screening uses validation epochs with soft outputs binarized at baseline threshold . Let and denote mean validation text and structural similarity at epoch . Optimal parameters are selected by lexicographic maximization:
where is the primary criterion and SSIM resolves ties.
Following checkpoint freeze at , validation pages are reconstructed following Section 3.7 and mapped to via . The binarization threshold is optimized over a discretized candidate set with a step size of 0.01. Soft continuous predictions are thresholded to yield binary maps ( ):
Threshold optimization prioritizes boundary and stroke-topology preservation. Let and denote mean validation pseudo- and text at threshold . The optimal is selected by lexicographic maximization:
Here, pseudo- acts as the primary driver, with standard text serving as a secondary tie-breaker. (Note that this internal pseudo- screening metric is restricted strictly to parameter tuning; final reported p-FM metrics are computed independently via the standardized DIBCO evaluation toolkit described in Section 4.5).
Once locked, is applied directly to the unseen test set:
This two-stage validation is repeated independently across all five folds, so test metrics use model and threshold choices based only on training and validation data.
4 Experimental Protocol
4.1 Dataset and Spectral Configurations
Experiments are conducted on the Synchronedia Multispectral Ancient Document Images Dataset
(SMADI), associated with the ICDAR 2015 MultiSpectral Text Extraction (MS-TEx) benchmark [6]. The dataset provides spatially aligned multi-spectral observations of degraded historical pages with expert-annotated binary reference maps.
Following [5], four registered bands are retained for 30 paired pages: visible channels at 500 nm (F2), 600 nm (F3), and 700 nm (F4), plus a 1000 nm NIR channel (F7). The observation vector is , partitioned into visible and NIR streams. The F7 channel is reflected NIR rather than thermal emission.
The four-band input X is retained across all edge-guided models. Band selection is restricted to constructing the auxiliary structural representation. In the primary architecture, the F3 (600 nm) and F7 (1000 nm) channels generate the auxiliary edge map, while the full input X remains accessible to the network encoder.
4.2 Five-Fold Document-Level Cross-Validation
To prevent data leakage and evaluate full-page reconstruction, experiments use a strict five-fold cross-validation partitioned at the document level. The 30 SMADI pages are divided into five mutually exclusive 6-document folds: Fold 1 (z92, z60, z802, z65, z38, z43), Fold 2 (z95, z82, z582, z100, z34, z64), Fold 3 (z35, z59, z58, z80, z27, z30), Fold 4 (z822, z31, z76, z90, z67, z97), and Fold 5 (z70, z37, z48, z592, z68, z36).
For run , Fold is test ( ), the cyclic successor is validation ( ), and the remaining three folds are training ( ). The partitions are disjoint: . Normalization and patch extraction occur only after assignment. Validation selects checkpoints and thresholds; test pages remain untouched until evaluation, yielding 30 independent reconstructed test pages per architecture.
4.3 Compared Fusion Architectures
To isolate the effects of adaptive fusion, explicit edge conditioning, and spectral pairing, nine structural configurations are evaluated with identical training schedules, fusion depths ( ), and validation pipelines (summarized in Table 1).
Configuration 1, Mid AVG, uses fixed equal-weight fusion; Configuration 2 adds learned Visible/NIR gating without structural priors. Configurations 3–4 use four-channel edge maps to separate structural conditioning ( ) from edge supervision ( ). Configurations 5–6 use CBAM [28] and SE [27] as generic attention baselines. Configurations 7–9 keep identical topology ( ) while pairing 1000 nm NIR with F2, F3, or F4.
4.4 Training Protocol
Networks are optimized independently in each fold using aligned patches. Data augmentation (horizontal and vertical flips, ) is applied synchronously to input bands, structural maps, and ground-truth targets during training only.
Models are trained for 100 epochs per fold with the Adam optimizer ( , , , batch size , random seed 42). The generative objective is defined as:
where for edge-loss models and 0 otherwise. Generator checkpoints are selected using validation text (using validation SSIM as a tie-breaker). Binarization thresholds are tuned only on validation pages reconstructed via overlapping patches (stride 204 pixels, overlap).
4.5 Evaluation Metrics
Evaluation uses full-page binarized outputs (0 = foreground text, 1 = background) with five complementary metrics:
• Text Score: Geometric precision-recall balance, .
• Intersection over Union (IoU): Direct spatial foreground overlap, IoU = .
• Pseudo-FMeasure (p-FM): Character-structure-aware metric prioritizing stroke boundary fidelity [33]. Computed with an official DIBCO-compatible reference pipeline.
• Negative Rate Metric (NRM): Balanced error metric, . Lower is better.
• Distance-Reciprocal Distortion (DRD): Local structural distortion metric weighted by
Table 1 Comparative architectural study (, evaluated under 5-fold document-level cross-validation).
| No. | Configuration | Structural source | Primary experimental objective | |
|---|---|---|---|---|
| 1 | Mid AVG | None | 0 | Fixed intermediate fusion baseline (equal-weight feature averaging). |
| 2 | Visible/NIR gated fusion | None | 0 | Evaluates unguided, learned modality-dependent gating. |
| 3 | Four-band edge-guided gate | 0 | Tests structural input conditioning without edge-loss supervision. | |
| 4 | Four-band edge-guided gate | 5 | Evaluates four-band structural guidance with explicit edge supervision. | |
| 5 | CBAM fusion | None | 0 | Baseline for domain-agnostic spatial and channel attention [28]. |
| 6 | SE fusion | None | 0 | Baseline for domain-agnostic channel recalibration [27]. |
| 7 | edge-guided gate | 5 | Evaluates structural guidance derived from 500 nm VIS + 1000 nm NIR. | |
| 8 | edge-guided gate | 5 | Primary proposed configuration (600 nm VIS + 1000 nm NIR). | |
| 9 | edge-guided gate | 5 | Evaluates structural guidance derived from 700 nm VIS + 1000 nm NIR. |
ground-truth stroke neighborhoods [34], . Computed with an official DIBCO reference tool. Lower is better.
4.6 Statistical Analysis
Inferential statistics are calculated over the 30 paired full-page predictions. Non-parametric paired two-sided Wilcoxon signed-rank tests [35] compare each candidate architecture with the Mid AVG baseline.
Multiple testing is controlled using the Holm procedure [36] at family-wise significance level , applied independently to the eight candidate comparisons within each metric family. Effect sizes are quantified by matched rank-biserial correlation, with document win/tie/loss counts and 10,000-resample bootstrap 95% confidence intervals for the primary architecture.
4.7 Classical Binarization Baselines
Otsu [13] and Sauvola [14] are evaluated as non-learning baselines on the 8-bit rescaled visible mean . Sauvola parameters are selected per fold using validation pseudo- over and , yielding (15, 0.2), (25, 0.2), (15, 0.1), (15, 0.2), and (15, 0.2) for Folds 1–5.
Classical results report , IoU, and NRM for consistency with non-reference validated outputs.
5 Results and Discussion
5.1 Overall Comparison of Fusion Architectures
Table 2 summarizes full-page performance over 30 independently held-out pages across five folds. Values are mean standard deviation; p-FM and DRD use the independently validated DIBCO-compatible implementations in Section 4.5. Higher F1, p-FM, and IoU and lower NRM and DRD are preferred.
The edge-guided configuration gives the strongest overall performance, with mean F1=0.7916, p-FM=0.8044, and IoU=0.6654. Relative to Mid AVG, the absolute gains are 0.0269, 0.0360, and 0.0321, respectively; mean NRM decreases from 0.1285 to 0.1115 and DRD from 5.9281 to 5.7007.
The performance pattern nevertheless shows that no single architecture is optimal for every error criterion. The configuration achieves the lowest NRM of 0.1064, indicating the most favorable balance between foreground and background classification errors according to this measure. In contrast, the four-band edge-guided model with obtains the lowest DRD of
Table 2 Full-page binarization performance of the nine fusion architectures over 30 held-out SMADI documents. Values are reported as mean standard deviation. Best values for each metric are shown in bold.
| Architecture | F1 ↑ | p-FM ↑ | IoU ↑ | NRM ↓ | DRD ↓ |
|---|---|---|---|---|---|
| Mid AVG (L = 3) | 0.7647 ± 0.1232 | 0.7684 ± 0.1134 | 0.6333 ± 0.1486 | 0.1285 ± 0.0871 | 5.9281 ± 3.1901 |
| Visible/NIR Gated (L = 3) | 0.7651 ± 0.1694 | 0.7663 ± 0.1630 | 0.6414 ± 0.1679 | 0.1162 ± 0.1017 | 6.0284 ± 3.7699 |
| Edge4Band Gate (λedge = 0) | 0.7616 ± 0.1416 | 0.7694 ± 0.1315 | 0.6330 ± 0.1641 | 0.1307 ± 0.0946 | 5.9912 ± 3.4993 |
| Edge4Band Gate (λedge = 5) | 0.7853 ± 0.1174 | 0.8021 ± 0.1029 | 0.6600 ± 0.1461 | 0.1227 ± 0.0855 | 5.2537 ± 2.7648 |
| CBAM Fusion (L = 3) | 0.7502 ± 0.1750 | 0.7557 ± 0.1626 | 0.6247 ± 0.1826 | 0.1318 ± 0.1110 | 6.0324 ± 3.3924 |
| SE Fusion (L = 3) | 0.7652 ± 0.1647 | 0.7737 ± 0.1535 | 0.6420 ± 0.1751 | 0.1260 ± 0.1029 | 5.8053 ± 3.8226 |
| F2+NIR Edge Gate (λedge = 5) | 0.7842 ± 0.1090 | 0.7935 ± 0.0963 | 0.6568 ± 0.1360 | 0.1064 ± 0.0704 | 6.3810 ± 5.2027 |
| F3+NIR Edge Gate (λedge = 5) | 0.7916 ± 0.0988 | 0.8044 ± 0.0862 | 0.6654 ± 0.1304 | 0.1115 ± 0.0697 | 5.7007 ± 3.7990 |
| F4+NIR Edge Gate (λedge = 5) | 0.7746 ± 0.1371 | 0.7866 ± 0.1172 | 0.6495 ± 0.1614 | 0.1259 ± 0.0967 | 5.4313 ± 3.0338 |
5.2537, suggesting stronger suppression of locally weighted structural distortions. The F4+NIR model also achieves a relatively low DRD of 5.4313 despite ranking below the F3+NIR model in F1, p-FM, and IoU. These differences reinforce the importance of assessing document binarization using complementary structure-sensitive metrics rather than a single aggregate score.
A clear effect is also observed when the four-band structural-input configuration is trained with and without the edge-aware loss. With , the model obtains an F1 of 0.7616, p-FM of 0.7694, IoU of 0.6330, NRM of 0.1307, and DRD of 5.9912. Introducing the edge-consistency term with increases the corresponding F1, p-FM, and IoU values to 0.7853, 0.8021, and 0.6600, respectively, while reducing NRM to 0.1227 and DRD to 5.2537. Under the controlled architecture and training protocol, these results indicate that supplying structural information alone is less effective than jointly incorporating structural guidance and output-side edge consistency.
Generic adaptive mechanisms provide limited gains. Visible/NIR gating gives F1=0.7651 versus 0.7647 for Mid AVG, although NRM falls to 0.1162. SE reaches F1/p-FM/IoU of 0.7652/0.7737/0.6420, while CBAM gives the lowest neural F1 (0.7502). Generic gating or attention therefore does not reproduce the gains from explicit cross-spectral structural guidance.
Among the three visible-NIR structural variants, the configuration yields the highest , p-FM, and IoU scores, closely followed by . Because all variants share the same network backbone, fusion depth, loss weighting (), optimization protocol, and full multispectral input, these variations stem from the spectral pair used to construct the auxiliary structural map. This highlights the impact of targeted spectral guidance examined in Section 5.2.
Overall, the gains arise from adaptive intermediate fusion coupled with an explicit visible–NIR structural representation, not merely learnable weights or generic attention. NRM and DRD differences also show that is strongest for this dataset rather than universally optimal.
5.2 Effect of Targeted Visible–NIR Structural Guidance
The overall comparison in Table 2 indicates that the source used to construct the structural representation has a measurable effect on binarization performance. To examine this behavior more directly, Table 3 compares the four structurally guided configurations trained with , together with the four-band model trained without the edge-consistency loss.
Among the three targeted visible–NIR configurations, the structural source provides the highest F1, p-FM, and IoU. Its mean F1 of 0.7916 exceeds the corresponding values of 0.7842 and 0.7746 obtained with and , respectively. Similar behavior is observed for p-FM, where the model achieves 0.8044 compared with 0.7935 for and 0.7866 for . The same ordering is retained for IoU, with values of 0.6654, 0.6568, and 0.6495, respectively.
Because the three models use the same encoder depth, gating mechanism, training objective, full multispectral input, and five-fold protocol, this comparison isolates the wavelength pair used to construct the auxiliary structural representation.
Table 3 Effect of structural-source selection and edge-aware supervision. All models retain the complete multispectral input, where , , and denote the , , and visible bands, respectively, and denotes the near-infrared (NIR) band. Only the source of the auxiliary structural representation and the use of the edge-consistency loss are varied.
| Structural configuration | F1 ↑ | p-FM ↑ | IoU ↑ | NRM ↓ | DRD ↓ |
|---|---|---|---|---|---|
| Four-band, | 0.7616 | 0.7694 | 0.6330 | 0.1307 | 5.9912 |
| Four-band, | 0.7853 | 0.8021 | 0.6600 | 0.1227 | 5.2537 |
| , | 0.7842 | 0.7935 | 0.6568 | 0.1064 | 6.3810 |
| , | 0.7916 | 0.8044 | 0.6654 | 0.1115 | 5.7007 |
| , | 0.7746 | 0.7866 | 0.6495 | 0.1259 | 5.4313 |
Relative to , the configuration increases F1 by approximately 0.0074, p-FM by 0.0109, and IoU by 0.0086. Relative to , the corresponding improvements are approximately 0.0170, 0.0178, and 0.0158. These results suggest that the 600-nm and 1000-nm observations provide a particularly effective structural source for recovering foreground stroke regions in the evaluated SMADI documents.
The advantage is not uniform across distortion measures. The configuration obtains the lowest NRM, 0.1064, compared with 0.1115 for . This indicates that the structural source provides a slightly more favorable balance between foreground misses and background false positives according to NRM. Conversely, obtains a lower DRD of 5.4313 than the 5.7007 achieved by , while the four-band structural representation achieves the lowest overall DRD of 5.2537. Hence, the spectral pair producing the strongest foreground-overlap measures is not necessarily the pair minimizing every form of local structural distortion.
The four-band results provide another insight. When the four-band structural map is supplied to the network without edge-aware output supervision, the model achieves an F1 of 0.7616, p-FM of 0.7694, IoU of 0.6330, NRM of 0.1307, and DRD of 5.9912. Retaining the same structurally guided architecture while introducing , increases F1 by approximately 0.0237, p-FM by 0.0327, and IoU by 0.0270. NRM decreases by approximately 0.0080 and DRD decreases by approximately 0.7375.
This contrast indicates that the auxiliary structural branch alone is not sufficient to account for the performance obtained by the complete edge-guided formulation. The combination of input-side structural conditioning and output-side gradient consistency provides substantially stronger results than the structurally guided architecture trained without the edge-consistency term. Because only the fixed values and are compared in this experiment, the results should not be interpreted as establishing 5 as an optimal edge-loss weight.
The four-band and targeted-pair results further indicate that simply aggregating all spectral observations when constructing the edge representation is not always preferable. The four-band model produces the lowest DRD, but the targeted representation achieves higher F1, p-FM, and IoU. This supports the underlying hypothesis that the structural cue used to regulate fusion can benefit from deliberate wavelength selection rather than indiscriminate combination of all available bands.
Importantly, does not reduce the generator input to two bands. The full remains available; only derives the auxiliary structural representation. The gains therefore reflect targeted structural guidance, not exclusion of or .
These findings identify the (600/1000 nm) pair as the most effective structural source within our experimental setting. Although this does not imply universal optimality across degradation types, it shows that domain-targeted structural guidance outperforms generic attention and edge representations formed indiscriminately from all bands.
5.3 Statistical Significance
Document-level gains for versus Mid AVG were tested with paired two-sided Wilcoxon signed-rank tests over all 30 held-out pages, with Holm adjustment across candidate architectures
(Section 4.6). Table 4 reports statistics, win ratios, effect sizes ( ), and adjusted significance.
significantly outperforms Mid AVG on all three primary overlap metrics after correction: , p-FM, and IoU have , rank-biserial effects , and win ratios . Bootstrap 95% confidence intervals remain positive for [0.0014, 0.0513], p-FM [0.0080, 0.0628], and IoU [0.0009, 0.0598].
also reduces mean NRM from 0.1285 to 0.1115 and DRD from 5.9281 to 5.7007, but neither remains significant after Holm adjustment ( and 0.29148). The DRD bootstrap interval spans zero, so these reductions remain descriptive. Among other variants, only the four-band edge-guided model ( ) yields another Holm-significant gain over Mid AVG (p-FM: , , ).
In summary, non-parametric testing confirms that the advantages of targeted structural guidance are consistent across pages and robust to multiple-comparison bias for spatial-overlap metrics, though non-significant for distance-based error criteria.
5.4 Comparison with Classical Binarization
The multispectral framework is also evaluated against standard non-learning binarization algorithms: Otsu [13] and Sauvola [14]. Both baselines operate on an 8-bit min-max rescaled visible-mean image:
Otsu thresholding is applied globally without tuning. For Sauvola thresholding ( ), fold-specific window sizes and sensitivity parameters are selected via validation pseudo- optimization (with smaller , then smaller resolving ties). Table 5 lists the fold-specific settings.
Table 6 reports mean performance over 30 held-out test pages. Global Otsu thresholding performs poorly ( ), especially when foreground strokes and background degradation overlap in the intensity histogram. Sauvola thresholding provides a stronger classical baseline ( ), confirming the value of spatially adaptive thresholding under non-uniform backgrounds.
The deep models nevertheless outperform the classical baselines. Fixed intermediate fusion (Mid AVG) improves upon Sauvola by +0.0211 , showing that learned multispectral integration extracts information beyond local intensity thresholding. The proposed edge-guided model achieves the highest performance ( , IoU = 0.6654, NRM = 0.1115), with absolute gains of +0.0480 and +0.0566 IoU over Sauvola. Although Otsu achieves a seemingly competitive NRM (0.1175) due to metric balancing between false-negative and false-positive rates, its severe underperformance in and IoU confirms that comprehensive multi-metric evaluation is essential.
5.5 Reconstruction-Overlap Sensitivity
A post hoc analysis evaluated the frozen model at 0% ( ), 10% ( ), 20% ( ), and 30% ( ) overlap. For each stride, validation thresholding was re-optimized before locked test evaluation without retraining. Re-evaluating the 20% baseline reproduced the original test binaries exactly. Table 7 summarizes all 30 held-out pages.
The largest drop occurs at 0% overlap ( , DRD=6.1510), indicating severe boundary artifacts. A 10% overlap restores to 0.7885, confirming the value of soft averaging near patch borders. Gains then diminish through 20% and 30%, with 30% producing the best metrics ( , IoU=0.6717, DRD=5.5863).
Holm-corrected paired Wilcoxon tests against the 20% baseline show that 30% overlap remains significantly better for , IoU, NRM, and DRD ( ). For a strict controlled comparison across architectures, the 20% setting is retained for primary comparisons, balancing efficiency against incremental gains.
5.6 Computational Complexity and Inference Efficiency
The selected model was profiled without further optimization or compression; operation counts refer to one patch and runtime to an NVIDIA Tesla T4 GPU.
Table 4 Paired statistical comparison of the selected edge-guided model against the Mid AVG baseline across 30 held-out test documents. Differences () and rank-biserial correlations () are oriented such that positive values indicate improvement.
| Metric | Mid AVG | Wins | ||||||
|---|---|---|---|---|---|---|---|---|
| F1 | 0.7647 | 0.7916 | +0.0269 | 24/30 | 89 | 0.617 | 0.00237 | 0.01894 |
| p-FM | 0.7684 | 0.8044 | +0.0360 | 23/30 | 94 | 0.596 | 0.00348 | 0.02780 |
| IoU | 0.6333 | 0.6654 | +0.0321 | 24/30 | 89 | 0.617 | 0.00237 | 0.01894 |
| NRM | 0.1285 | 0.1115 | +0.0170 | 21/30 | 122 | 0.475 | 0.02210 | 0.15469 |
| DRD | 5.9281 | 5.7007 | +0.2274 | 20/30 | 132 | 0.432 | 0.03842 | 0.29148 |
Table 5 Fold-specific Sauvola parameters optimized strictly on validation partitions.
| Fold | Window size (w) | |
|---|---|---|
| 1 | 15 | 0.2 |
| 2 | 25 | 0.2 |
| 3 | 15 | 0.1 |
| 4 | 15 | 0.2 |
| 5 | 15 | 0.2 |
Table 6 Performance comparison with classical binarization methods across 30 held-out test document pages.
| Method | F1 ↑ | IoU ↑ | NRM ↓ |
|---|---|---|---|
| Otsu | 0.5400 | 0.4076 | 0.1175 |
| Sauvola | 0.7436 | 0.6087 | 0.1178 |
| Mid AVG () | 0.7647 | 0.6333 | 0.1285 |
| Edge Gate (Proposed) | 0.7916 | 0.6654 | 0.1115 |
Table 7 Reconstruction-overlap sensitivity of the selected edge-guided model. No model retraining is performed.
| Overlap | F1 ↑ | p-FM ↑ | IoU ↑ | NRM ↓ | DRD ↓ |
|---|---|---|---|---|---|
| 0% | 0.7617 | 0.7783 | 0.6275 | 0.1382 | 6.1510 |
| 10% | 0.7885 | 0.7995 | 0.6617 | 0.1141 | 5.7555 |
| 20% | 0.7916 | 0.8044 | 0.6654 | 0.1115 | 5.7007 |
| 30% | 0.7957 | 0.8053 | 0.6717 | 0.1078 | 5.5863 |
The generator contains 56.31 million trainable parameters, requiring approximately 214.82 MiB for FP32 parameters; the saved checkpoint occupies 214.90 MiB. The footprint primarily reflects the three modality-specific encoder branches
Table 8 Computational characteristics of the selected edge-guided generator. Runtime measurements were obtained on an NVIDIA Tesla T4 GPU.
| Measure | Value |
|---|---|
| Trainable parameters | 56.31 M |
| FP32 parameter memory | 214.82 MiB |
| Checkpoint size | 214.90 MiB |
| Patch complexity (MACs) | 20.68 GMACs |
| Patch complexity (FLOPs) | 41.35 GFLOPs |
| Mean patch latency | 8.73 ms |
| Median patch latency | 8.68 ms |
| 95th-percentile patch latency | 8.87 ms |
| Patch throughput | 114.51 patches/s |
| Peak GPU memory allocated | 460.58 MiB |
| Peak GPU memory reserved | 480.00 MiB |
before fusion and the subsequent U-Net encoder-decoder.
A patch requires approximately 20.68 GMACs, corresponding to 41.35 GFLOPs under the two-FLOPs-per-MAC convention. These supported-operation profiling estimates are approximate complexity indicators rather than hardware-independent runtime predictions.
Table 8 summarizes the principal complexity and inference measurements.
Single-patch inference is stable under the tested GPU conditions, yielding a mean latency of ms (median: 8.68 ms; percentile: 8.87 ms) with average throughput of approximately 114.5 patches/s. Peak allocated GPU memory during execution is 460.58 MiB (480 MiB reserved), accounting for runtime tensors and network parameters.
For document z92, nine patches at overlap required s model-only and s end-to-end. Overhead varies with page dimensions.
Although 30% overlap yields peak binarization performance (Section 5.5), the 20% setting provides a favorable accuracy-cost trade-off. While practical for GPU deployment, the 56.31-million-parameter generator footprint motivates future work into model compression, knowledge distillation, and parameter-efficient fusion mechanisms.
5.7 Qualitative Analysis
Figures 1 and 2 compare nine architectures on held-out documents z27, z35, and z80, covering bleed-through, illumination drop-offs, and faint strokes to assess foreground preservation, connectivity, and background suppression.
Mid AVG ( ) recovers primary text but shows stroke fragmentation and boundary degradation because unweighted averaging treats text-bearing and noise-dominated channels equally. CBAM, SE, and Visible/NIR gating reduce background noise but introduce non-uniform artifacts.
The two four-band variants clarify the structural loss function's role. An edge-derived channel without auxiliary supervision ( ) does not constrain feature representation space. Incorporating improves stroke continuity and suppresses isolated false positives, matching the quantitative gains observed in and DRD.
Wavelength-specific guidance shows clear structural advantages. Among , , and , gives stronger stroke reconstruction without boundary erosion or false-positive expansion. Deriving guidance from a targeted visible–NIR pair while retaining the full multispectral input preserves boundaries in severe degradation zones, supporting its , p-FM, and IoU leads.
Residual errors persist where local background contrast approaches zero, aligning with metric-specific trades (e.g., obtaining minimal NRM). Visual evidence nevertheless confirms that targeted multispectral structural guidance combined with adaptive intermediate fusion provides robust full-page binarization.
6 Limitations and Future Work
Several scope and computational limitations warrant further investigation.
Spectral Pair Selection and Dataset Scope: Evaluation uses 30 SMADI documents across four bands (500, 600, 700, and 1000 nm). Although five-fold document-level cross-validation ensures strict isolation, the dataset limits media, ink, and degradation diversity. Thus, (600/1000 nm) is not universally optimal; broader corpora and data-driven wavelength selection remain future work.
Loss Formulation and Structural Guidance Filters: The edge-aware loss weight ( ) and Sobel edge extraction were evaluated under controlled settings rather than exhaustive search. Sobel filters also respond to high-gradient bleed-through, paper grain, and stains, occasionally preserving non-text artifacts. Future work could use learned text-aware descriptors, multiscale edges, or confidence-weighted losses to balance recovery and noise suppression.
Computational Complexity and Full-Page Inference: The generator contains parameters and requires approximately 20.68 GMACs per patch. GPU latency is feasible for offline processing, but 20% reconstruction overlap increases page-level computation. Deployment-oriented work should explore branch sharing, distillation, lightweight fusion, and fully convolutional page inference.
Future work will therefore emphasize cross-dataset generalization, adaptive spatial-spectral guidance, and architectural compression.
7 Conclusion
This study established a targeted multispectral intermediate-fusion framework for historical-document binarization, showing that physically guided regulation improves on simple averaging and generic attention. At feature depth , learned edge-guided fusion replaces uniform channel weighting. A dedicated (600/1000 nm) pair supplies structural guidance while the full observation remains available, preserving character boundaries while suppressing complex degradation. Across 30 SMADI pages under five-fold document-level cross-validation, achieved statistically significant gains in , p-FM, and IoU over fixed averaging and generic CBAM/SE attention. Patch overlap and runtime analyses confirmed that a 20% patch reconstruction overlap provides a practical deployment compromise for full-page GPU inference. The results confirm that physical
Method z27 z35 z80 Mid AVG L = 3 Visible/NIR Gated Edge4Band, λedge = 0 Edge4Band, λedge = 5 CBAM Fusion Fig. 1 Qualitative comparison of baseline, gated, and channel-attention architectures on held-out documents (z27, z35, and z80), using validation-selected thresholds. wavelength selection governs distinct error profiles. While targeted F3 + NIR guidance delivers optimal overall foreground recovery and structural continuity, alternative pairings favor NRM or DRD. Targeted structural guidance therefore effectively regulates intermediate multispectral features and motivates future research into learned dynamic spectral selection and parameter-efficient document-scale architectures. Statements and Declarations Funding. This study is independent research carried out under the University of Peradeniya Multidisciplinary Research Grant Scheme (MRG 2025 06). Competing interests. The authors declare no competing interests. Author contributions. Yasas Savinda: Conceptualization, methodology, software, validation, formal analysis, investigation, visualization, and writing–original draft. Maheshi Buddhinee Dissanayake: Conceptualization, supervision, methodology, funding and grant management, formal analysis, and writing–review and editing. Both authors read and approved the final manuscript. Data availability. The experiments use the SMADI multispectral historical-document dataset associated with the ICDAR 2015 MultiSpectral Text Extraction benchmark [6]. The original SMADI dataset and benchmark information 17
Method z27 z35 z80 SE Fusion F2+NIR Edge-Guided F3+NIR Edge-Guided (Proposed) F4+NIR Edge-Guided Ground Truth Fig. 2 Qualitative comparison of channel-attention and wavelength-specific edge-guided models (F2–F4 + NIR). The proposed F3+NIR model is highlighted in bold. are publicly available for non-commercial research from the official IAPR TC-11 SMADI repository. Information on the dataset organization and file structure required to reproduce the experiments is available in the supplementary dataset information folder. The experimental outputs and analysis results generated in this study are available in the supplementary results repository. Code availability. The training, evaluation, and analysis code supporting the findings of this study is available in the supplementary code repository. Ethics approval. Not applicable. Consent to participate. Not applicable. Consent for publication. Not applicable. References [1] Souibgui MA, Kessentini Y (2022) De-gan: A conditional generative adversarial network for document enhancement. IEEE Trans Pattern Anal Mach Intell 44(3):1180–1191. https: //doi.org/10.1109/TPAMI.2020.3022406 [2] Yang Z, Liu B, Xiong Y, et al (2024) Gdb: Gated convolutions-based document binarization. Pattern Recognit 146:109989. https: //doi.org/10.1016/j.patcog.2023.109989 [3] Kim SJ, Deng F, Brown MS (2011) Visual enhancement of old documents with hyperspectral imaging. Pattern Recognit 18
44(7):1461–1469. https://doi.org/10.1016/j.patcog.2010.12.019
[4] Hedjam R, Cheriet M (2013) Historical document image restoration using multispectral imaging system. Pattern Recognit 46(8):2297–2312. https://doi.org/10.1016/j.patcog.2012.12.015
[5] Savinda Y, Dissanayake MB (2026) Deep learning-based fusion for multispectral text enhancement using supervised conditional gan. Presented at the 12th Moratuwa Engineering Research Conference (MERCon 2026)
[6] Hedjam R, Ziaei Nafchi H, Farrahi Moghaddam R, et al (2015) Icdar 2015 contest on multispectral text extraction (ms-tex 2015). In: 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pp 1181–1185, https://doi.org/10.1109/ICDAR.2015.7333947
[7] Diem M, Hollaus F, Sablatnig R (2016) Msio: Multispectral document image binarization. In: 2016 12th IAPR Workshop on Document Analysis Systems (DAS), pp 84–89, https://doi.org/10.1109/DAS.2016.39
[8] Hollaus F, Brenner S, Sablatnig R (2019) Cnn based binarization of multispectral document images. In: 2019 International Conference on Document Analysis and Recognition (ICDAR), pp 533–538, https://doi.org/10.1109/ICDAR.2019.00091
[9] Esmaeili Salehani Y, Arabnejad E, Rahiche A, et al (2020) Msdb-nmf: Multispectral document image binarization framework via non-negative matrix factorization approach. IEEE Trans Image Process 29:9099–9112. https://doi.org/10.1109/TIP.2020.3023613
[10] Baltrušaitis T, Ahuja C, Morency LP (2019) Multimodal machine learning: A survey and taxonomy. IEEE Trans Pattern Anal Mach Intell 41(2):423–443. https://doi.org/10.1109/TPAMI.2018.2798607
[11] Ma J, Liang P, Yu W, et al (2020) Infrared and visible image fusion via detail preserving adversarial learning. Inf Fusion 54:85–98. https://doi.org/10.1016/j.inffus.2019.07.005
[12] Kurar-Barakat B, Dershowitz N (2026) Segmentation of ink and parchment in dead sea scroll fragments. Int J Doc Anal Recognit 29:531–549. https://doi.org/10.1007/s10032-025-00564-4
[13] Otsu N (1979) A threshold selection method from gray-level histograms. IEEE Trans Syst Man Cybern 9(1):62–66. https://doi.org/10.1109/TSMC.1979.4310076
[14] Sauvola J, Pietikainen M (2000) Adaptive document image binarization. Pattern Recognit 33(2):225–236. https://doi.org/10.1016/S0031-3203(99)00055-2
[15] Vo QN, Kim SH, Yang HJ, et al (2018) Binarization of degraded document images based on hierarchical deep supervised network. Pattern Recognit 74:568–586. https://doi.org/10.1016/j.patcog.2017.08.025
[16] Calvo-Zaragoza J, Gallego AJ (2019) A selectional auto-encoder approach for document image binarization. Pattern Recognit 86:37–47. https://doi.org/10.1016/j.patcog.2018.08.011
[17] He S, Schomaker L (2019) Deepotsu: Document enhancement and binarization using iterative deep learning. Pattern Recognit 91:379–390. https://doi.org/10.1016/j.patcog.2019.01.025
[18] Zhao J, Shi C, Jia F, et al (2019) Document image binarization with cascaded generators of conditional generative adversarial networks. Pattern Recognit 96:106968. https://doi.org/10.1016/j.patcog.2019.106968
[19] Khamekhem Jemni S, Souibgui MA, Kessentini Y, et al (2022) Enhance to read better: A multi-task adversarial network for handwritten document image enhancement. Pattern Recognit 123:108370. https://doi.org/10.1016/j.patcog.2021.108370
[20] Liu M, Yu L, Qin Y, et al (2026) Ragan: Region-adaptive gan for binarization on degraded document images. Knowl-Based Syst 342:115860. https://doi.org/10.1016/j.knosys.2026.115860
[21] Qureshi R, Uzair M, Khurshid K, et al (2019) Hyperspectral document image processing: Applications, challenges and future prospects. Pattern Recognit 90:12–22. https://doi.org/10.1016/j.patcog.2019.01.026
[22] Farrahi Moghaddam R, Cheriet M (2015) A multiple-expert binarization framework for multispectral images. In: 2015 13th International Conference on Document Analysis and Recognition (ICDAR), pp 321–325, https://doi.org/10.1109/ICDAR.2015.7333776
[23] Hollaus F, Diem M, Sablatnig R (2018) Multispectral image binarization using gmms. In: 2018 16th International Conference on Frontiers in Handwriting Recognition (ICFHR), pp 570–575, https://doi.org/10.1109/ICFHR-2018.2018.00105
[24] Rahiche A, Bakhta A, Cheriet M (2019) Blind source separation based framework for multispectral document images binarization. In: 2019 International Conference on Document Analysis and Recognition (ICDAR), pp 1476–1481, https://doi.org/10.1109/ICDAR.2019.00237
[25] Hazirbas C, Ma L, Domokos C, et al (2017) Fusenet: Incorporating depth into semantic segmentation via fusion-based cnn architecture. In: Computer Vision – ACCV 2016, Lecture Notes in Computer Science, vol 10111. Springer, pp 213–228
[26] Arevalo Ovalle JE, Solorio T, Montes-y Gómez M, et al (2017) Gated multimodal units for information fusion. In: 5th International Conference on Learning Representations (ICLR 2017), Workshop Track Proceedings, URL https://mlanthology.org/iclr/2017/ovalle2017iclr-gated/
[27] Hu J, Shen L, Sun G (2018) Squeeze-and-excitation networks. In: 2018 IEEE/CVF Conference on Computer Vision and Pattern
Recognition, pp 7132–7141
[28] Woo S, Park J, Lee JY, et al (2018) Cbam: Convolutional block attention module. In: European Conference on Computer Vision (ECCV), pp 3–19
[29] Li H, Wu XJ (2019) Densefuse: A fusion approach to infrared and visible images. IEEE Trans Image Process 28(5):2614–2623. https://doi.org/10.1109/TIP.2018.2887342
[30] Ma J, Yu W, Liang P, et al (2019) Fusiongan: A generative adversarial network for infrared and visible image fusion. Inf Fusion 48:11–26. https://doi.org/10.1016/j.inffus.2018.09.004
[31] Isola P, Zhu JY, Zhou T, et al (2017) Image-to-image translation with conditional adversarial networks. In: 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pp 1125–1134, https://doi.org/10.1109/CVPR.2017.632
[32] Dissanayake MB (2026) A pix2pix gan-based denoising system for historical stone writing restoration. In: 2025 IEEE 19th International Conference on Industrial and Information Systems (ICIIS), pp 431–435, https://doi.org/10.1109/ICIIS69028.2026.11450630
[33] Ntirogiannis K, Gatos B, Pratikakis I (2013) Performance evaluation methodology for historical document image binarization. IEEE Trans Image Process 22(2):595–609. https://doi.org/10.1109/TIP.2012.2219550
[34] Lu H, Kot AC, Shi YQ (2004) Distance-reciprocal distortion measure for binary document images. IEEE Signal Process Lett 11(2):228–231. https://doi.org/10.1109/LSP.2003.821748
[35] Demšar J (2006) Statistical comparisons of classifiers over multiple data sets. J Mach Learn Res 7:1–30. URL https://www.jmlr.org/papers/v7/demsar06a.html
[36] Holm S (1979) A simple sequentially rejective multiple test procedure. Scand J Stat 6(2):65–70