Abstract
In the field of forensic document examination, accurately determining the chronological sequence of intersecting lines between seal ink and handwriting is a crucial technical step for verifying document authenticity, identifying contract tampering, and detecting forged signatures. This technique analyzes the physical superimposition relationship formed by the deposition of the two media on the paper substrate to provide objective scientific evidence for judicial practice. Although traditional methods such as microscopic imaging and mass spectrometry analysis have achieved some progress, they still suffer from common limitations including high equipment costs, complex operation, and potential damage to samples. This study proposes and validates an innovative non-destructive determination method that integrates structured light 3D reconstruction technology with deep learning algorithms. The research captures the microscopic 3D morphological features of the ink intersection area using a high-precision structured light scanning system and effectively eliminates noise interference caused by paper substrate undulation through Gaussian flattening technology. Subsequently, a multimodal fusion strategy combines 2D texture images with 3D depth information to construct a dataset rich in features. On this basis, a deep learning model based on an improved Residual Neural Network (ResNet) is designed, incorporating the ELU activation function and an EMA mechanism to enhance the model’s feature extraction capability and convergence stability. Experimental results demonstrate that the proposed method achieves a recognition accuracy of 94.39% on the test set, fully validating its effectiveness and application potential in the non-destructive determination of ink stroke sequencing.
1. Introduction
In forensic document examination, determining the chronological sequence of intersecting lines between seal ink and handwriting is a critical form of evidence for establishing the authenticity and legality of documents [1]. This technique analyzes the physical superimposition relationship formed by the deposition of the two media on the paper substrate, thereby providing scientific evidence to identify forgery such as contract tampering or fraudulent resigning of documents. Traditionally, seals have served as an essential tool for identity verification across various personal, official, and legal documents, particularly in East Asian countries [2]. The analysis of the sequence between seal impressions and handwriting holds significant value in resolving disputes related to insurance claims, inheritance distributions, and commercial contract controversies [3]. Therefore, research on the determination of the intersection sequence between seal ink and handwriting remains a subject of considerable importance in forensic document practice.
Current methods for determining the sequence of ink intersections can be primarily classified into two categories: destructive and non-destructive. Destructive methods typically involve physical processing techniques such as microtome sectioning or tape-lifting to examine cross-sectional features of documents in order to determine the intersection relationship [4]. Although these approaches are straightforward and effective, they cause permanent damage to original documents and are therefore only suitable for non-valuable samples. Due to their advantage of preserving sample integrity, non-destructive methods have become the mainstream direction in application. Their technical approaches mainly include microscopic imaging, surface chemical analysis, and spectral detection technologies [5]. In the field of microscopic imaging, researchers primarily rely on pigment distribution characteristics, differences in stroke continuity, and fluorescence response properties to determine the sequence. For example, Kaur et al. [6] successfully distinguished the overlapping relationship between toner lines and handwritten ink using a stereomicroscope. Wu et al. [7] innovatively combined reflectance measurement and fluorescence excitation technology to develop a method for positioning and observing ink intersection points, effectively improving the accuracy of sequence determination. Zhang et al. [8] pioneered the introduction of optical coherence tomography technology, achieving reliable determination of ink deposition order through 3D tomography. Surface chemical analysis techniques have developed rapidly since the early 21st century, leading to various innovative methodologies. Morais et al. [9] proposed EASI-MSI mass spectrometry imaging technology, successfully achieving sequence recognition of seal ink and handwriting ink by analyzing spatial ion distribution characteristics. Barac et al. [10] systematically optimized mega-electronvolt secondary ion mass spectrometry (MeV-SIMS), enabling it to effectively distinguish the intersection sequence of inks of the same color. Mathayan et al. [11] used ion beam analysis to determine the deposition order of inks based on differences in elemental distribution. Spectral detection technologies primarily include microspectrophotometry and Fourier-transform infrared spectroscopy (FTIR). Their core principle is to determine the deposition sequence of media by comparing differences in the absorption and reflection of light by materials. In specific applications, Li et al. [12] introduced reflectance spectroscopy analysis into determining the sequence between seal ink and writing instruments, with their research verifying the feasibility of spectral methods in document examination. Wang et al. [13] combined infrared spectroscopy with scanning electron microscopy (SEM) elemental mapping to achieve precise determination of the deposition sequence between seal ink and document printing ink. In the field of near-infrared spectroscopy, Silva et al. [14] used a near-infrared hyperspectral imaging (HSI-NIR) system combined with chemometric methods to successfully detect document tampering, with experimental data showing a determination accuracy of up to 85%. Li and Gao et al. [15] proposed an innovative method that combines visible–near-infrared hyperspectral imaging (VIS–NIR HSI) with chemometrics, and established a machine learning framework for the non-destructive and intelligent identification of crossing sequences between stamp ink and laser printer toner. Pereira et al. [16] significantly improved sequence discrimination capability by introducing projection pursuit technology, achieving a system accuracy of 90% after optimization. Rodrigues E Brito et al. [17] further expanded this technological framework, not only evaluating the effectiveness of HSI-NIR in determining stroke intersection sequence but also innovatively integrating Raman-HSI with chemometrics to construct a more accurate writing sequence analysis model.
Although these technologies have made significant progress in intersection sequence determination, they generally suffer from strong equipment dependence and high operational thresholds. Specifically, these methods typically require expensive, high-precision instruments and place high demands on the professional experience of operators. Moreover, different detection technologies have specific applicability limitations regarding sample types. For example, mass spectrometry analysis requires prior sample preparation, while optical imaging methods have limited effectiveness in examining transparent media. These technical constraints restrict the application of related methods in grassroots forensic document examination institutions.
This study proposes an innovative approach that employs structured light 3D reconstruction technology to accurately measure the surface morphology at intersections between seal ink and handwritten ink. By integrating 2D image features with 3D geometric information, the method systematically analyzes multi-dimensional feature parameters of the intersection region and incorporates a deep learning framework to achieve non-destructive and intelligent determination of the crossing sequence. The research developed an integrated solution comprising the following technical modules: First, a structured light 3D scanning system is utilized to acquire high-precision point cloud data of the document surface. Using phase demodulation algorithms, stereoscopic morphological features are reconstructed with micrometer-level resolution, enabling precise capture of micro-deformations induced by ink deposition and providing a 3D geometric foundation for subsequent analysis. Subsequently, traditional 2D image processing techniques are applied to extract multi-dimensional features from the 3D data. Specifically, the 3D point cloud is converted into a depth image and fused with the original 2D optical image in a multimodal strategy. This fusion effectively combines surface topographic characteristics with optical response traits, significantly enhancing the feature representation capability of the intersection area. In terms of algorithmic architecture, a deep learning model based on ResNet is constructed. The model consists of three core modules: (1) An image preprocessing layer that performs data augmentation on the multimodal fused image input. (2) A feature extraction layer that encodes spatial features from the 3D morphological data. (3) A decision layer that outputs the probability distribution of the intersection sequence through a fully connected network. Experimental results demonstrate that the recognition accuracy of this framework reaches 94.39% on the test set.
Notably, this study emphasizes the non-destructive nature of the technical implementation. In contrast to traditional techniques such as microspectrophotometry and Fourier transform infrared spectroscopy (FTIR), the proposed structured light 3D reconstruction method requires no contact with the document surface, thereby avoiding physical damage to the original evidence. This non-contact detection strategy is particularly suitable for analyzing irreplaceable samples, such as precious cultural relics and historical archives.
2. Materials and Methods
2.1. Data Collection
2.1.1. Experimental Setup and Materials
Equipment: The system comprised an industrial camera (976 × 556 resolution), a digital projector (DLP, 912 × 1140 resolution), and a microscope. The structured-light 3D reconstruction system was built by mounting the camera and projector onto the microscope eyepiece via a dedicated adapter. The data acquisition accuracy of the equipment is within 3 μm.
Materials: Three ink types were used: black ballpoint pen ink, photosensitive printing ink, and traditional printing paste.
Configuration: The microscope offered continuous zoom adjustment from 0.5× to 50×, enabling precise observation of the microscopic morphology at ink cross-over points. A visible white light source (color temperature 5500 K) ensured stable illumination during image capture.
Training settings: All experiments were conducted on a computing platform equipped with an NVIDIA RTX 3080Ti GPU. During training, the batch size was set to 32, and the proposed model was trained using the Adam optimizer with a learning rate of 1 × 10−4.
2.1.2. Data Set Collection
Design: To analyze crossing sequences, two sample types were prepared: (1) ballpoint pen ink with inkpad and (2) ballpoint pen ink with photosensitive printing ink. Each type included both “handwriting-first-then-seal” and “seal-first-then-handwriting” deposition sequences.
Controls: All samples were fabricated under standard laboratory conditions (temperature 25 ± 2 °C, relative humidity 50% ± 5%). Key variables were controlled: the same brand of black ballpoint pen (M&G K-35, 0.5 mm, Shanghai M&G Stationery Inc., Shanghai, China), a single experimenter for all operations, and a uniform A4 coated paper substrate (80 g/m2).
Replication: A total of 1600 samples were prepared—800 for each cross-type—to ensure dataset adequacy and enhance result reliability through a double-blind controlled experiment.
2.2. Experimental Design
Figure 1 outlines the experimental procedure. First, 2D images and 3D morphological data of intersecting lines between seal ink and handwriting were acquired and preprocessed. The 2D images were enhanced through histogram equalization, and the 3D data were converted into depth maps. Subsequently, multimodal fusion was performed between the enhanced 2D images and the depth images to construct a dataset of intersection sequences. Finally, a designed algorithm model was employed to extract features from the multimodal data and perform sequence classification.
Figure 1.
The experimental procedure of this study.
2.3. Method
2.3.1. Sample Preparation
To enhance the feature representation capability of the sample data, this study performed systematic preprocessing on the collected ink intersection data. In the 2D image processing stage, a histogram equalization algorithm was applied to improve image contrast. This method optimizes the grayscale distribution by adaptively adjusting brightness, thereby significantly enhancing the visibility of 2D texture features.
As shown in Figure 2, this study introduces a Gaussian flattening technique to compensate for paper surface undulations in 3D data processing. The process is as follows: First, Gaussian filtering is applied to the original 3D point cloud to generate a reference surface that captures the low-frequency undulation characteristics of the paper. Next, the difference between the original data and the reference surface is computed, effectively implementing a Gaussian high-pass filter. This step isolates high-frequency morphological features corresponding to the ink intersection regions. The process not only mitigates the inherent irregular deformations of the paper but also enhances the 3D features at the intersections.
Figure 2.
The process of the Gauss flattening technique. (a) Original data. (b) Gaussian filtering plane. (c) Data after Gauss flattening.
To support multimodal information fusion, the 3D geometric data are converted into depth images using Equation (3). This conversion establishes a mapping between 2D optical characteristics and 3D spatial features, creating a unified data structure for subsequent feature fusion. The mathematical expression is given as follows:
where represents the depth value of the original 3D data; represents the depth value after filtering; is the weight of the Gaussian kernel at position ; is the depth value of the 3D data after eliminating the surface undulation; is the grayscale value converted into a depth image; is the radius of the kernel; and the size of the kernel is . A larger value of results in a stronger smoothing effect. Since the signal frequency corresponding to paper surface unevenness is much lower than that of the three-dimensional morphological information, this study selects a relatively large = 300 to suppress nearly all high-frequency morphological information, thereby extracting the low-frequency base surface that characterizes the paper’s unevenness.
2.3.2. Activation Function
The activation function is a critical component in deep neural networks, with its primary role being the introduction of nonlinear mapping relationships between neural layers. Within a multi-layer network architecture, it applies a mathematical transformation to the output of neurons in one layer, converting it into input features for the subsequent layer.
The most widely used activation functions in deep learning primarily include the Rectified Linear Unit (ReLU), Sigmoid, and Tanh. Among these, ReLU has become the dominant choice in modern deep learning models due to its straightforward structure, stable gradients, and high computational efficiency. Its function is defined as follows:
The graph of the ReLU function is shown in Figure 3a. Its characteristic of maintaining a linear response (with a constant gradient of 1) in the positive region helps effectively avoid the vanishing gradient problem that traditional Sigmoid and Tanh functions may encounter in deep networks. However, when inputs remain negative, the zero gradient of ReLU in the negative region can prevent the weight parameters of some neurons from updating, a phenomenon known as the “dying neuron” problem. Specifically, if a neuron’s input consistently falls within the negative interval, its weights cannot be adjusted through backpropagation, ultimately reducing the model’s expressive capacity.
Figure 3.
Activation function. (a) ReLU. (b) ELU.
To address these limitations, this study introduces the Exponential Linear Unit (ELU) as an alternative. The mathematical expression of the ELU function is as follows:
The hyperparameter serves as the saturation parameter for the negative region, controlling the output magnitude when inputs are negative. As shown in Figure 3b, the ELU function preserves the same linear response characteristics as ReLU in the positive region, while employing a smooth exponential transition in the negative domain, thereby ensuring effective gradient flow. This design offers three principal advantages: the continuous gradient in the negative region significantly reduces the probability of neuron deactivation; the continuous differentiability at the origin minimizes disruptive discontinuities during gradient computation; and under identical hardware conditions, ELU generally enables faster model convergence compared to ReLU. By integrating the linearity of ReLU in the positive region with the smooth saturation of Sigmoid/Tanh in the negative region, ELU optimizes gradient propagation while maintaining computational efficiency. Consequently, this study adopts ELU as the activation function to enhance both the convergence efficiency and generalization capability of the algorithmic model.
2.3.3. Efficient Multi-Scale Attention
The Efficient Multi-Scale Attention (EMA) mechanism is an innovative attention approach that processes feature maps through a weighted averaging strategy, thereby enhancing the model’s ability to extract critical features [18]. Specifically, it introduces dynamic weighting factors to adaptively adjust the importance of each position in the feature map, guiding the model to focus on key regions. Its core advantage lies in its cross-space learning capability: the mechanism first divides the feature map into multiple sub-feature groups and then employs a parallel sub-network structure to extract multi-scale spatial information.
The essence of the EMA mechanism is its capacity for cross-space learning. Within each sub-feature group, EMA performs two key operations: it first reconstructs the channel weight distribution through global information encoding, and then establishes pixel-level feature correlations using cross-dimensional interaction mechanisms. The strength of this multi-scale attention architecture is that it effectively enhances the model’s feature representation power while maintaining manageable parameter counts and computational complexity.
The structure of the EMA module is illustrated in Figure 4. By integrating channel and spatial information, employing a multi-scale parallel subnetwork architecture, and refining the coordinate attention mechanism, the EMA module achieves more efficient feature representation. First, the EMA module preserves information along the channel dimension while reducing computational burden by combining channel and spatial information. This integration helps capture cross-channel relationships in feature representation without reducing the channel dimensionality, thereby enhancing model performance. Second, the module adopts a multi-scale parallel subnetwork structure, which includes one branch processing 1 × 1 convolutional kernels and another handling 3 × 3 kernels. This design effectively captures cross-dimensional interactions and establishes dependencies between different dimensions, improving the representational capacity of features. Furthermore, the EMA module introduces improvements and optimizations based on the Coordinate Attention (CA) mechanism. While CA embeds positional information into channel attention maps to fuse cross-channel and spatial information, EMA extends this by leveraging parallel subnetworks to efficiently capture cross-dimensional interactions and inter-dependencies. Lastly, the parallel subnetwork architecture of EMA facilitates feature aggregation and interaction, enhancing the model’s ability to capture long-range dependencies. This approach reduces the need for extensive sequential processing and deep network structures, leading to higher efficiency and effectiveness.
Figure 4.
Illustration of EMA. Here, “g” means the divided groups, “X Avg Pool” represents the 1D horizontal global pooling and “Y Avg Pool” indicates the 1D vertical global pooling, respectively.
The input tensor with dimensions (h, w, c) is initially divided into g groups, each containing c//g channels, followed by reorganization. Separate average pooling operations are applied along the x and y directions (inspired by coordinate attention), and the results are aggregated via a 1 × 1 convolution. A Softmax function then generates the corresponding weights. In parallel, a 3 × 3 convolution combined with average pooling produces channel-specific weights, forming the channel attention mechanism. Finally, the extracted features are fused with the original features through matrix multiplication, producing the refined channel attention features.
2.3.4. Feature Extraction
In binary classification tasks involving chronological data of seal ink and handwriting, the high-dimensional and complex feature space, along with ambiguous class boundaries, significantly increases the difficulty of model selection [19]. Specifically, the temporal data of seal ink and handwriting often comprise intricate attributes such as multi-scale textural characteristics, dynamic spectral responses, and microstructural evolution patterns. These features exhibit nonlinear distributions in high-dimensional space, and the boundaries between different classes may overlap, making it challenging for traditional classification methods to achieve effective separation. Therefore, selecting deep learning models capable of handling such data characteristics is crucial for improving classification performance.
AlexNet [20] was the first truly deep convolutional neural network, with a depth several times greater than that of earlier neural networks. By increasing the number of nonlinear transformation layers, the model can progressively extract hierarchical representations—from low-level edge features to high-level semantic features. Meanwhile, its deep architecture enhances the nonlinear mapping capability in the feature space, enabling more accurate modeling of complex data distributions. GoogleNet [21] introduced the Inception module, which allows the use of convolution kernels and pooling operations of varying sizes within the same layer, thereby capturing features at different scales. This design overcomes the limitation of traditional CNNs in single-scale feature extraction and achieves multi-scale feature fusion through concatenation along the feature dimension. VGG [22] shares a structural similarity with AlexNet but is deeper and formally simpler, significantly reducing network implementation complexity. These characteristics make VGG a versatile backbone network in computer vision. In image classification tasks, its deep feature extraction capability provides strong representations for fine-grained categorization, along with feature generalizability and transfer learning ability. SigNet [23] is a deep feature extraction network specifically designed for handwritten signature image processing and verification tasks. To address challenges such as subtle texture variations, significant inter-writer differences, and susceptibility to noise, the network incorporates systematic optimizations: a carefully designed hierarchical convolutional structure enhances the modeling of local handwriting traits; a multi-scale adaptive pooling strategy improves spatial invariance and robustness in feature representation; and Dropout is applied during training to effectively suppress overfitting and strengthen generalization. Moreover, SigNet innovatively integrates a Siamese network framework, enabling end-to-end contrastive learning that accurately measures semantic similarity between signature pairs. This design has been widely used in tasks such as signature authenticity verification and cross-domain matching. ResNet [24] demonstrates significant advantages in computer vision tasks such as image classification, object detection, and semantic segmentation. Its core innovation lies in the residual connection mechanism, which constructs skip connections across layers to facilitate efficient information flow. During forward propagation, this allows direct reuse of input features, mitigating information degradation caused by multiple nonlinear transformations. In backward propagation, the residual path provides an alternative route for gradients, effectively alleviating the vanishing gradient problem in very deep networks. As a result, the network learns richer features, improving both feature extraction capability for complex patterns and overall classification accuracy and generalization. Vision Transformer (ViT) [25] is an image classification model based purely on the Transformer architecture. Its core idea involves splitting the input image into fixed-size patches, which are then linearly embedded and combined with positional encodings before being fed into a Transformer encoder—similar to how word sequences are processed in natural language. Unlike traditional CNNs that rely on local receptive fields, ViT uses a global self-attention mechanism to directly model long-range dependencies across the entire image. This global perspective allows ViT to capture holistic structural features and effectively model contextual relationships between different regions. The flexibility of this architecture has led to significant performance gains not only in image classification but also in object detection, semantic segmentation, and generative modeling tasks in computer vision. ConvNeXt [26] is a model developed by summarizing recent advances in deep learning and integrating insights from various model optimization techniques, with targeted adjustments and optimizations applied to ResNet. It features a comprehensive redesign of ResNet’s macro architecture and implements multiple optimizations in areas such as activation functions and downsampling layers. Swin Transformer [27] represents an improvement over the ViT model, introducing hierarchical design and a shifted window attention mechanism to simulate the multi-scale feature extraction process of Convolutional Neural Networks (CNNs). By combining the powerful global modeling capability of Transformer with the multi-scale and locality priors of CNNs, it has become a significant model in the evolution of general-purpose vision backbone networks.
Figure 5 presents the network architecture employed in this study. The model is built upon the ResNet structure, which is well-suited for local feature extraction, and is enhanced by incorporating the ELU activation function along with an EMA mechanism. This integration enables the network to focus more precisely on features at ink intersections, thereby strengthening feature extraction capability and improving classification performance. Figure 5a illustrates the basic structure of the BasicBlock. In this design, the activation functions following the two linear transformations are modified by replacing ReLU with ELU. Additionally, an EMA module is incorporated before the residual addition to reweight the features. Figure 5b illustrates the overall network architecture. The input image passes through four BasicBlocks to extract features, which are then fed into an MLP layer for classification.
Figure 5.
The network architecture employed in this study. (a) Improved BasicBlock. (b) Overall network model.
To ensure scientific rigor and stability of the experimental results, the dataset was partitioned using a stratified random sampling strategy, dividing it into a training set (1280 samples, 80%) and an independent test set (320 samples, 20%). The test set was kept entirely separate from training and was used exclusively for evaluating model performance. Other models included for comparison were configured with their default parameter settings. Furthermore, all models were trained using 5-fold cross-validation. The dataset was stratified during fold partitioning to maintain consistent class distribution across all subsets. The reported results represent the mean and standard deviation calculated from the 5-fold cross-validation.
3. Results
This study collected 2D images and 3D topographic data from the intersection regions between handwriting ink and two types of seal inks. Experimental observations revealed the occurrence of ink mixing at the intersections of seal ink and handwriting. This section presents the results of temporal sequence classification performed on these ink intersection areas.
3.1. Data Analysis
This section conducts a comprehensive investigation into the 2D textural differences and 3D topographical variations among different ink intersection sequences using structured light. Figure 6 provides a visual representation of the acquired 2D and 3D samples. Red circles in the figure mark the ink intersection areas, while arrows indicate the corresponding 3D morphological features within the highlighted regions. As observed in Figure 6, distinct deposition sequences of seal ink and handwriting lead to identifiable differences in 2D image characteristics. In Figure 6a, the stroke texture indicates that the handwriting applied after the seal remains continuous and coherent, showing no disruption from the underlying seal ink. In contrast, in Figure 6c, where the seal is applied over the signature stroke, the overlapping region exhibits a lower grayscale value, and the textural characteristics of the stroke at the intersection differ from those in other areas. These distinguishing features are even more pronounced in the 3D data. In Figure 6b, it is clearly visible that the signature stroke, written after the seal, traverses the seal imprint seamlessly, maintaining a continuous and intact trajectory. Conversely, in Figure 6d, where the seal is applied over the signature, the stroke’s natural progression is disrupted by the overlying seal ink, resulting in a clear loss of continuity.
Figure 6.
The collected data samples. (a) 2D data where the seal is applied first followed by the handwriting. (b) 3D data where the seal is applied first followed by the handwriting. (c) 2D data where the handwriting is applied first followed by the seal. (d) 3D data where the handwriting is applied first followed by the seal.
3.2. Multimodal Image
The information at the same pixel positions in 2D texture images and depth images is homologous. The 3D data reconstructed based on structured light, where each 3D point is calculated from the corresponding pixel in the 2D image, remains strictly aligned with the original 2D image after being converted into a depth image. Figure 7 illustrates the multimodal image generation process. Figure 7a shows the source 2D texture image, which contains texture information of the ink intersection area. Figure 7b presents the depth image generated by the method described in Section 2.3.1, capturing the 3D topographic details of the ink intersection. Figure 7c is the resulting multimodal image, produced by fusing the 2D texture image and the depth image. This fused result integrates both textural and 3D morphological information, generated through the following formula:
where denotes the grayscale value of the fused multimodal image. corresponds to the grayscale value of the 2D image, while represents the grayscale value from the depth map of the 3D data. The parameter α is the fusion coefficient, which is set to 0.5 in this work.
Figure 7.
Multimodal image generation. (a) 2D image where the seal is applied first followed by the handwriting. (b) Depth image where the seal is applied first followed by the handwriting. (c) Multimodal image where the seal is applied first followed by the handwriting. (d) 2D image where the handwriting is applied first followed by the seal. (e) Depth image where the seal is applied first followed by the handwriting. (f) Multimodal image where the seal is applied first followed by the handwriting.
3.3. Experimental Results of Models
This study selects SigNet, ResNet, and ViT as baseline models for comparison, and introduces the recently proposed models ConvNeXt and Swin Transformer for comparative analysis. SigNet, based on the traditional convolutional neural network architecture, represents a typical method for local feature extraction. ResNet, with its residual connection structure, has become an authoritative benchmark for local feature extraction. ViT, centered on the Transformer architecture, establishes the technical foundation for global feature extraction. These three models have been widely validated in the field of computer vision, and their performance and reliability provide a scientific and reliable basis for comparison in this study. ConvNeXt and Swin Transformer, as improved variant networks of ResNet and ViT respectively, represent the cutting-edge technological directions in the field of computer vision in recent years.
As can be observed from Table 1, all network models achieved commendable recognition results; however, SigNet, as a representative of traditional convolutional neural networks, exhibited significant discrepancies between its FAR and FRR values. This indicates a certain bias in the model when processing ink chronological sequences, leading to results skewed in one direction. In contrast, ResNet not only achieved higher accuracy but also demonstrated closer FAR and FRR values, reflecting stronger stability. It is noteworthy that ViT performed relatively poorly in authentication, primarily because it focuses on global image features, while the key to ink sequence determination lies in local characteristics at ink intersections. Thus, ViT is less suitable for this task compared to networks emphasizing local feature extraction.
Table 1.
2D image experimental results.
In Table 2, the FAR and FRR values of various networks generally showed considerable fluctuation, highlighting the sensitivity of processing 3D data. Nevertheless, the proposed model still achieved relatively close FAR and FRR values without obvious bias, indicating that the introduced ELU activation function and EMA not only enhanced authentication accuracy but also played a critical role in maintaining determination stability. The proposed model, Swin Transformer, and ConvNeXt exhibit comparable overall performance. Among them, the proposed model holds a slight edge in EER, whereas ConvNeXt attains the highest accuracy. Comparison with the baseline model reveals that enhancing the extraction and optimization of local features is key to effectively boosting network performance in this scenario.
Table 2.
Depth image experimental results.
As shown in Table 3, the inclusion of more information from ink intersections in multimodal data led to improved performance across all models, underscoring the superiority and effectiveness of the multimodal image approach. ViT and Swin Transformer showed only a marginal improvement, further supporting that networks focusing on local feature extraction are more appropriate for ink chronology authentication tasks. The proposed model achieves optimal performance on certain metrics and is comparable to recent advanced models overall.
Table 3.
Multimodal image experimental results.
To evaluate the statistical significance of the performance difference between the proposed model and the baseline ResNet model, we conducted McNemar’s test on the same test set. The contingency table shows that the number of samples correctly classified by the proposed model but misclassified by the baseline model is b = 11, whereas the number of samples correctly classified by the baseline but misclassified by the proposed model is c = 5. The exact McNemar’s test yields p = 0.028, which is below the significance level of α = 0.05. This indicates that the improvement in the proposed model over the baseline model is statistically significant.
Figure 8 presents the misclassified cases of the proposed method in this study. (a) The 3D morphological data of this sample are chaotic, with blurred information in both the seal and handwriting regions, along with significant overall noise. (b) and (c) In the 3D data of these samples, although the handwriting is clearly discernible, the seal region is not distinctly represented and is severely interfered with by other areas of the paper surface. (d) The 2D image of this sample shows highly complex handwriting with severe stroke overlap, while the corresponding 3D data lacks sufficient detail in this area. These cases indicate that the model’s misjudgments primarily stem from acquisition noise interference, low-quality 3D data, and complex overlapping of handwriting strokes. Furthermore, this also demonstrates that acquiring higher-quality sample data will help improve classification performance.
Figure 8.
Misclassified Cases. (a,b) are samples of handwriting-first-then-seal; (c,d) are samples of seal-first-then-handwriting.
4. Discussion
The experimental results indicate that samples with different crossing sequences exhibit distinct differences in both 2D image features and 3D topographic characteristics. These differences primarily arise from the intermixing of inks, deposition behavior of ink traces, and paper micro-deformation caused by indentation. In 2D images, the mutual fusion of inks has a more pronounced effect, manifested by the fact that ink applied later often maintains a more independent trace state. In contrast, 3D topography is influenced by a wider range of factors, enabling multi-angle reflection of structural differences across various crossing sequences. However, due to the complexity of these influencing factors, classification based solely on 3D data becomes more challenging, resulting in reduced accuracy.
All models demonstrated superior performance when using multimodal data compared to using single-dimensional data alone, confirming the effectiveness of integrating 2D image and 3D topographic information. Multimodal data provides a more comprehensive and complementary feature representation. In terms of determination methods, deep learning models based on local feature extraction exhibited better classification performance than those relying on global feature extraction, which aligns with the premise that local intersection regions play a critical role in crossing sequence determination. Among them, the residual network demonstrated excellent determination capability and stability. By incorporating the ELU activation function and EMA mechanism, the feature extraction ability of the ResNet model was further enhanced, enabling it to effectively capture sequential characteristics in intersection regions and thereby improving classification outcomes. Model comparison results indicate that global feature extraction models have limited performance in ink sequence determination tasks, whereas local feature extraction models not only achieve higher recognition accuracy but also exhibit stronger robustness when handling such complex data.
In the experimental phase of this study, standardized paper and writing tools were used to control variables. While this approach helps to clearly demonstrate the effectiveness of the method itself, it also constitutes an important limitation: the impact of different paper types and various writing tools on the detection results has not been systematically evaluated. These factors may introduce variables in practical applications. Future work will focus on expanding the diversity of the dataset by establishing a standardized test set that includes multiple types of paper and writing tools. This will enable a comprehensive evaluation of the robustness and generalizability of the proposed method, thereby promoting its broader practical application.
5. Conclusions
This study innovatively integrates structured light 3D reconstruction technology with deep learning models to propose a non-destructive testing method for identifying the deposition sequence of seal ink and handwriting at their intersections. The core of the method lies in using structured light 3D reconstruction to simultaneously capture 2D texture images and high-precision 3D topographic data of the ink cross-over regions, followed by the construction of a deep learning-based feature extraction and classification model to process and analyze the collected multimodal data. In terms of model design, the discriminative features of the intersection areas are effectively enhanced through Gaussian flattening preprocessing and a multimodal feature fusion strategy. Furthermore, by incorporating an EMA mechanism and ELU activation function into the ResNet architecture, the model’s classification performance under complex ink-crossing characteristics is improved. Experimental results demonstrate that distinguishable feature differences exist in both 2D texture and 3D topography at the intersections of seal ink and handwriting. Compared with global feature extraction models, local feature extraction models show superior performance and stronger discriminative capability in this task. The improved method exhibits significant advantages in accuracy, stability, and non-destructiveness, thereby offering a reliable and efficient technical means for forensic document examination and forensic science.
Author Contributions
Conceptualization, H.W. and Z.L.; methodology, H.W. and L.Z.; software, H.W. and Z.M.; validation, H.W., X.H. and Z.L.; formal analysis, H.W. and L.Z.; investigation, Y.G. and Z.W.; resources, J.W. and J.H.; data curation, H.W.; writing—original draft preparation, H.W. and Z.M.; writing—review and editing, X.H. and Z.W.; visualization, Y.G.; supervision, X.H. and J.H.; project administration, J.W. All authors have read and agreed to the published version of the manuscript.
Funding
This research was supported by the Fundamental Research Funds for Central Universities (Key Cultivation Program of China Criminal Police University) under Grant No. D2023003, the Open Research Topics of the Key Laboratory of Trace Evidence Identification and Forensic Science Technology, Ministry of Public Security, China Criminal Police University under Grant No. HJ2024409KF, and the Funded Projects of the Hubei Key Laboratory of Forensic Science (Hubei University of Police) under Grant No. KFKT2022002.
Data Availability Statement
The datasets generated and/or analyzed during the current study are available from the corresponding author upon reasonable request.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Su, D.; Li, K. Micro Raman spectroscopy combined with chromatographic effect and OPLS-DA for time-resolved detection of stamp inks. Microchem. J. 2023, 190, 108727. [Google Scholar] [CrossRef] [Scilit]
- Dirwono, W.; Park, J.S.; Agustin-Camacho, M.; Kim, J.; Park, H.-M.; Lee, Y.; Lee, K.-B. Application of micro-attenuated total reflectance FTIR spectroscopy in the forensic study of questioned documents involving red seal inks. Forensic Sci. Int. 2010, 199, 6–8. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yao, Y.T.; Song, J.; Yu, J.; Wang, X.F.; Hou, F.; Zhang, A.L.; Liu, Y.; Han, J.; Xie, M.X. Differentiation and dating of red ink entries of seals on documents by HPLC and GC/MS. J. Sep. Sci. 2009, 32, 2919–2927. [Google Scholar] [CrossRef] [Scilit]
- Ozbek, N.; Braz, A.; López-López, M.; García-Ruiz, C. A study to visualize and determine the sequencing of intersecting ink lines. Forensic Sci. Int. 2014, 234, 39–44. [Google Scholar] [CrossRef] [Scilit]
- Sharma, V.; Chopra, R.; Verma, N.; Mishra, P.K.; Cieśla, R. Infrared and Raman spectroscopy in conjunction with chemometric methods in questioned document analysis: Forensic applications. TrAC Trends Anal. Chem. 2024, 180, 117989. [Google Scholar] [CrossRef] [Scilit]
- Kaur, R.; Kaur, G. Application of physical techniques for establishment of homogeneous and heterogeneous intersecting strokes between laser toner and writing pen inks. Int. J. Med. Toxicol. Leg. Med. 2021, 24, 73–79. [Google Scholar] [CrossRef] [Scilit]
- Wu, X.; Ouyang, G.; Li, B.; Cui, L.; Zhou, G. Determining Line-Crossing Sequences Between Laser Printing and Writing Pen Using Coaxial Light. J. Forensic Sci. 2020, 65, 1242–1246. [Google Scholar] [CrossRef] [Scilit]
- Zhang, N.; Jiang, P.; Wang, W.; Wang, C.; Xie, L.; Li, Z.; Huang, W.; Shi, G.; Wang, L.; Yan, Y. Initial study for the determination of the sequence of intersecting lines between gel pens and seals by optical coherence tomography. J. Forensic Sci. 2020, 65, 2071–2079. [Google Scholar] [CrossRef] [Scilit]
- de Morais, D.R.; de Morais Campêlo, J.; Razzo, D.; Eberlin, M.N.; Costa, J.L.; Santos, J.M. Forensic determination of crossing lines involving stamp and pen inks by mass spectrometry imaging. Anal. Methods 2020, 12, 951–958. [Google Scholar] [CrossRef] [Scilit]
- Barac, M.; Filko, A.; Siketić, Z.; Brajković, M.; Ledić, A.; Radović, I.B. Comparison of optical techniques and MeV SIMS in determining deposition order between optically distinguishable and indistinguishable inks from different writing tools. Forensic Sci. Int. 2022, 331, 111136. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Mathayan, V.; Sortica, M.; Primetzhofer, D. Determining the chronological sequence of inks deposited with different writing and printing tools using ion beam analysis. J. Forensic Sci. 2021, 66, 1401–1409. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, B. An examination of the sequence of intersecting lines using microspectrophotometry. J. Forensic Sci. 2016, 61, 809–814. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Li, B. Determination of the sequence of intersecting lines from laser toner and seal ink by Fourier transform infrared microspectroscopy and scanning electron microscope/energy dispersive X-ray mapping. Sci. Justice 2012, 52, 112–118. [Google Scholar] [CrossRef] [Scilit]
- Silva, C.S.; Pimentel, M.F.; Honorato, R.S.; Pasquini, C.; Prats-Montalbán, J.M.; Ferrer, A. Near infrared hyperspectral imaging for forensic analysis of document forgery. Analyst 2014, 139, 5176–5184. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Li, C.; Gao, S. Determining line-crossing sequences between stamp inks and laser printing toner based on Vis-NIR hyperspectral imaging technology. Microchem. J. 2025, 214, 114125. [Google Scholar] [CrossRef] [Scilit]
- Pereira, J.F.Q.; Silva, C.S.; Braz, A.; Pimentel, M.F.; Honorato, R.S.; Pasquini, C.; Wentzell, P.D. Projection pursuit and PCA associated with near and middle infrared hyperspectral images to investigate forensic cases of fraudulent documents. Microchem. J. 2017, 130, 412–419. [Google Scholar] [CrossRef] [Scilit]
- e Brito, L.R.; Braz, A.; Honorato, R.S.; Pimentel, M.F.; Pasquini, C. Evaluating the potential of near infrared hyperspectral imaging associated with multivariate data analysis for examining crossing ink lines. Forensic Sci. Int. 2019, 298, 169–176. [Google Scholar] [CrossRef] [Scilit]
- Ouyang, D.; He, S.; Zhang, G.; Luo, M.; Guo, H.; Zhan, J.; Huang, Z. Efficient multi-scale attention module with cross-spatial learning. In Proceedings of the ICASSP 2023—12023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), Rhodes Island, Greece, 4–10 June 2023; pp. 1–5. [Google Scholar]
- Li, W.; Chen, C.; Su, H.; Du, Q. Local binary patterns and extreme learning machine for hyperspectral imagery classification. IEEE Trans. Geosci. Remote Sens. 2015, 53, 3681–3693. [Google Scholar] [CrossRef] [Scilit]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. In Proceedings of the Advances in Neural Information Processing Systems 25 (NIPS 2012), Lake Tahoe, NV, USA, 3–6 December 2012. [Google Scholar]
- Szegedy, C.; Liu, W.; Jia, Y.; Sermanet, P.; Reed, S.; Anguelov, D.; Erhan, D.; Vanhoucke, V.; Rabinovich, A. Going deeper with convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 1–9. [Google Scholar]
- Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar] [CrossRef] [Scilit]
- Dey, S.; Dutta, A.; Toledo, J.I.; Ghosh, S.K.; Lladós, J.; Pal, U. Signet: Convolutional siamese network for writer independent offline signature verification. arXiv 2017, arXiv:1707.02131. [Google Scholar] [CrossRef] [Scilit]
- He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
- Dosovitskiy, A. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Mao, H.; Wu, C.-Y.; Feichtenhofer, C.; Darrell, T.; Xie, S. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA, 18–24 June 2022; pp. 11976–11986. [Google Scholar]
- Liu, Z.; Lin, Y.; Cao, Y.; Hu, H.; Wei, Y.; Zhang, Z.; Lin, S.; Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, QC, Canada, 10–17 October 2021; pp. 10012–10022. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.







