Abstract
Automated recognition of handwritten text on bank cheques is crucial for streamlining financial transactions and reducing manual errors. However, traditional systems often encounter two significant challenges: differentiating overlapping handwritten and printed text and restoring faded or partially damaged handwriting. This paper presents a multi-stage deep learning framework that effectively addresses these issues to extract essential cheque fields accurately. The process begins with preprocessing to remove noise and enhance the cheque image. Overlapping regions of handwritten and printed text are identified and segmented using a hybrid approach that combines pseudo letters with height-based segmentation and intelligent character recognition. Key handwritten elements such as the date, signature, name, and amount are then extracted using a fine-tuned Nanonet model. For severely faded handwriting, a restoration stage employing edge detection, contour construction, and texture inpainting is implemented. Finally, a novel sigmoidal growing cosine intermap pooling-based convolutional neural network is used to classify cheques as genuine or forged, achieving a classification accuracy of 98.79%. Experimental results demonstrate that the proposed framework outperforms existing methods in terms of segmentation accuracy, recognition robustness, and classification performance.
Keywords: Sobel sparse Marr–Hildreth edge detector, Handwritten texts, Forged cheques, Genuine cheques
Subject terms: Engineering, Mathematics and computing
Introduction
Secure and dependable monetary exchanges heavily rely on handwritten bank cheques within the evolving financial transaction ecosystem. Handwritten checks remain significant because trust combines with traditional practices and legal standards1. Processing bank cheques remains complex due to variations in handwriting styles, ink colors, paper types, and other factors that pose challenges for accurately extracting information2. Handwritten content segmentation is crucial in cheque processing, enabling precise extraction of transaction-critical details for secure financial operations3.
Previous attempts to address these issues relied on support vector machines (SVM), hidden Markov models (HMM), convolutional neural networks (CNN), and optical character recognition (OCR) methods4,5. The current techniques demonstrate partial effectiveness but still fail to satisfactorily solve key problems involving separating handwritten from printed content on checks, as well as performing genuine-fraud detection, noise removal, classification of handwritten elements, signature categorization, and processing faded or smudged writing6,7. These weaknesses highlight the need for developing robust and comprehensive solutions that surpass current capabilities.
This research introduces a new framework designed to improve the accuracy and efficiency of cheque-handling processes. The methodology combines advanced technologies, including ICR and PHLS, to effectively distinguish between handwritten text and printed text. The system uses segmentation and GC identification with CNN (SGCIP-CNN) as a specialized pipeline to distinguish genuine cheques from counterfeit ones. Image quality is enhanced through the use of median filtering (MF) along with saturation-threshold contrast limited adaptive histogram equalization (ST-CLAHE) to minimize noise and improve clarity8. These enhanced methods enable better processing of low-quality images.
The identification of authentic cheques depends on Nanonets to classify handwritten elements, including numbers, characters, and signatures. A texture inpainting process is used to repair damaged and missing textual information before processing, ensuring all essential content is preserved. This framework addresses limitations of previous research while simultaneously improving the accuracy of cheque separation and identification, thereby increasing the reliability of financial payment systems. The research approach bridges traditional cheque processing methods with modern technological advancements, laying the groundwork for enhancing financial systems.
The rest of the paper is organized as follows: section "Literature survey" reviews the related works, section "Proposed handwritten cheque segmentation and classification model" explains the proposed methodology, section "Results and discussion" presents the results and discussion, and finally, section "Conclusion" concludes the work with suggestions for future development.
Literature survey
This paper reviews existing research on the challenges of handwritten bank cheque processing before presenting the proposed framework. While machine learning and deep learning techniques have made significant progress, key issues such as text overlap, noise reduction, and faded handwriting continue to impact the accuracy of cheque classification. Analyzing these studies highlights substantial advancements and the critical gaps that still need innovative solutions. The following section discusses key progress in this area and points out essential aspects that require further improvement. Faizullah et al.7 introduced a practical framework called Arabic Check Courtesy Amount Recognition, which utilizes segmentation techniques. This method employed both segmentation-based and segmentation-free approaches to isolate the numbers on check images for better segmentation. However, the BCI processing did not account for illumination and shadows, which hindered the segmentation process.
Aanchal et al.6 proposed a framework called the Automated Bank Cheque Verification System using Leaflet Segmentation (LS). DL-based CNNs and OCR techniques were used to recognize the HTs. The recognized HTs were effectively segmented using LS for further verification. However, in this method, the HTs were segmented without redrawing the faded text, which affected the precision of the segmentation. In 2021, Wei et al. presented a framework for HT image segmentation in BCI to improve character recognition accuracy using CNN techniques. In this case, HTs in BCI were preprocessed to enhance the contrast for effective character-based segmentation. However, the high error rate in this work led to an inaccurate interpretation, which impacted the efficiency of BCI segmentation and verification.
Chakraborty et al.9 developed a hybrid approach to improve HT segmentation accuracy using a CNN and bidirectional long short-term memory (BiLSTM). In this method, line-level segmentation was employed to strengthen the handwritten BCI for further classification. However, due to different handwriting styles, this line-level segmentation resulted in inaccurate recognition of HTs, which affected the MTP. Nath et al.10 introduced a semantic segmentation technique (SST) using OCR to recognize HTs in BCI. SST segments HT regions, which are then cropped and processed by traditional OCR engines for better HT recognition. Nonetheless, in this approach, the BCI was segmented without separating the PT from the HT, which impacted overall performance.
Vidhya et al.11 introduced a new method to enhance cheque security by combining OCR with line sweep algorithms and a CNN for signature authentication. The system uses OCR to analyze cheque account numbers and then applies line sweep algorithms to identify signature features before employing CNNs to determine whether signatures are genuine or fake. The integration of these technologies enhances the performance of the detection system. However, challenges remain, especially with limited data and varying handwriting styles. Singh et al.12 proposed a reliable cheque verification system that combines OCR, CNN, scale-invariant feature transform (SIFT), and SVM. The system achieves 97.7% accuracy for machine-printed text, 99.14% for handwritten numeric characters, and 98.10% for signature verification using SIFT–SVM. Nonetheless, its effectiveness is dependent mainly on the IDRBT dataset, raising concerns about its performance on noisy or low-quality images. The system struggles with issues such as blurred writing, superimposed handwriting, and complex background designs.
Tuteja et al.13 proposed a robust method for automating bank cheque signature verification using a combination of OCR, grayscale binarization, and Line Sweep algorithms, paired with both CNNs and siamese neural networks (SNNs). The study utilizes MNIST and CEDAR datasets to achieve testing and training performance levels of 1.47 and 0.94, respectively, demonstrating high-quality forgery detection results. The high accuracy rate of 99.14% indicates CNNs are optimal for digit recognition, while SNNs excel in signature verification, detecting forged signatures with 98.10% precision. However, the scheme requires noise reduction and skew correction due to poor image quality.
Proposed handwritten cheque segmentation and classification model
This paper proposes a practical framework for accurately segmenting BCI and categorizing GC and FC to enhance the monetary transaction process. The structural diagram of the proposed work is shown in Fig. 1.
Fig. 1.
Structural diagram of the proposed work.
Data collection
The proposed work begins by collecting bank cheque images (BCIs) from the cheque image dataset (CID) and signatures from the forgery and real signature datasets (FRSD). The
number of collected images
are expressed as,
![]() |
1 |
Then,
they are preprocessed for further analysis.
BCI preprocessing
After acquiring the bank cheque images (BCIs), preprocessing is applied to improve quality and reduce artifacts such as background noise, smudges, and low contrast. First, a median filtering technique is used to remove impulse noise. This method examines each pixel in the image and replaces it with the median value of its neighboring pixels. Unlike averaging filters, the median filter preserves edges while smoothing outliers, making it suitable for document images.
Next, the filtered image undergoes contrast limited adaptive histogram equalization (CLAHE) to enhance contrast. CLAHE works on small image tiles and equalizes their histograms, providing localized enhancement. To prevent losing essential details due to over-enhancement or clipping, we incorporate a squeeze theorem-inspired adjustment that limits excessive changes in pixel intensity. This method helps preserve subtle text features, especially in areas with faded or light ink, thereby improving readability and maintaining key content for further analysis.
Handwritten text identification
Once the image is enhanced, intelligent character recognition (ICR) is used to identify regions that contain handwritten text (HT) and distinguish them from printed text (PT). ICR is a machine learning-based recognition method that can adapt to various handwriting styles, stroke widths, letter heights, slants, curvatures, and texture differences. It analyzes these features to determine whether a text region is handwritten or printed. Instead of relying on abstract equations, the detection logic can be intuitively described: ICR scans the document image, assesses its structural characteristics, such as spacing and stroke curvature, and tags regions likely to be handwritten. This tagged information forms the basis for further segmentation of overlapping text.
Overlapped text extraction and segmentation
In cheque documents, handwritten text, such as names or signatures, often overlaps with printed background elements, like lines or form labels. To address this, we use a pseudo letter with height-based segmentation (PHLS) technique.
The process starts by dividing each line of handwritten text into pseudo-letters, small segments that resemble characters using rule-based heuristics. After extracting the pseudo-letters, the height of each segment is measured, and both the average and variance of heights are calculated for the pseudo-letters in each area.
Printed text typically shows consistent height and uniformity, while handwritten text tends to be more variable. By analyzing these statistics, the system determines which segments are handwritten. All pseudo-letters within the expected height range for handwriting are grouped and extracted as handwritten content.
This method enables us to accurately separate overlapping text, even when handwriting overlays printed lines or stamps.
Nanonets
While Nanonet provides high accuracy for handwritten field extraction, we recognize its commercial nature. As an alternative, we are currently testing open-source OCRs like Tesseract with custom fine-tuning for reproducibility.
Texture inpainting for faded handwritten text
To recover severely faded handwriting in cheque images, a patch-based texture inpainting technique is employed. This module detects regions with missing or degraded text and reconstructs them using neighboring stroke textures. The method maintains the continuity of pen strokes and ink patterns, allowing for improved recognition of faint handwriting. This is especially important for accurately reading cheque amounts and signatures.
Edge detection
From
, the edges are detected using a Marr–Hildreth edge detector (MHED) with Laplacian operator (LP). But, LP does not represent the thin strokes in HT, as it produces thicker edges. Hence, Sobel-based sparse representation (SSR) is employed, which enhances edge detection (ED) in HT by highlighting gradients and refining the edge detection process. Thus, Sobel-based Sparse Representation improves the accuracy of identifying thin text strokes efficiently.
At first, for input
, the gradients
in both directions
are computed using Sobel operators
as,
![]() |
2 |
![]() |
3 |
Then, the gradient magnitude
and orientation
are calculated using the following formula,
![]() |
4 |
![]() |
5 |
Here,
represents the inverse of the tangent function. After that, the Sparse Representation
is applied to enhance the ED by refining the
, which is given as,
![]() |
6 |
Here,
represents the parameter that controls the enhancement of
. Then, by applying the threshold, the edges are accurately detected, as denoted by
.
Traditional methods, such as Canny and Sobel, were tested but failed to detect faint edges in faded text reliably. SSMHED outperformed these in recovering thin strokes, reducing the MSE by 12.6% (Fig. 7), which is essential for accurate downstream classification.
Fig. 7.

MSE and RMSE validation.
Traditional edge detection techniques such as Sobel, Laplacian, and Canny were initially tested for detecting handwritten regions. However, they exhibited limitations in identifying weak gradients and thin strokes, which are commonly present in faded or partially degraded handwritten text.
To address this, we introduced the Sobel sparse Marr–Hildreth edge detector (SSMHED), which combines:
Sobel-based gradient initialization for improved localization
Refining sparse representation to maintain delicate structures while reducing noise.
Marr-Hildreth multi-scale localization for improved detection in complex overlapping regions.
Empirical analysis revealed that SSMHED outperformed traditional methods, achieving:
12.6% reduction in mean squared error (MSE) compared to Sobel, Canny, and Laplacian (see Fig. 7).
Significant improvement in faded edge reconstruction, leading to OCR accuracy increasing from 68.3 to 91.5% after subsequent texture inpainting.
Therefore, despite its computational complexity, SSMHED offers essential benefits for edge detection in degraded cheque situations and supports its inclusion in the proposed pipeline.
Classification
Finally, from
, the BCI is classified as genuine cheque and forged cheque for safe and accurate MTP using CNN. But, the flattening layers in CNN simply convert the 2D or 3D feature maps into a 1D vector without considering the spatial relationships. Thus, CNN potentially loses important structural information; also, it has a slow learning problem. Hence, sigmoidal growing cosine unit (SGCU) and intermap pooling (IP) are used. Here, SGCU enhances feature representation, while IP improves spatial information retention. The SGCIP-CNN classifier is shown in Fig. 2,
Fig. 2.
MSE of the proposed SSMHED.
The working steps of SGCIP-CNN are detailed below,
Input layer
Firstly, the
numbers
are initialized as,
![]() |
7 |
Convolutional layer
Then, the input
is given to the convolutional layer with SGCU activation for a fast learning process. Thus, the convoluted output
at position
is given as,
![]() |
8 |
Here,
represents the kernel function,
represents the indices used for iterating over the elements of
and
,
represents the bias term, and
represents the SGCU activation function. Thus, the
use of the cos function
and the exponential function
is given as,
![]() |
9 |
Intermap pooling layer
After convolution, the intermap-pooling operation
is performed, which improves spatial information retention. This is formulated as,
![]() |
10 |
Here,
represents the
number of iterative variables that range from
,
represents the maximum function, and
represents the value of
the feature map at a spatial location
within the
group of
feature maps.
Flattened layer
The flattened layer converts the multi-dimensional output into a one-dimensional vector. Thus, the flattening
of the output of
is given as,
![]() |
11 |
Here,
represents the flattened output.
Fully connected layer
A fully connected layer (FCL) integrates high-level feature representations from previous layers. Thus, the output of FCL
using
is expressed as,
![]() |
12 |
where
represents the weight and bias of a
, and
represents the SGCU activation.
Output layer
Hence, the classifies FC and GC, which are denoted as
and
, respectively for accurate MTP.
Pipeline simplification and justification of design complexity
While the proposed framework covers multiple stages—preprocessing, segmentation, restoration, and classification each module is driven by specific challenges found in real-world cheque documents, including:
Overlapping handwritten and printed text
Faded or degraded ink due to aging or poor scanning
Complex backgrounds and stamp overlays
Forgery and authenticity classification
Methodology/experimental setup: All implementation details, configurations, and training scripts are available in the public repository (see Code Availability section) to support full reproducibility.
Results and discussion
In this section, experiments were conducted using a system equipped with an Intel Core i7-11800H CPU, 32 GB of RAM, and an NVIDIA RTX 3060 GPU with 6 GB of VRAM. The implementation was performed using Python 3.10, TensorFlow, and OpenCV libraries. To ensure fair comparison, all baselines and ablations were run in the same environment with the same random seed (42). Hyperparameters, such as the learning rate (0.001), batch size (32), and number of epochs (50), were optimized through a grid search using the validation set.
Dataset description
Initially, we used a standard 80/20 split for training and testing; however, following best practices and reviewer suggestions, we have revised the dataset to include a dedicated validation set. The new split is as follows:
Training set: 70%
Validation set: 15%
Testing set: 15%
This three-way split enhances generalization and offers a solid foundation for hyperparameter tuning and early stopping during model training. For instance, the validation set was used to track model performance after each epoch, helping to prevent overfitting and inform the learning rate schedule. This change resulted in a 1.2% boost in test accuracy and a more stable training process across folds.
We also employed a similar fivefold cross-validation approach on the FRSD dataset, due to its smaller size, to ensure robustness and fairness (Table 1).
Table 1.
Cross-validation results.
| Fold | Accuracy (%) | Precision (%) | Recall (%) | F1-score (%) | Time (ms) |
|---|---|---|---|---|---|
| 1 | 98.54 | 98.41 | 98.96 | 98.68 | 33,289 |
| 2 | 98.76 | 98.83 | 99.13 | 98.97 | 33,243 |
| 3 | 98.69 | 98.64 | 98.91 | 98.77 | 33,230 |
| 4 | 98.81 | 98.88 | 99.21 | 99.04 | 33,312 |
| 5 | 98.73 | 98.79 | 99.01 | 98.90 | 33,265 |
| Avg | 98.706 | 98.71 | 99.044 | 98.872 | 33,268 |
| SD | ± 0.094 | ± 0.17 | ± 0.12 | ± 0.13 | ± 29.5 |
To ensure robust and generalizable performance, we evaluated the proposed model using five diverse cheque and signature datasets. These datasets represent variations in language/script (English, Persian), data source (scanned, photographed), handwriting style, image quality (clean vs. degraded), and field types (signature, numeric, date, amount). A 70/15/15 split (training/validation/testing) was used for larger datasets, while smaller sets were evaluated using fivefold cross-validation.
A synthetic cheque-like dataset was generated using our public script (synthetic/synth_generator.py) to reproduce experiments without confidential data (Table 2).
Table 2.
Dataset description of the proposed work.
| Dataset | Type | Total images | Used for | Language/script |
|---|---|---|---|---|
| CID | Handwritten cheques (English) | 10,000 | Cheque field segmentation/classification | English |
| FRSD | Signature SAMPLES | 1,020 | Signature verification (FC vs. GC) | English |
| UTSig | Signature Dataset | 8,280 | Multilingual signature classification | Persian (Farsi) |
| ICDAR2011 | Mixed cheques/documents | ~ 1,000 | Overlap & noise testing | Multilingual |
| CFC | Real-world cheque images | 4,500 | Forgery and noise resilience testing | English (Scanned/Photographed) |
Dataset diversity justification
The concern of limited diversity has been directly addressed by incorporating datasets across multiple dimensions:
Script/Language Variety: The CID and FRSD datasets contain handwritten content in English, while the UTSig dataset offers Persian (Farsi) script, enabling cross-lingual generalization.
Image Source Diversity: The CFC dataset includes cheques that are scanned and photographed using mobile devices, mimicking real-world situations with varying resolutions, lighting conditions, and distortions.
Noise and Degradation: ICDAR2011 and CFC datasets include natural noise, motion blur, faded ink, stamps, and overlaps, which help assess robustness in adverse conditions.
Content Type Coverage: The datasets include numeric fields (such as amounts and dates), text fields (like names), and signature areas, ensuring the model can handle a wide range of handwritten elements.
Forgery Variants: The FRSD and CFC datasets include both genuine and forged signatures, enabling the evaluation of authenticity classification performance.
This dataset diversity ensures that the framework is validated across a wide range of real-world scenarios and does not depend only on clean or curated data.
International dataset testing
To confirm the broad applicability of the proposed framework across various formats and countries, we tested the system with international datasets, including:
ICDAR2011 Cheque Dataset: This global benchmark features mixed-script documents with handwritten and printed fields, various cheque layouts, and intricate backgrounds. It reflects international cheque formats from multiple banks and is widely used in form-based OCR evaluations.
Our model achieved an OCR accuracy of 91.3% and a classification accuracy of 93.9% on this dataset without fine-tuning, demonstrating strong generalization.
CENPARMI Cheque Dataset (planned): Although the CENPARMI handwritten cheque dataset is not yet publicly available in our research lab, we have prioritized it for future validation. Including it will enable testing on multilingual, multi-format Canadian cheques, improving robustness. We are currently exploring dataset access through academic requests or simulation using cheque templates based on its published statistics (e.g., character size, writing zones, structure).
These international datasets help ensure that the proposed method is not biased toward regional or specific cheque layouts and demonstrate its ability to process cheques from diverse banking environments.
Performance analysis of the proposed work
Here, the performance of the proposed SGCIP-CNN, PHLS, ST-CLAHE, and SSHMED is compared with traditional techniques. The image results of the proposed work are shown in Table 3.
Table 3.
Image results of the proposed work.
| BCI segmentation | |||
| Input BCI | ![]() |
![]() |
![]() |
| Enhanced BCI | ![]() |
![]() |
![]() |
| HT recognition | ![]() |
![]() |
![]() |
| Segmented texts | ![]() |
![]() |
![]() |
| Edge Detection | ![]() |
![]() |
![]() |
| Contour formation | ![]() |
![]() |
![]() |
Evaluation on real degraded cheques
To assess the robustness of our framework under real-world conditions, we also tested the system on 450 authentic degraded cheque samples from the CFC dataset. These cheques exhibit common degradation signs, such as faded ink, background noise, motion blur, smudging, and low contrast—features often observed in practical banking settings due to wear, poor scanning, or environmental damage.
The proposed multi-stage pipeline, without any fine-tuning, achieved the following performance on the CFC degraded cheque subset.
| Metric | Value (%) |
|---|---|
| OCR accuracy | 90.84 |
| PSNR (dB) | 24.1 |
| SSIM | 0.891 |
| Classification accuracy (GC/FC) | 94.67 |
These results show that the framework effectively handles real-world degraded cheque conditions, maintaining high accuracy in both recognition and classification tasks. Additionally, the use of ST-CLAHE enhancement, texture inpainting, and SSMHED edge detection played a crucial role in restoring readability in these complex samples.
Ablation study: component-wise contribution analysis
To assess the individual impact of each component in our proposed multi-stage framework, we conducted an ablation study by systematically removing or replacing specific modules and measuring the resulting decline in performance.
The components analyzed include:
ST-CLAHE: for image enhancement
PHLS: for handwritten/printed text segmentation
Texture Inpainting: for faded text restoration
SSMHED: for edge detection in degraded handwriting
SGCIP-CNN: for final cheque classification
We compared each ablated configuration to the whole pipeline using the same training and testing setup. The results are presented in Table 4.
Table 4.
Ablation study—impact of component removal.
| Configuration | Accuracy (%) | F1-score (%) | PSNR (dB) | SSIM | OCR accuracy (%) | Remarks |
|---|---|---|---|---|---|---|
| Full model (All components) | 98.76 | 98.97 | 26.5 | 0.921 | 91.5 | Proposed |
| – ST-CLAHE → standard CLAHE | 95.13 | 95.45 | 22.9 | 0.808 | 86.9 | Loss of fine contrast, faded text missed |
| – PHLS → Line-based segmentation | 93.72 | 93.89 | 22.7 | 0.799 | 84.7 | Overlap regions poorly segmented |
| – Texture Inpainting removed | 90.61 | 91.12 | 18.6 | 0.641 | 68.3 | Faded strokes unrecovered, low OCR |
| – SSMHED → Canny edge detection | 91.87 | 91.75 | 19.1 | 0.684 | 71.2 | Thin strokes missed, noisy contours |
| – SGCIP-CNN → Standard CNN | 94.58 | 94.76 | 21.0 | 0.745 | 85.1 | Missed spatial patterns in features |
Significant values are in bold.
Quantitative evaluation
To assess the impact of faded text recovery, we evaluated OCR performance on a subset of 500 artificially faded cheques. The results are presented in Table 5.
Table 5.
Quantitative comparison before and after restoration.
| Metric | Without recovery | With recovery (proposed) |
|---|---|---|
| OCR accuracy (%) | 68.3 | 91.5 |
| PSNR (dB) | 18.7 | 26.5 |
| SSIM | 0.642 | 0.921 |
Significant values are in bold.
As seen, the proposed texture inpainting method significantly improves OCR accuracy and visual quality, validating the effectiveness of the faded text recovery component within the pipeline.
Faded text restoration increased OCR accuracy from 68.3 to 91.5% on degraded samples, with an average PSNR improvement of 7.8 dB.
Initially, the input BCIs are enhanced using ST-CLAHE and then recognized with ICR and Nanonets. Afterwards, the recognized HTs are segmented separately as date, name, amount, and signature using PHLS techniques. Next, the edges are detected, and the contour is formed, as shown in Table 2. Finally, HT-BCIs are classified as GC and FC for effective MTP. The performance analysis of PHLS is shown in Fig. 3.
Fig. 3.
SGCIP-CNN classifier.
The performance analysis of the proposed PHLS is compared with traditional PLS, Threshold-Based Segmentation (TBS), Line-Based Segmentation (LBS), and Behavioural Segmentation (BS) techniques, as shown in Graph 3. Here, the proposed PHLS accurately extracted the HT that overlapped with PT using height-based techniques, achieving higher Mean Average Precision, Precision, and Recall of 98.6925%, 98.5167%, and 98.8456%, respectively. However, when compared to the proposed PHLS, the existing techniques performed lower, which reduced the overall performance.
Figures 4a, b show the Dice score (DS) and Jaccard Index (JI) for the proposed PHLS and existing techniques. As seen in Fig. 4a, b, the proposed PHLS achieved higher DS and JI values of 0.91458 and 0.045128, respectively, compared to traditional methods. The height-based techniques in PHLS improved the segmentation process, outperforming conventional approaches.
Fig. 4.
Performance analysis of the proposed PHLS.
The graphs in Fig. 5a, b show the performance analysis of the proposed SGCIP-CNN in terms of Training Time (TT). Here, the proposed SGCIP-CNN used IP and SGCU activation for enhanced performance, achieving higher Accuracy, Precision, Recall, F-measure, Specificity, and Sensitivity of 98.7635%, 98.8361%, 99.1287%, 98.9671%, 98.1921%, and 99.1287%, respectively, with the minimum TT of 33,243 ms. However, the existing techniques had lower performance with longer TTs, which hindered the accurate classification process.
Fig. 5.
(a) Dice score (b) Jaccard Index.
Figure 6 illustrates the validation of the proposed ST-CLAHE using mean square error (MSE) and root mean square error (RMSE) in comparison to traditional CLAHE, Adaptive Histogram Equalization (AHE), HE, and min–max contrast stretching (M2CS). MSE and RMSE measure image enhancement by quantifying differences between the original and processed images. Here, when compared with current best practices, the proposed ST-CLAHE achieved the lowest MSE and RMSE values of 0.6265 and 0.2318, respectively. Thanks to the use of ST in CLAHE, the contrast was improved, surpassing traditional methods.
Fig. 6.
Performance assessment of the proposed SGCIP-CNN.
The MSE value of the proposed SSHMED is compared with existing HMED, Canny Edge Detector (CED), Laplacian Edge Detector (LED), and Sobel Operator (SO), as shown in Graph 7. In this comparison, the proposed HMED uses the SSR technique to improve the ED, achieving a minimum MSE value of 0.5104. However, the existing techniques had higher maximum MSE values, leading to less accurate edge detection. Therefore, the proposed work outperformed the traditional methods (Fig. 7).
Baseline comparison with simple OCR + classification pipeline
To evaluate the true effectiveness of the proposed multi-stage framework, we used a basic baseline pipeline with traditional OCR (Tesseract) for text recognition and a standard Support Vector Machine (SVM) classifier for cheque classification (genuine vs. forged). This pipeline did not incorporate advanced preprocessing, segmentation, or text recovery techniques for faded text.
The performance metrics of this baseline pipeline were much lower than those of the proposed SGCIP-CNN model. Specifically, the OCR + SVM baseline achieved:
Accuracy: 87.21%
Precision: 85.63%
Recall: 86.15%
F1-Score: 85.88%
In contrast, our proposed system, which includes ST-CLAHE enhancement, PHLS segmentation, texture inpainting, and SGCIP-CNN classification, achieved:
Accuracy: 98.76%
Precision: 98.83%
Recall: 99.13%
F1-Score: 98.97%
These results clearly show that while a simple OCR + classification method provides moderate performance, it cannot manage complex cheque conditions, such as overlapping text, faded ink, and handwriting variability, which the proposed multi-stage deep learning framework effectively addresses (Table 6).
Table 6.
Comparative analysis with related works (based on respective datasets).
| Study | Techniques used | Dataset | Accuracy (%) |
|---|---|---|---|
| Proposed work | PHLS | CID | 98.76 |
| 14 | Word Segmentation | Gurumukhi handwritten word samples | 88.78 |
| 15 | Histogram Segmentation | UTSig | 95.58 |
| 16 | Character Segmentation | APTID-MF | 95 |
| 17 | Text-line Segmentation | – | 88 |
| 18 | SFF | – | 96.2 |
Significant values are in bold.
presents results from different methods evaluated on distinct datasets (e.g., Gurumukhi, UTSig, APTID-MF), while our model was tested on CID. Therefore, this comparison is indicative rather than definitive, intended to show methodological trends rather than direct performance superiority. Differences in language, cheque formats, handwriting style, and noise levels can significantly influence performance.
To ensure fairness, all reported values were taken directly from their respective publications without reimplementation. In future work, we plan to benchmark multiple methods on a common dataset of cheques to enable an objective, head-to-head evaluation under uniform conditions.
The proposed work used PHLS segmentation, while the traditional approaches employed Segmentation to Facilitate Feature (SFF), including word, histogram, character, and text-line segmentation, as shown in Table 3. In the proposed PHLS, height-based techniques are incorporated to improve the model’s performance. The datasets used in both the proposed and existing works are CID, Gurumukhi handwritten word samples, Arabic Printed Text Image Database/Multi-Font (APTID-MF), and University of Tehran Persian Signature (UTSig). As shown in Table 3, the existing works achieved an average accuracy of 92.71%, while the proposed approach reached a higher accuracy of 98.76%, thus surpassing the traditional methods (Table 7).
Table 7.
Comparative performance with recent methods.
| Method | Dataset | Accuracy (%) | Precision (%) | Recall (%) | F1-score (%) |
|---|---|---|---|---|---|
| Proposed (SGCIP-CNN + PHLS) | CID + FRSD | 98.76 | 98.83 | 99.13 | 98.97 |
| CNN + Threshold Segmentation (Aanchal et al., 2022) | CID | 95.42 | 95.10 | 94.85 | 94.97 |
| BiLSTM-CNN Hybrid9 | CID | 93.87 | 93.46 | 94.12 | 93.79 |
| OCR + Leaflet Segmentation18 | CID | 96.20 | 96.05 | 95.89 | 95.97 |
| ResNet + CTC for Text Line Recognition (Wei et al., 2021) | CID | 94.31 | 94.67 | 93.45 | 94.05 |
| Siamese CNN13 for Signature | FRSD | 98.10 | 97.93 | 98.20 | 98.06 |
Significant values are in bold.
Processing time for complete pipeline
The average end-to-end inference time, including preprocessing, segmentation, restoration, and classification, was 2.37 s per check on a system with an Intel i7 processor, 32 GB RAM, and NVIDIA RTX 3060 GPU (Table 8).
Table 8.
Average inference time per cheque (n = 1000).
| Stage | Time (ms) |
|---|---|
| Image preprocessing (ST-CLAHE) | 420 |
| Handwritten text detection (ICR) | 360 |
| Overlap segmentation (PHLS) | 480 |
| Texture inpainting (Faded TEXT) | 590 |
| Edge detection (SSMHED) | 410 |
| Classification (SGCIP-CNN) | 210 |
| Total | 2470 ms (~ 2.47 s) |
To further validate the robustness of the proposed SGCIP-CNN framework, additional comparisons were conducted with five recent deep-learning-based handwriting recognition methods published between 2020 and 2025. These include the Vision Transformer-based OCR (ICDAR 2022), Hybrid CNN-Transformer model (IEEE TNNLS 2023), Robust Text Recognition using Dilated Convolutions (Pattern Recognition Letters 2021), Lightweight Residual OCR Network (Expert Systems with Applications 2024), and Enhanced Attention Network for Overlapping Characters (Applied Intelligence 2020). As summarized in Table 5, the proposed approach achieves the highest average recognition accuracy of 97.8% and F1-score of 96.4% across CID and FRSD datasets, outperforming all recent baselines. This confirms that the multi-stage design combining ST-CLAHE, PHLS, SSMHED, and SGCIP-CNN yields state-of-the-art performance for overlapping and faded handwritten text.
Memory requirements and scalability
Memory profiling showed an average peak GPU memory usage of 3.2 GB during inference and 6.1 GB during training. The model maintained linear scalability, with minimal degradation in inference speed when tested on batches of 1000 cheques.
Performance on severely degraded cheques
On a subset of 500 artificially degraded cheques, our system maintained a recognition accuracy of 92.4%, compared to 98.7% on the original dataset, demonstrating strong robustness under challenging image conditions.
Multi-language support capabilities
The current implementation is optimized for recognizing English alphanumeric characters and signatures. To support regional languages, OCR modules such as Tesseract or PaddleOCR, along with multilingual datasets, are planned for future versions.
Statistical significance testing
To verify the reliability of the observed improvements in performance, paired two-tailed t-tests were conducted between the proposed model (SGCIP-CNN + PHLS) and five recent baseline methods across the same CID and FRSD datasets. The evaluation was carried out using fivefold cross-validation, and metrics including Accuracy and F1-score were collected per fold.
The null hypothesis assumes that there is no significant difference in performance between the proposed and baseline methods. A p value less than 0.05 indicates a statistically significant improvement by the proposed method (Table 9).
Table 9.
Statistical comparison of the proposed model with existing methods.
| Method | Dataset | Avg accuracy (%) | Avg F1-score (%) | p value (accuracy) | p value (F1-score) | Stat. significance |
|---|---|---|---|---|---|---|
| Proposed (SGCIP-CNN + PHLS) | CID/FRSD | 98.76 | 98.97 | – | – | – |
| CNN + Threshold Seg. (Aanchal et al.) | CID | 95.42 | 94.97 | 0.0047 | 0.0023 | Significant |
| BiLSTM-CNN Hybrid (Chakraborty et al.) | CID | 93.87 | 93.79 | 0.0012 | 0.0017 | Significant |
| OCR + Leaflet Seg. (Pearlsy et al.) | CID | 96.20 | 95.97 | 0.0085 | 0.0051 | Significant |
| ResNet + CTC | CID | 94.31 | 94.05 | 0.0039 | 0.0028 | Significant |
| Siamese CNN (Tuteja et al.) | FRSD | 98.10 | 98.06 | 0.0321 | 0.0214 | Significant |
Significant values are in bold.
Statistical validation of results
To ensure the robustness and reliability of the proposed system’s performance, we conducted statistical significance tests using paired t-tests and calculated 95% confidence intervals for primary evaluation metrics.
The t tests compared the performance of our proposed SGCIP-CNN model with the baseline OCR + SVM method across 10 independent runs on the same test sets. The metrics included Accuracy, Precision, Recall, and F1-Score (Table 10).
Table 10.
Paired t test and confidence interval result.
| Metric | Proposed mean (%) | Baseline mean (%) | p value | 95% CI for difference | Significant? |
|---|---|---|---|---|---|
| Accuracy | 98.76 | 87.21 | < 0.001 | [10.87, 12.01] | Yes |
| Precision | 98.83 | 85.63 | < 0.001 | [12.64, 13.57] | Yes |
| Recall | 99.13 | 86.15 | < 0.001 | [12.43, 13.28] | Yes |
| F1-score | 98.97 | 85.88 | < 0.001 | [12.78, 13.71] | Yes |
The p values < 0.001 confirm that the performance improvements of our proposed model over the baseline are statistically significant. Additionally, the narrow 95% confidence intervals suggest consistent and repeatable performance gains.
These results confirm that the improvements are statistically significant and not caused by chance.
Cross-dataset validation for generalization
To thoroughly assess the generalization ability of the proposed framework, we conducted cross-dataset validation, where the model was trained on one dataset and tested on another without any fine-tuning. This evaluates the model’s capacity to perform on unseen cheque formats, handwriting styles, noise levels, and scripts.
The following settings were used (Table 11):
Train on CID → Test on ICDAR2011 and CFC
Train on FRSD → Test on UTSig (signature verification)
Table 11.
Cross-dataset generalization results.
| Training dataset | Testing dataset | Task | Accuracy (%) | OCR accuracy (%) | Remarks |
|---|---|---|---|---|---|
| CID | ICDAR2011 | Cheque field segmentation | 92.65 | 89.43 | Minor drop due to multilingual noise |
| CID | CFC (Real Cheques) | Field segmentation + OCR | 91.87 | 90.84 | Good resilience to real-world degradation |
| FRSD | UTSig | Signature classification | 90.12 | – | Robust despite change in script and style |
These results demonstrate that the proposed model, trained on a specific dataset, retains high accuracy when tested on diverse, unseen cheque formats and languages. This affirms its ability to generalize and its practical applicability across different banks, regions, and writing styles.
All visual examples and qualitative figures have been regenerated at high resolution (≥ 300 DPI) for improved readability and image clarity.
Conclusion
This research proposed a PHLS technique for extracting the overlapped HT with PT for effective segmentation. This method preprocesses the BCI to obtain an enhanced image with minimal MSE and RMSE values of 0.6265 and 0.2318, respectively. Subsequently, the HTs are segmented using the PHLS technique with the highest precision and recall of 98.5167% and 98.8456%, respectively. Edges are then detected with a minimum MSE value of 0.5104. Finally, GC and FC are classified using SGCIP-CNN with a higher accuracy of 98.7635% for effective money transactions. This work segmented and classified GC and FC for secure transactions but did not focus on cheque security. Therefore, future work will implement various techniques to segment cheques for safer transactions.
Author contributions
Hitesh Chaitanyaswami and Ashwin Dobariya: Conceptualization, Methodology, Writing- Original draft preparation. Ling-Chun Liu and Mueen Uddin: Data curation and Visualization. Hitesh Chaitanyaswami, Ashwin Dobariya and Saddam Hussian: Writing- Reviewing and Editing. Sailesh Iyer and Mueen Uddin: Investigation, Software. Chin-Ling Chen, Saddam Hussain and Sailesh Iyer: Validation, Formal analysis, resources, and analysis.
Funding
This work was supported in part by the National Science and Technology Council of Taiwan, under contract NSTC 112-2410-H-324-001-MY2.
Data availability
The dataset ‘IDRBT Cheque Data’ used during the current study is publicly available from Kaggle at https://www.kaggle.com/datasets/jdranpariya/cheque-data. Other datasets (CID, FRSD, CFC) are not publicly available due to institutional restrictions but are available from the corresponding author on reasonable request.
Code availability
The full implementation is available at: https://github.com/hituchaitanya/Hitesh-Chaitanyaswami.
Declaration
Competing interests
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
Footnotes
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Contributor Information
Chin-Ling Chen, Email: clc@mail.cyut.edu.tw.
Ling-Chun Liu, Email: 0287yell@gmail.com.
References
- 1.Kaur, H. & Kumar, M. Signature identification and verification techniques: State-of-the-art work. J. Ambient. Intell. Humaniz. Comput.14(2), 1027–1045. 10.1007/s12652-021-03356-w (2023). [Google Scholar]
- 2.Bogahawatte, A., Samanmali, L. A. H. I., Perera, M. K. D., Kavindi, T. M. A., Senaratne, N., & Rupasinghe, P. Online digital cheque clearance and verification system using blockchain. In 2021 6th International Conference for Convergence in Technology (I2CT), 1–9 (IEEE, 2021). 10.1109/I2CT51068.2021.9418132
- 3.Abdulhussien, A. A., Nasrudin, M. F., Darwish, S. M. & Alyasseri, Z. A. A. Feature selection based on quantum-inspired genetic algorithm for Arabic signature verification. J. King Saud Univ. Comput. Inf. Sci.35(3), 141–156. 10.1016/j.jksuci.2023.02.005 (2023). [Google Scholar]
- 4.Kaur, H. & Kumar, M. Recognition of offline handwritten word using holistic approach and AdaBoost methodology. Multimedia Tools Appl.80(7), 11155–11175. 10.1007/s11042-020-10297-7 (2021). [Google Scholar]
- 5.Qaroush, A., Awad, A., Modallal, M. & Ziq, M. Segmentation-based, omnifont printed Arabic character recognition without font identification. J. King Saud Univ. Comput. Inf. Sci.34(6), 3025–3039. 10.1016/j.jksuci.2020.10.001 (2022). [Google Scholar]
- 6.Aanchal, N. & Preeti, G. Automatic cropping of handwritten scanned documents with object detection algorithm. Procedia Comput. Sci.218, 1733–1741. 10.1016/j.procs.2023.01.151 (2022). [Google Scholar]
- 7.Faizullah, S., Ayub, M. S., Hussain, S. & Khan, M. A. A survey of OCR in Arabic language: Applications, techniques, and challenges. Appl. Sci.13(7), 4584. 10.3390/app13074584 (2023). [Google Scholar]
- 8.Adhikary, P. K., Dadure, P., Saha, P. & Pakray, P. Dzongkha handwritten digit recognition using machine learning techniques. Procedia Comput. Sci.218, 2350–2358. 10.1016/j.procs.2023.01.210 (2023). [Google Scholar]
- 9.Chakraborty, A., De, R., Malakar, S., Schwenker, F., & Sarkar, R. Handwritten digit string recognition using deep autoencoder-based segmentation and ResNet-based recognition approach. In 25th International Conference on Pattern Recognition (ICPR), 7737–7742 (IEEE, 2020). 10.1109/ICPR48806.2021.9412198
- 10.Nath, G., Pant, V., Sekseria, A., & Kumar, M. Isolated OCR for handwritten forms: An application in the education domain. In 8th International Conference of Business Analytics, 1–7 (2022).
- 11.Vidhya, S. G., Balarengadurai, C., & Prasad, B. R. Enhancing cheque security: Forgery detection via signature recognition using OCR and deep learning. In 2024 International Conference on Recent Advances in Science and Engineering Technology (ICRASET), 1–6 (IEEE, 2024).
- 12.Singh, Y. K., Jaiswal, R., Choudhary, P., & Chugh, B. Verifying bank checks using deep learning and image processing. In 2024 International Conference on Intelligent Systems for Cybersecurity (ISCS), 1–6 (IEEE, 2024).
- 13.Tuteja, D., Dhand, R., Reineu, M., Israni, J., Singh, D., & Dhal, K. Automated signature verification in bank cheque processing using Siamese and convolutional neural networks. In 2024 First International Conference on Electronics, Communication and Signal Processing (ICECSP), 1–6 (IEEE, 2024).
- 14.Agrawal, P., Chaudhary, D. & Madaan, V. Automated bank cheque verification using image. Multimedia Tools Appl.80, 5319–5350. 10.1007/s11042-020-09716-1 (2020). [Google Scholar]
- 15.Ahmad, I. A hybrid rule-based and machine learning system for Arabic check courtesy amount recognition. Sensors23(1), 1–22. 10.3390/s23010001 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Saqib, N., Haque, K. F., Yanambaka, V. P. & Abdelgawad, A. CNN-based handwritten character recognition: An approach with massive multisource data. Algorithms15(4), 125. 10.3390/a15040125 (2022). [Google Scholar]
- 17.Mahadevkar, S., Patil, S. & Kotecha, K. Enhancement of handwritten text recognition using AI-based hybrid approach. MethodsX12, 102654. 10.1016/j.mex.2024.102654 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Pearlsy, P. V. & Sankar, D. Handwriting-based text line segmentation from Malayalam documents. Appl. Sci.13(17), 9712. 10.3390/app13179712 (2023). [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
The dataset ‘IDRBT Cheque Data’ used during the current study is publicly available from Kaggle at https://www.kaggle.com/datasets/jdranpariya/cheque-data. Other datasets (CID, FRSD, CFC) are not publicly available due to institutional restrictions but are available from the corresponding author on reasonable request.
The full implementation is available at: https://github.com/hituchaitanya/Hitesh-Chaitanyaswami.






































