A deep learning-based real-time monitoring method for printing ink particle size

By employing multi-field high-speed imaging and deep learning-based semantic segmentation methods, the problems of low accuracy and poor anti-interference ability in existing printing ink particle size detection have been solved. This enables full-width, blind-spot-free, high-precision online real-time detection and provides multi-dimensional statistical information to support intelligent closed-loop control of the printing process.

CN123181534APending Publication Date: 2026-11-27ZHENGZHOU UNIVERSITY OF LIGHT INDUSTRY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611086777.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing printing ink particle size detection technologies suffer from low accuracy, poor anti-interference capabilities, difficulty in achieving online real-time monitoring, and inability to provide full-width, blind-spot-free detection, resulting in delayed and large-error detection results, which cannot meet the needs of wide-format industrial production lines.

Method used

A multi-field high-speed imaging approach combined with deep learning-based semantic segmentation and intelligent image parameter extraction methods is adopted. Full-frame, blind-spot-free image acquisition is achieved through multiple high-speed cameras. A deep learning model with an encoder-decoder architecture is constructed, embedding a high-frequency sensing module and a spatially dependent sensing module. The model is trained using binary cross-entropy and the Dice loss function to perform high-precision segmentation and particle size analysis of ink particles.

Benefits of technology

It achieves full-width, blind-spot-free, high-precision online real-time detection, significantly improving the detection rate of microparticles, reducing the counting error of adhering particles, providing multi-dimensional statistical information to accurately locate fault locations and predict printhead clogging risks, and supporting intelligent closed-loop control of the printing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181534A_ABST
    Figure CN123181534A_ABST
Patent Text Reader

Abstract

The application discloses a kind of based on deep learning's printing ink particle size real-time monitoring method and system, belong to image recognition technical field.The method uses multiple high-speed cameras and parallelly lays along the width direction of conveying device, realizes the image acquisition of full-width surface blind area of the detected object;Semantic segmentation model based on encoder-decoder architecture is constructed, high-frequency perception module is embedded in the output end of encoder to enhance the edge response of tiny particle, and spatial dependence perception module is set between decoder and encoder to model cross-layer feature space dependence relationship, and accurately separate adherent particles;Binary cross-entropy and Dice joint loss function are used to train the model;After segmentation, the area threshold of region classification is determined according to the pixel area distribution of single ink particle region in labeled sample, and based on the threshold, single particle region and continuous or aggregated region are classified, equivalent diameter is used to represent the particle size of single particle, and the structure information of continuous region is quantified by detecting the peak value of row pixel histogram, finally the mean, standard deviation and spatial distribution statistical results of particle size distribution are output.The application realizes high-precision, full-width, online real-time monitoring of printing ink particle size, which can effectively warn the risk of nozzle blockage and provide data support for printing process closed-loop control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image recognition technology, and more specifically to a method for real-time monitoring of printing ink particle size based on deep learning. Background Technology

[0002] In modern printing production, the dispersion state of ink, especially the particle size and distribution, is a core parameter directly affecting the quality and consistency of printed products. The uniformity of ink particle size determines the ink's tinting strength, gloss, flowability, and stability. Excessively large or uneven particle sizes can lead to serious defects in printed products, such as color differences, spots, screen clogging, and die lines, and may even damage precision printing equipment. Therefore, accurate and rapid detection of ink particle size during ink preparation, mixing, and printing press operation is crucial for achieving closed-loop control of the printing process, reducing scrap rates, and improving product quality.

[0003] Currently, the ink particle size detection methods widely used in the industry are mainly divided into two categories: offline and online. Traditional offline detection methods, such as scraper fineness gauges, laser diffraction, and microscopic image analysis, while offering high measurement accuracy, generally suffer from problems such as complex operation, long processing times, and reliance on human experience. These methods require sampling, sample preparation, and laboratory analysis, and cannot provide real-time feedback, resulting in detection results that lag significantly behind the production process. By the time unqualified particle size is detected, a large number of defective products have often been generated, causing significant material and economic losses. Furthermore, existing detection systems typically employ a single-camera imaging scheme, which has a limited field of view. When dealing with large-format printed materials, there are serious blind spots, failing to meet the full-coverage online detection requirements of industrial wide-format production lines, and the completeness and representativeness of the detection results are difficult to guarantee.

[0004] In recent years, some high-end printing equipment has introduced online detection systems based on machine vision and photoelectric detection. However, existing technologies mostly use simple threshold segmentation or classical edge detection operators to extract particles from ink images. Due to the complex printing environment, factors such as uneven lighting, temperature and humidity changes, and equipment vibration introduce a large amount of noise. The above methods lack effective preprocessing methods for the original image, making it difficult to effectively filter out background interference and enhance the separability of target features. This results in limited accuracy of subsequent feature extraction and poor segmentation stability.

[0005] Meanwhile, the difference in grayscale characteristics between nano-sized fine particles and micron-sized agglomerates in ink is not obvious. Traditional algorithms are not very sensitive to different scales, especially high-frequency edge information is easily submerged in noise, resulting in a very low detection rate of fine particles. A large number of fine particles are missed because they cannot be effectively identified, which seriously affects the accuracy and reliability of particle size detection results.

[0006] Furthermore, the distribution of printing inks on the substrate surface often involves overlap and adhesion, making it difficult for traditional algorithms to effectively separate them, resulting in significant deviations in particle counting and particle size measurement. Some researchers have attempted to introduce machine learning methods for image classification, but existing models have simple architectures and lack effective modeling of the spatial dependencies between low-level detail features and high-level semantic features. They also suffer from insufficient segmentation stability when facing complex situations such as particle aggregation and blurred boundaries, making it difficult to achieve accurate separation of adhered particles.

[0007] Existing models typically employ conventional loss functions during training. Since ink particle regions occupy a very small proportion of the image, the positive and negative samples are severely imbalanced, and model training tends to favor the background region, resulting in low particle region segmentation accuracy. At the same time, the lack of targeted data augmentation strategies leads to weak model generalization ability, making it difficult to adapt to the detection requirements of different printing processes and ink systems. This makes it difficult to achieve high-precision, real-time particle size detection on complex and ever-changing industrial production lines.

[0008] Existing methods lack sophisticated parameter extraction strategies for segmented ink regions, failing to differentiate between ink patches or agglomerates and individual ink particles. This often leads to misclassification of large-area aggregates as oversized particles, resulting in severely distorted particle size histograms. Furthermore, there is a lack of quantitative analysis methods for the internal structure of patchy regions. When detection results are abnormal, existing systems can only provide simple out-of-range alarms, unable to jointly analyze multi-dimensional statistical information such as particle size distribution mean, standard deviation, and spatial distribution. This makes it difficult to pinpoint specific fault locations or predict printhead clogging risks, and further hinders the provision of comprehensive decision-making support for intelligent closed-loop control of printing process parameters.

[0009] In summary, developing a printing ink particle size detection method that can overcome the above-mentioned defects, achieve full-width blind-zone-free detection, high precision, strong robustness, and meet the requirements of online real-time operation is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0010] This invention aims to address the problems of low accuracy, poor anti-interference ability, and difficulty in achieving online real-time monitoring in existing printing ink particle size detection technologies. It provides a deep learning-based method and system for real-time monitoring of printing ink particle size. This method achieves high-precision, full-width, online real-time detection of printing ink particle size through the organic combination of multi-field high-speed imaging, deep learning semantic segmentation, and intelligent image parameter extraction.

[0011] To achieve the above objectives, the present invention adopts the following technical solution: A deep learning-based real-time monitoring method for printing ink particle size is disclosed, implemented using a dedicated real-time monitoring system. The system includes a computer, a high-speed microscopic camera, a conveying device, and a motor. The high-speed microscopic camera consists of multiple high-speed cameras, arranged side-by-side above the object being inspected along the width of the conveying device. The number of cameras is determined by adapting the width of the object and the field of view of the cameras to achieve full-area, blind-spot-free image acquisition of the object's surface. Each high-speed camera is communicatively connected to the computer, forming an image acquisition module.

[0012] The motor is connected to the conveyor and is used to drive the object being inspected to run continuously. The image acquisition module is used to acquire images of ink particles on the surface of the object being inspected in real time and transmit the image data to a computer for further processing.

[0013] Based on the above system, the monitoring method of the present invention specifically includes the following steps: Step S1: System Configuration and Image Acquisition A motor-driven conveyor system continuously moves the object being inspected along a preset direction. Multiple high-speed cameras, arranged side-by-side above the object along the width of the conveyor system, are activated to synchronously capture real-time images of the ink patterns on different areas of the object's surface as it moves continuously along the conveyor. Each high-speed camera captures images of ink particles within its corresponding field of view, and the multi-channel image data is transmitted in real-time to a computer for unified processing via a data transmission interface.

[0014] Step S2: Image Preprocessing After receiving the original ink image, the computer performs preprocessing. The preprocessing includes: first, identifying and extracting the target region containing ink particles in the original image to remove irrelevant background and reduce subsequent computation and background interference; second, normalizing the extracted image to a preset model input scale; and finally, converting the image to grayscale or color space according to detection requirements to enhance the contrast between the ink particles and the background.

[0015] Step S3: Build and configure the ink particle size detection model This invention constructs a deep learning-based semantic segmentation model. This model employs an encoder-decoder architecture and innovatively embeds a high-frequency perception module (HFP) and a spatial dependency perception module (SDP). The encoder layer comprises first to fifth sequentially connected encoding blocks, which are connected via downsampling operations to progressively extract deep semantic features from the input image. The decoder layer comprises first to fourth sequentially connected decoding blocks, which are connected via upsampling operations to progressively restore the spatial resolution of the feature maps. The high-frequency perception module (HFP) is embedded at the output of each encoder block. This module includes a spatial attention submodule and a channel attention submodule to enhance the high-frequency detail features of ink particles, highlighting their edge and texture information while suppressing low-frequency background interference. The spatial dependency perception module (SDP) is connected between the decoder layer and the corresponding encoder layer to model the spatial dependency between low-level detail features and high-level semantic features, thereby improving segmentation stability under complex conditions such as particle aggregation and blurred boundaries.

[0016] Step S4: Dataset creation and model training Before the model is put into use, it needs to be trained. First, a large number of ink particle image samples on the surface of the object being tested are acquired using the aforementioned high-speed microscopic camera, and the ink particle regions in the original images are manually labeled at the pixel level. Subsequently, data augmentation processing is performed on the original images and their labeled images, including random rotation, random cropping, and affine transformation, to expand the training samples and finally form a training dataset. The constructed model is then used to segment and train the training dataset. During training, a joint loss function consisting of the binary cross-entropy loss function and the Dice loss function is used for optimization, while the Adam optimizer is used as the optimizer for model parameters to accelerate convergence and improve segmentation accuracy.

[0017] Step S5: Ink Particle Image Segmentation The preprocessed ink image is input into the trained ink particle size detection model. During the model inference phase, the encoder extracts multi-scale features from the image, and the decoder recovers and fuses the features step by step. In this process, the high-frequency perception module enhances the edge details of the ink particles, and the spatially dependent perception module optimizes the fusion of features at different scales. Finally, the model outputs a saliency probability map of the ink particles. Through threshold segmentation, the saliency probability map is transformed into a binary segmentation result of the ink particles, providing basic data for subsequent parameter extraction.

[0018] Step S6: Image parameter extraction and analysis Using the final saliency probability map (i.e., the binary segmentation result) output by the model as input, the morphology and particle size parameters of the ink particles are extracted. Specifically, this includes: first, detecting the pixel area of ​​each segmented region and comparing it with the region classification area threshold T. A The area threshold T of the region is compared. A The pixel area distribution of a single ink particle region in the labeled sample is used to determine the region classification area, preferably taking the 95th percentile value of this pixel area distribution. When the pixel area is greater than the region classification area threshold T... A If the ink flow is slow, it is identified as an ink patch or cluster; otherwise, it is identified as a single ink particle region. For a single ink particle region, contour extraction is performed, and the contour is fitted using the minimum bounding geometry. The particle size of each particle is calculated using the equivalent diameter formula, and the mean and standard deviation of the particle size distribution are statistically analyzed. For ink patches or clusters, pixels are accumulated along the row direction to generate a row pixel histogram. After smoothing and inversion processing, key feature points are marked based on peak detection to obtain the scale variation information of the patch region.

[0019] Step S7: Statistical Analysis, Results Output and Feedback Statistical analysis was performed on the area, location, and spacing of all extracted individual ink particles to obtain information on particle size distribution and aggregation state. Finally, the detection results, including individual particle size, particle size distribution characteristics, and spatial distribution information, were displayed or stored in real time. The above analysis results can be used to assess ink dispersion quality, provide early warning of printhead clogging risks, and offer quantitative basis for adjusting printing process parameters.

[0020] Compared with the prior art, the present invention has the following beneficial effects: 1. Full-area, blind-spot-free online data acquisition ensures the completeness and real-time nature of detection results. To address the problem of blind spots in the detection of wide-format printed materials caused by the limited field of view of existing single cameras, this invention addresses this issue in step S1 by arranging multiple high-speed cameras side-by-side along the width of the conveying device. The number of cameras is determined by adapting to the width of the object being inspected and the field of view, achieving full-width synchronous coverage of the object's surface. Combined with continuous conveying driven by a motor, the detection and production processes are completely synchronized, eliminating the need for sampling and offline analysis. This solves the dual defects of blind spots and detection lag, providing a complete and real-time data acquisition foundation for wide-format industrial production lines.

[0021] 2. The high-frequency sensing module directionally enhances edge response, significantly improving the detection rate of small particles. To address the problem of traditional algorithms where high-frequency edge information of tiny particles is easily submerged in noise, resulting in extremely low detection rates, the high-frequency sensing module (HFP) in step S3 of this invention is embedded in the output of each encoder block. The input feature map is first preprocessed in the frequency domain by DCT transformation, high-pass filtering, and inverse IDCT transformation to directionally preserve high-frequency edge and texture information and suppress low-frequency interference caused by uneven illumination. Then, it is enhanced by spatial attention submodule and channel attention submodule, respectively. The former highlights particle edges and contour regions through global average pooling, while the latter dynamically selects the channel with the strongest feature response through adaptive average pooling and a multilayer perceptron. This effectively solves the problem of difficulty in identifying tiny particles in complex backgrounds and significantly improves the detection rate of nano- and micron-sized particles.

[0022] 3. The spatial dependency-aware module models cross-layer semantic dependencies, accurately separating adhering particles. To address the problem of existing models lacking modeling of the spatial dependencies between low-level details and high-level semantic spaces, which makes it difficult to separate adhered particles, the Spatial Dependency Awareness Module (SDP) in step S3 of this invention is connected between the decoder layer and the corresponding encoder layer. After projecting the low-level decoder feature map and the high-level encoder feature map into the same feature space through convolution, a spatial similarity weight matrix is ​​calculated. This uses high-level semantic features to guide the low-level detail features to focus at key boundaries, achieving precise localization of gaps between particles. This solves the problem of unstable segmentation in cases of particle aggregation and blurred boundaries, significantly reducing the counting error of adhered particles and the particle size measurement deviation.

[0023] 4. The joint loss function and data augmentation work together to effectively suppress class imbalance and improve generalization robustness. To address the issues of ink particle regions occupying a very small proportion of the image and severe imbalance between positive and negative samples leading to background-biased model training and weak generalization ability, step S4 of this invention employs a joint loss function composed of binary cross-entropy loss and Dice loss. The Dice loss is unaffected by background pixels, directly optimizing the overlap rate of the foreground region and forcing the model to prioritize recalling particle regions. Combined with the binary cross-entropy loss, pixel-level classification accuracy is ensured. Simultaneously, data augmentation strategies such as random rotation, cropping, and affine transformation are used. This avoids the extreme case where the model misses particles due to background bias, ensuring stable segmentation performance under different printing processes and ink systems.

[0024] 5. Adaptive region classification and row pixel histogram quantization eliminate statistical distortion and provide a basis for structural diagnosis. To address the problems of existing methods lacking differentiated processing for segmented regions, misclassifying large-area agglomerations as ultra-large particles leading to severe distortion of particle size histograms, and failing to quantify the internal structure of contiguous regions, this invention, in step S6, detects the pixel area of ​​each segmented region and compares it with the region classification area threshold T determined based on the pixel area distribution of individual ink particle regions in the labeled samples. A A comparison is made to classify the segmented region into areas of individual ink particles and areas of continuous or clustered ink. This is based on the region classification area threshold T. A With clear sample statistical basis, it can reduce subjective errors caused by manually setting thresholds based on experience and improve the stability of regional classification. Subsequently, the particle size is characterized by equivalent diameter after fitting the minimum bounding geometry of individual particles. Pixels are accumulated along the row direction in contiguous areas to generate a row pixel histogram, which is then smoothed and inverted before obtaining scale change information based on peak detection. This avoids the right-skewed distortion of particle size statistics and provides more in-depth quantitative diagnostic clues for analyzing coating process defects (such as uneven thickness and blade wear) than a single area index.

[0025] 6. Multi-dimensional statistical information joint analysis accurately locates abnormal fields of view and provides early warning of nozzle clogging risks. To address the shortcomings of existing systems, which only provide over-limit alarms, cannot pinpoint fault locations or predict risks, and lack closed-loop control decision-making basis, step S7 of this invention further performs joint statistical analysis on the mean, standard deviation, and spatial distribution information of particle size distribution: the mean reflects the overall level of ink grinding fineness, the standard deviation quantifies the degree of particle size dispersion, and the spatial distribution is associated with the corresponding positions of each field-of-view camera. When a significant increase in particle area or a sharp rise in distribution standard deviation occurs at a specific field-of-view location, the corresponding inkjet head or doctor blade position can be accurately located, triggering pre-maintenance commands or automatic adjustment of process parameters in a timely manner, providing a comprehensive quantitative decision-making basis for intelligent closed-loop control of the printing process. Attached Figure Description

[0026] Figure 1 A flowchart illustrating a real-time monitoring method for printing ink particle size based on deep learning, provided for an embodiment of the present invention; Figure 2 This invention provides a method based on... A schematic diagram of the network structure of the ink particle size detection model; Figure 3 A schematic diagram of the network structure of a high-frequency sensing module (HFP) is provided for an embodiment of the present invention; Figure 4 A schematic diagram of the network structure of a Space Dependency Aware Module (SDP) is provided for an embodiment of the present invention; Figure 5 This invention provides a schematic diagram of ink particle size detection results. Figure 6 This is a schematic diagram illustrating the pixel area distribution of ink particles on the surface of the object being tested in an embodiment of the present invention. Detailed Implementation

[0027] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0028] This invention provides a method for real-time monitoring of printing ink particle size based on deep learning. See also... Figure 1 , Figure 1 This is a flowchart illustrating a real-time monitoring method for printing ink particle size based on deep learning, provided in an embodiment of the present invention. The method achieves online monitoring of ink particle size and its distribution characteristics by real-time acquisition, preprocessing, model segmentation, and post-processing analysis of ink images on the surface of the object being tested. The method specifically includes the following implementation steps.

[0029] Step S1: System Configuration and Image Acquisition In this embodiment, the method is implemented using a deep learning-based real-time monitoring system for printing ink particle size. The system includes a computer 100, a high-speed microscopic camera 200, a conveying device 300, and a motor 400.

[0030] The high-speed microscopic camera device 200 includes multiple high-speed cameras, which are arranged side by side above the object to be inspected along the width direction of the conveying device 300. The number of these cameras is adapted to the width of the object to be inspected and the field of view of the cameras. The cameras are used to perform real-time imaging and acquisition of ink patterns in different areas of the surface of the object to be inspected as it continuously runs on the conveying device 300, thereby achieving full-width, blind-spot-free image acquisition of the surface of the object to be inspected.

[0031] The motor 400 is connected to the conveying device 300 for driving the conveying device 300 to continuously move the object being inspected along a preset conveying direction. The multiple high-speed cameras are respectively connected to the computer 100 for communication (e.g., via a USB 3.0 data cable) to form an image acquisition and transmission module.

[0032] During the image acquisition process, when the object being tested enters the field of view of the multiple high-speed cameras along with the conveying device 300, the multiple high-speed cameras simultaneously acquire images of ink particles in different areas on the surface of the object being tested, and transmit the acquired multi-channel ink image data to the computer 100 in real time, so that the computer 100 can store and process the ink image data.

[0033] Step S2: Image Preprocessing After receiving the raw ink images from various high-speed cameras, computer 100 performs preprocessing on the acquired ink images. The preprocessing specifically includes the following sub-steps: First, the target area containing ink particles in the original image is identified and extracted to remove irrelevant background areas, thereby reducing subsequent computation and background interference.

[0034] Secondly, the extracted images are normalized to a preset model input scale to meet the requirements of deep learning models for consistent input image size.

[0035] Finally, the image is converted to grayscale or color space according to the detection requirements to enhance the contrast between ink particles and the background, which facilitates the subsequent model to extract and recognize the features of ink particles.

[0036] Step S3: Build and configure the ink particle size detection model This invention provides a deep learning-based ink particle size detection model. The model adopts an encoder-decoder structure to perform multi-scale feature extraction and step-by-step feature reconstruction on the preprocessed ink image, so as to achieve accurate semantic segmentation of the ink particle region.

[0037] See Figure 2 , Figure 2 This is a schematic diagram of a network structure for an ink particle size detection model based on the aforementioned model, provided as an embodiment of the present invention. The model includes an encoder layer, a decoder layer, a high-frequency sensing module (HFP module), and a spatially dependent sensing module (SDP module).

[0038] Specifically, the encoder layer includes a first coding block (En_0_0), a second coding block (En_1_0), a third coding block (En_2_0), a fourth coding block (En_3_0), and a fifth coding block (En_4_0) connected sequentially. The coding blocks are connected through a downsampling operation to extract deep semantic features of the input image step by step.

[0039] The decoder layer comprises a first decoding block (De_0_1), a second decoding block (De_0_2), a third decoding block (De_0_3), and a fourth decoding block (De_0_4) connected sequentially. The decoding blocks are connected through an upsampling operation to progressively recover the spatial resolution of the feature maps.

[0040] The high-frequency sensing module (HFP module) is embedded in the output end of each encoder block (En_0_0 to En_4_0) to enhance the high-frequency detail features of ink particles and highlight edge and texture information.

[0041] The spatial dependency perception module (SDP module) is connected between the decoder layer (De_0_1 to De_0_4) and the corresponding encoder layer, respectively. It is used to model the spatial dependency relationship between low-level detail features and high-level semantic features to improve the segmentation stability of ink particles in complex backgrounds.

[0042] Step S4: Dataset creation and model training Before a model can be used, it needs to be trained. The dataset creation and model training process includes the following steps: First, a dataset is established. The high-speed microscopic camera 200 is used to acquire image samples of ink particles on the surface of the object being tested. The ink particle regions in the original images are manually annotated at the pixel level to obtain corresponding annotated images. Subsequently, data augmentation processing is performed on the original images and their annotated images to expand the number of training samples and improve the model's generalization ability under different printing processes and environmental conditions. The data augmentation processing includes two main categories: geometric transformation augmentation and color space augmentation. The geometric transformation enhancements include random rotation, random cropping, and affine transformation. Random rotation refers to randomly rotating the image within a preset angle range (e.g., -15° to +15°) to simulate image tilting caused by positional angular deviations of the detected object during transport. Random cropping refers to randomly cropping the image within a preset scaling range (e.g., 0.8 to 1.0) to simulate positional shifts of the detected object within the field of view. Affine transformations include random translation and random scaling, used to simulate image geometric deformation caused by mechanical vibration or fluctuations in transport speed. These geometric transformation enhancements enable the model to adapt to changes in spatial position.

[0043] The color space enhancements include brightness adjustment, contrast adjustment, and color dithering. Brightness adjustment simulates the impact of fluctuations in ambient light intensity on the production line and changes in natural light at different times on image brightness by multiplying the V channel in the image's HSV color space by a gain coefficient that varies randomly within a preset range (e.g., 0.7 to 1.3). Contrast adjustment simulates the impact of differences in surface reflectivity of different printing substrates (such as coated paper, cardboard, and film) on image contrast by linearly stretching or compressing image pixel values ​​(e.g., randomly selecting a contrast gain coefficient within the range of 0.8 to 1.2). Color dithering simulates slight color differences between different batches of ink, uneven ink thickness, and color drift caused by camera sensor noise by applying independent random offsets (e.g., offsets randomly selected within the range of ±10 pixel values) to the three RGB channels. These color space enhancements ensure that the training samples cover various color and lighting variations that may occur in actual industrial production, effectively improving the model's segmentation stability under complex conditions such as fluctuations in lighting and differences between ink batches on a real production line.

[0044] After the above data augmentation process is completed, the final training dataset for subsequent model training is obtained.

[0045] Next, model training is performed. The constructed model is used to train the training dataset for ink particle segmentation. During model training, the binary cross-entropy loss function and the Dice loss function are used as the joint loss function, and their calculation formulas are as follows:

[0046] in, This represents the binary cross-entropy loss. This represents the Dice coefficient loss, where N represents the total number of pixels. Indicates the true label, Indicates the predicted probability. This represents the smoothing term. and This represents the weighting coefficient, used to balance the contributions of the two loss functions.

[0047] In the aforementioned joint loss function, the binary cross-entropy loss function is responsible for independently classifying each pixel, ensuring pixel-level accuracy of the segmentation boundary; the Dice loss function evaluates the similarity between the predicted result and the ground truth label from the perspective of overall region overlap, with a higher value indicating a greater degree of overlap between the predicted and ground truth regions. Since ink particle regions typically account for only a very small proportion (often less than 5%) in the entire image, if only the binary cross-entropy loss is used, the model is prone to predicting all pixels as background due to a severe imbalance between positive and negative samples. The Dice loss function is not affected by the number of background pixels and directly optimizes the overlap rate of the foreground region, forcing the model to prioritize recalling particle regions; the combined use of the two offers the dual advantages of segmentation accuracy and recall, effectively avoiding the extreme case where model training is biased towards the background.

[0048] During model training, the Adam optimizer is used as the parameter optimizer for the semantic segmentation model. The parameter update formula for the Adam optimizer is:

[0049] in, This indicates the current training iteration number. Indicates the first The model parameter vector at the next iteration This represents the gradient vector calculated by the loss function with respect to the parameters at the t-th iteration. This represents the first moment estimate vector of the gradient at the t-th iteration. This represents the second-order moment estimate vector of the gradient at the t-th iteration. This represents the exponential decay rate estimated by the first moment. This represents the exponential decay rate estimated by the second moment. Represents the estimation of the first moment The vector after deviation correction. Represents the estimation of the second moment The vector after deviation correction. Represents the global learning rate. It represents a very small positive number to prevent division by zero errors.

[0050] In a preferred embodiment of the present invention, the batch size is set to 8 or 16 during model training, and the initial learning rate is 10. -3 The training employs early stopping and a validation set monitoring strategy. Training is terminated when the validation set loss no longer decreases for 10 consecutive epochs to prevent overfitting. The entire training process is performed on a computer equipped with a graphics processing unit (GPU), and the training cycle typically consists of 50 to 200 iterations, with the specific number of iterations determined based on the size of the training set and the model's convergence.

[0051] Step S5: Ink Particle Image Segmentation The preprocessed ink image is input into the trained ink particle size detection model. During model inference, the encoder extracts multi-scale features from the image, and the decoder performs step-by-step feature recovery and fusion.

[0052] During feature fusion, a high-frequency sensing module is introduced to enhance the edge detail information of ink particles, and a spatial dependence sensing module is used to model the spatial relationship between features at different scales, thereby improving the recognition accuracy of ink particle regions in complex backgrounds.

[0053] Specifically, see Figure 3 , Figure 3 This is a schematic diagram of the network structure of a High Frequency Perception Module (HFP) provided in an embodiment of the present invention. The HFP is used to enhance high-frequency information in the input feature map. The input feature map is processed by both a spatial attention branch and a channel attention branch. In both branches, the input feature map first undergoes DCT transformation, high-pass filtering, and inverse IDCT transformation to highlight high-frequency edge information in the input features and suppress low-frequency interference information in the background. In the spatial attention branch, the feature map enhanced by high frequency is processed by Global Average Pooling (GAP) to obtain spatial dimension statistical features, and then spatial attention weights are generated by a 1×1 convolutional layer and a Sigmoid activation function. In the channel attention branch, the feature map enhanced by high frequency is processed by Global Max Pooling (GMP) to obtain channel dimension response features, and then channel attention weights are generated by a 1×1 convolutional layer and a Sigmoid activation function. The enhanced feature map is output by fusing the spatial attention enhancement results and the channel attention enhancement results, and then processing by a 3×3 convolution and normalization.

[0054] The overall calculation process of the high-frequency sensing module is represented as follows:

[0055] in, Let represent the input feature map, SpatialAttention(·) represent the spatial attention submodule, ChannelAttention(·) represent the channel attention submodule, Conv{3×3}(·) represent the 3×3 convolutional layer, and GroupNorm(·) represent the group normalization layer. This indicates the output feature map.

[0056] The calculation process of the spatial attention submodule is as follows:

[0057] in, Indicates the input feature map, This indicates a global average pooling operation. This represents a 1×1 convolutional layer. This represents the Sigmoid activation function, used to normalize weight values ​​to the [0,1] interval.

[0058] The calculation process of the channel attention submodule is as follows:

[0059] in, This represents the input feature map. `AdaptiveAvgPool(·)` represents the adaptive average pooling operation, used to compress the input feature map to a 1×1 size in spatial dimensions. (MLP) This represents a multilayer perceptron, consisting of two 1×1 convolutional layers, used to learn nonlinear interactions between channels. This represents the Sigmoid activation function.

[0060] Further, see Figure 4 , Figure 4 This is a schematic diagram of the network structure of a Spatial Dependency Aware Module (SDP) provided in an embodiment of the present invention. The SDP is used to model the spatial dependencies between features at different scales. The input feature map is first channel-mapped through a 1×1 convolutional layer, and then processed by a dynamic pooling branch, a feature branch, and a target feature branch. The dynamic pooling branch performs spatial compression and contextual information aggregation on the input features; the feature branch extracts local texture and structural information from the input features; the features output by the dynamic pooling branch and the features output by the feature branch are used together to calculate the similarity weights between features, thereby constructing spatial dependencies. The target feature branch retains the target region information in the input features and performs weighted processing on the target features using the similarity weights to obtain the target feature response result. Then, the weighted target features are re-integrated with the original target features and fused with the input features through residual connections, finally outputting an enhanced feature map.

[0061] The calculation process of the spatial dependency sensing module is represented as follows:

[0062] in, This represents the feature map of the low-level decoder. Represents the feature map of the high-level encoder. This represents a 1×1 convolutional projection layer. Indicates the feature dimension after projection. Represents the normalized exponential function, Represents the spatial attention weight matrix. This represents the fused feature map.

[0063] Finally, the model outputs a saliency probability map of ink particles and obtains binary segmentation results of ink particles through threshold segmentation, providing basic data for subsequent particle size parameter extraction.

[0064] Step S6: Image parameter extraction and analysis The image parameter extraction module takes the final saliency probability map (i.e., the segmentation result) output by the model as input to extract and analyze the morphological features and particle size-related parameters of the ink particles. See also... Figure 5 , Figure 5 This is a schematic diagram of ink particle size detection results provided in an embodiment of the present invention. The process specifically includes the following sub-steps: First, the pixel area of ​​each segmented region in the final saliency probability map is detected, and the pixel area of ​​each region is compared with the region classification area threshold T. A Comparison: In this embodiment, the region classification area threshold T A Preferably, the pixel area distribution of individual ink particle regions in the labeled samples is used to determine the distribution. Specifically, during the model training or system calibration phase, several standard sample images of ink particles are acquired, and the target regions that can be identified as individual ink particles are labeled at the pixel level. The pixel area of ​​each individual ink particle region is calculated to obtain a sample set of pixel areas of single-particle regions.

[0065] Among them, A i represents the pixel area of ​​the i-th labeled single-particle region, and n represents the number of single ink particle regions in the labeled sample.

[0066] Statistical analysis was performed on the single-particle region pixel area sample set Ω, and its 95th percentile value was taken as the region classification area threshold T. A ,Right now: T A =P 95 (Ω) Among them, T A P represents the area threshold for region classification. 95 (Ω) represents the 95th percentile value of the pixel area sample set Ω for a single particle region; Ω represents the set of pixel areas of each individual ink particle region in the labeled sample.

[0067] In other embodiments, the region classification area threshold T AAlternatively, the 90% to 99% quantile of the single-particle region pixel area sample set Ω can be used, or the mean of Ω plus 1 to 3 times the standard deviation can be used. For example, when the threshold is determined by using the mean plus a multiple of the standard deviation, the region classification area threshold T A It can be represented as:

[0068] in, This represents the mean value of the pixel area sample set Ω of the single-particle region. Ω represents the standard deviation of the single-particle region pixel area sample set Ω, and k represents the standard deviation multiplier, which takes the value from 1 to 3, preferably 2.

[0069] When the detection batch, camera magnification, model input scale, or ink system changes, and the sample calibration is not completed again, the region classification area threshold T is adjusted. A It can also be based on the median pixel area A of the candidate segmentation region in the current detected image. med Adaptive computation, i.e.

[0070] Among them, A med β represents the median value of the pixel area of ​​the candidate segmentation region in the current detection image, and β represents the region area multiplier coefficient, which is 1.5 to 5, preferably 2 to 3.

[0071] When the image size is fixed and the camera resolution and detection magnification are stable, the fixed region classification area threshold determined based on the labeled sample distribution is preferred to reduce the amount of online computation. When the imaging conditions or the object being detected change significantly, the sample calibration process is re-executed, or the region classification area threshold is corrected using the adaptive calculation method described above.

[0072] When the pixel area of ​​the segmented region is greater than the region classification area threshold T A If the area is identified as a continuous ink patch or an ink agglomeration area, it will be extracted; otherwise, it will be identified as a single ink particle area and extracted.

[0073] If a region is determined to be a single ink particle region, the contours of the segmented ink particles are extracted, and the minimum bounding geometry is used to fit the particle contours to obtain the particle size data of each ink particle. Specifically, the equivalent diameter is used to characterize the particle size, and the calculation formula is as follows:

[0074] in, This represents the pixel area of ​​a single ink particle region. This indicates the equivalent diameter of the ink particle.

[0075] Furthermore, the particle size distribution of all detected individual ink particles was statistically analyzed, and their mean and standard deviation were calculated. The specific calculation formula is as follows:

[0076] Where N represents the total number of ink particles detected. Let represent the equivalent diameter of the i-th ink particle. This represents the mean of the particle size distribution. The standard deviation represents the particle size distribution.

[0077] If a region is determined to be an ink patch or ink accumulation area, the pixels within that region are accumulated along the row direction to obtain a row pixel histogram. After smoothing the row pixel histogram, an inversion operation is performed. The inverted histogram is then analyzed based on a peak detection method. When the prominence of an extreme point exceeds the peak prominence threshold T... p When the extreme point is reached, the row position corresponding to the extreme point is marked as a key feature point; the peak prominence threshold T p The histogram is adaptively determined based on the statistical results of the prominence of each candidate extreme point in the current inverted row pixel histogram, preferably by taking the mean plus standard deviation of the prominence of each candidate extreme point. Based on the positional changes of the key feature points in the histogram, the scale change information of the ink-contiguous area at the corresponding position is obtained. Specifically, the calculation formula for the row pixel histogram is as follows:

[0078] Where I(r,c) represents the binary image of the segmented region, r represents the row index of the image, c represents the column index of the image, and H(r) represents the sum of pixels in the r-th row, used to characterize the distribution density of the ink region in that row.

[0079] Step S7: Statistical Analysis, Results Output and Feedback Statistical analysis is performed on the area, location, and spacing of all individual ink particle regions extracted in step S6 to obtain information on the particle size distribution and aggregation state of the ink particles.

[0080] See Figure 6 , Figure 6 This is a schematic diagram illustrating the pixel area distribution of ink particles on the surface of the object being tested in an embodiment of the present invention. Figure 6The horizontal axis represents the ink particle number, and the vertical axis represents the pixel area of ​​the corresponding ink particle region. Statistical analysis of the pixel areas of different ink particle regions can reflect the consistency, dispersion, and abnormal distribution of ink particle size. When the pixel areas of multiple ink particle regions are concentrated within a preset range, it indicates that the ink particle size distribution is relatively uniform; when the pixel areas of some ink particle regions are significantly larger than those of other regions, it may correspond to ink particle bridging, particle aggregation, or abnormal printing droplets.

[0081] Finally, the ink particle size detection results are output and displayed or stored in real time. The detection results include at least the individual particle size, particle size distribution characteristics (such as mean and standard deviation), and spatial distribution information. The above analysis results can be used to determine whether ink particles exhibit abnormal aggregation, excessively large particle size, or uneven distribution. They can also be used to assess the potential risk of printhead clogging during inkjet printing or coating, providing auxiliary decision-making support for ink quality control, process parameter adjustment, and printing quality optimization.

[0082] This invention provides a deep learning-based real-time monitoring method for printing ink particle size. The model enables automated segmentation and particle size detection of ink particles on the surface of the object being tested during operation. This method can stably identify minute ink particles under complex backgrounds and continuous motion conditions, achieving online real-time acquisition of ink particle size parameters. This provides reliable technical support for ink preparation process optimization, printing quality control, and inkjet process compatibility evaluation.

[0083] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be considered as applicable to the scope of the present invention. All equivalent variations and modifications made within the scope of the present invention should still fall within the patent coverage of the present invention.

Claims

1. A method for real-time monitoring of printing ink particle size based on deep learning, characterized in that, Includes the following steps: Step S1: The conveyor device is driven by a motor to move continuously along a preset direction; multiple high-speed cameras are activated to synchronously and in real-time image and acquire ink patterns in different areas of the surface of the object being tested, and the multi-channel image data is transmitted to the computer. Step S2: After receiving the original ink image, the computer performs preprocessing, including extracting the target area containing ink particles, size normalization, and grayscale or color space conversion; Step S3: Construct a semantic segmentation model based on deep learning. The model adopts an encoder-decoder architecture. The encoder layer includes five sequentially connected encoding blocks, which are connected through downsampling operations. The decoder layer includes four sequentially connected decoding blocks, which are connected through upsampling operations. The model also includes a high-frequency sensing module and a spatial dependency sensing module. The high-frequency sensing module is embedded in the output of each encoder block, and the spatial dependency sensing module is connected between each decoder block and the corresponding encoder layer. Step S4: Establish a training dataset and train the model. Collect ink particle image samples and perform pixel-level annotation. After data augmentation, form a training dataset. Use a joint loss function and the Adam optimizer to optimize the parameters. Step S5: Input the preprocessed ink image into the trained model. After multi-scale feature extraction by the encoder, step-by-step recovery and fusion by the decoder, edge detail enhancement by the high-frequency perception module, and cross-layer spatial dependency modeling by the spatial dependency perception module, the saliency probability map is output. The binary segmentation result is obtained by threshold segmentation. Step S6: Using the binary segmentation result as input, extract image parameters, detect the pixel area of ​​each segmented region, and compare it with the region classification area threshold T. A Compare; Step S7: Perform statistical analysis on the particle size of all extracted individual ink particles, obtain the mean, standard deviation and spatial distribution information of particle size distribution, output the detection results and display or store them in real time.

2. The method according to claim 1, characterized in that, In step S1, the multiple high-speed cameras are arranged side by side above the object to be inspected along the width direction of the transmission device. The number of cameras is determined according to the width of the object to be inspected and the field of view of each high-speed camera, so as to achieve full-area image acquisition without blind spots on the surface of the object to be inspected.

3. The method according to claim 1, characterized in that, The target region extraction in step S2 is used to remove irrelevant background regions, and the size normalization process is used to uniformly adjust the image to a preset model input scale.

4. The method according to claim 1, characterized in that, The high-frequency sensing module includes a spatial attention submodule and a channel attention submodule. The input feature map is first preprocessed in the frequency domain by DCT transformation, high-pass filtering and inverse IDCT transformation, and then enters the spatial attention submodule and the channel attention submodule for enhancement processing respectively. Finally, the feature maps are fused and output after convolution and normalization.

5. The method according to claim 4, characterized in that, The spatial attention submodule performs global average pooling along the channel dimension on the input feature map, compresses the channel information, and then generates spatial attention weights through convolution and the Sigmoid activation function. The channel attention submodule compresses the spatial information of each channel into a single value through adaptive average pooling, then learns the nonlinear interaction relationship between channels through a multilayer perceptron consisting of two convolutional layers, and generates channel attention weights by a sigmoid activation function.

6. The method according to claim 1, characterized in that, The spatial dependency awareness module projects the feature maps of the low-level decoder and the high-level encoder into the same feature space through convolution, calculates the spatial similarity weight matrix, and uses this weight to perform weighted fusion of the target features in order to model the spatial dependency relationship between low-level detail features and high-level semantic features.

7. The method according to claim 1, characterized in that, The data augmentation process in step S4 includes random rotation, random pruning, and affine transformation; the joint loss function consists of a binary cross-entropy loss function and a Dice loss function.

8. The method according to claim 1, characterized in that, The region classification area threshold T mentioned in step S6 A The set of pixel areas of individual ink particle regions in the labeled sample is determined based on the pixel area distribution of individual ink particle regions in the labeled sample. The area threshold T for the region classification A Take the 95th percentile value of the pixel area set Ω, i.e., T A =P 95 (Ω), when the pixel area of ​​any segmented region is greater than the region classification area threshold T A If an ink patch or cluster is identified, it is determined to be a region of continuous ink or ink aggregate; otherwise, it is determined to be a region of a single ink particle. For a single ink particle region, the contour is extracted and fitted using the minimum bounding geometry, and the particle size is characterized by the equivalent diameter. For ink patches or clusters, pixels are accumulated along the row direction to generate a row pixel histogram. After smoothing and inversion, the scale change information is obtained based on peak detection. The equivalent diameter is calculated based on the pixel area of ​​a single ink particle region. The row pixel histogram is obtained by accumulating pixels along the row direction of the binary image of the segmented region.

9. A real-time monitoring system for printing ink particle size based on deep learning, characterized in that, The device includes a computer, a high-speed microscopic camera, a conveying device, and a motor. The high-speed microscopic camera consists of multiple high-speed cameras, which are arranged side-by-side above the object being inspected along the width of the conveying device. Each high-speed camera is communicatively connected to the computer. The motor is driven by the conveying device to drive the conveying device to continuously move the object being inspected. The computer includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the method as described in any one of claims 1 to 8.

10. The system according to claim 9, characterized in that, The number of high-speed cameras is determined by adapting the width of the object being detected and the field of view of each high-speed camera.