A neural network and method for micronucleus identification

By adopting the neural network structure of the backbone network, neck and head in micronucleus recognition, using multi-layer convolutional layers and attention mechanism modules to extract features, and performing feature fusion through a weighted bidirectional feature pyramid network, micronucleus recognition is solved. It solves the problems of too few features and low matching accuracy and achieves more accurate micronucleus identification.

CN118297119BActive Publication Date: 2024-09-06笑纳科技(苏州)有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410719267.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-06
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

The existing technology has the problems of too few features and low matching accuracy in micronucleus identification, making it difficult to accurately identify micronuclei.

Method used

A neural network structure including a backbone network, neck and head is adopted. The backbone network extracts features through multi-layer convolutional layers and attention mechanism modules. The neck uses a weighted bidirectional feature pyramid network for feature fusion, and the head generates detection results. , improve the accuracy of micronucleus identification.

Benefits of technology

Through the improved neural network structure, the recognition accuracy and feature extraction capabilities of micronuclei are improved, false detections and missed detections are reduced, and more accurate micronucleus detection and analysis are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118297119B
    Figure CN118297119B
Patent Text Reader

Abstract

The invention discloses a neural network and a method for micronucleus identification, and relates to the technical field of image processing; the neural network comprises a backbone network, a neck and a head connected in sequence, the backbone network further comprises convolutional layers and attention mechanism modules respectively located on the sides of the first to third C2F modules, the neck comprises a first convolutional layer, a first upsampling module, a first weighted bidirectional feature pyramid network, a first C2F module, a second upsampling module, a second weighted bidirectional feature pyramid network, a second C2F module, a third weighted bidirectional feature pyramid network, a third C2F module, a second convolutional layer, a fourth weighted bidirectional feature pyramid network, a fourth C2F module, a third convolutional layer, a fifth weighted bidirectional feature pyramid network and a fifth C2F module, which are sequentially connected from the input side of the neck to the output side, and the micronucleus is identified with high accuracy through the improved backbone network and the neck, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image processing technology, and in particular to a neural network and method for microkernel recognition. Background Technology

[0002] The deep learning-based microkernel recognition method refers to a method that uses image information from microkernels to locate and classify targets along the way. This method is mainly based on computer vision and image processing techniques.

[0003] Defects and shortcomings of existing technology:

[0004] Insufficient features: Because microkernels are small in area, with a diameter approximately one-sixteenth to one-third that of the main kernel, they contain even fewer discriminative features in a large image, making it difficult to accurately identify them. The number of microkernels is typically small, resulting in a severe imbalance in the dataset.

[0005] Low matching accuracy: The micro-core target is very small, and even a slight deviation in the recognition box will result in a negative result. Summary of the Invention

[0006] This invention provides a neural network and method for micronucleus identification, solving the technical problem of low accuracy in micronucleus identification.

[0007] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:

[0008] A neural network for microkernel recognition includes a backbone network, a neck region, and a head region connected in sequence. The backbone network includes a first convolutional layer, a second convolutional layer, a first C2F module, a third convolutional layer, a second C2F module, a fourth convolutional layer, a third C2F module, a fifth convolutional layer, a fourth C2F module, and an SPPF module, all connected sequentially from the input side to the output side. The backbone network also includes convolutional layers and attention mechanism modules (EMA) located on the first to third C2F modules respectively. The neck region includes a first convolutional layer, a first upsampling module, a first weighted bidirectional feature pyramid network (BiFPN), a first C2F module, a second upsampling module, a second weighted bidirectional feature pyramid network (BiFPN), a second C2F module, a third weighted bidirectional feature pyramid network (BiFPN), a third C2F module, a second convolutional layer, a fourth weighted bidirectional feature pyramid network (BiFPN), a fourth C2F module, a third convolutional layer, and a fifth weighted bidirectional feature pyramid network (BiFPN), all connected sequentially from the input side to the output side. The backbone network consists of a BiFPN (Bi-Functional Feature Pyramid Network) and a fifth C2F module. The first C2F module of the backbone network is connected to the third weighted bi-directional feature pyramid network (BiFPN) in the neck via a convolutional layer and an attention mechanism module (EMA) on the side of the first C2F module of the backbone network. The second C2F module of the backbone network is connected to the second weighted bi-directional feature pyramid network (BiFPN) in the neck via a convolutional layer and an attention mechanism module (EMA) on the side of the second C2F module of the backbone network. The third C2F module of the backbone network is connected to the first weighted bi-directional feature pyramid network (BiFPN) in the neck via a convolutional layer and an attention mechanism module (EMA) on the side of the third C2F module of the backbone network. The SPPF (Special Power Filter) module of the backbone network is connected to the first convolutional layer of the neck. The SPPF module of the backbone network is connected to the fifth weighted bi-directional feature pyramid network (BiFPN) in the neck. The first C2F module of the neck is connected to the fourth weighted bi-directional feature pyramid network (BiFPN) in the neck. The third to fifth C2F modules of the neck are all connected to the head.

[0009] A further technical solution is that the head includes a first detection head, a second detection head, and a third detection head distributed sequentially from the input side of the neck to the output side. The third C2F module of the neck is connected to the first detection head of the head, the fourth C2F module of the neck is connected to the second detection head of the head, and the fifth C2F module of the neck is connected to the third detection head of the head.

[0010] A further technical solution is that the backbone network is used to extract features from the input image.

[0011] A further technical solution is that the neck is used for feature fusion.

[0012] A further technical solution is that the header is used to generate detection results.

[0013] A method for training the aforementioned neural network for microkernel recognition includes a training step, wherein the training step includes training the neural network to obtain a trained neural network, wherein the neural network in the training step is a neural network for microkernel recognition.

[0014] A method for detecting micronuclei based on the above-mentioned neural network for micronuclei recognition includes a detection step, wherein the detection step includes inputting an image to be detected into a trained neural network to obtain a detection result, wherein the image to be detected is an image containing micronuclei, and the neural network is a neural network for micronuclei recognition.

[0015] The beneficial effects of adopting the above technical solution are as follows:

[0016] A neural network for microkernel recognition includes a backbone network, a neck region, and a head region connected in sequence. The backbone network includes a first convolutional layer, a second convolutional layer, a first C2F module, a third convolutional layer, a second C2F module, a fourth convolutional layer, a third C2F module, a fifth convolutional layer, a fourth C2F module, and an SPPF module, all connected sequentially from the input side to the output side. The backbone network also includes convolutional layers and attention mechanism modules (EMA) located on the first to third C2F modules respectively. The neck region includes a first convolutional layer, a first upsampling module, a first weighted bidirectional feature pyramid network (BiFPN), a first C2F module, a second upsampling module, a second weighted bidirectional feature pyramid network (BiFPN), a second C2F module, a third weighted bidirectional feature pyramid network (BiFPN), a third C2F module, a second convolutional layer, a fourth weighted bidirectional feature pyramid network (BiFPN), a fourth C2F module, a third convolutional layer, and a fifth weighted bidirectional feature pyramid network (BiFPN), all connected sequentially from the input side to the output side. The system employs a BiFPN (Bi-Functional Feature Pyramid Network) and a fifth C2F module. The first C2F module of the backbone network is sequentially connected to the third weighted bi-directional feature pyramid network (BiFPN) in the neck region via convolutional layers and an attention mechanism module (EMA) on its side. Similarly, the second C2F module of the backbone network is connected to the second weighted bi-directional feature pyramid network (BiFPN) in the neck region via convolutional layers and an attention mechanism module (EMA) on its side. The third C2F module of the backbone network is connected to the first weighted bi-directional feature pyramid network (BiFPN) in the neck region via convolutional layers and an attention mechanism module (EMA) on its side. The SPPF (Special Power Filter) module of the backbone network is connected to the first convolutional layer of the neck region. The SPPF module of the backbone network is connected to the fifth weighted bi-directional feature pyramid network (BiFPN) in the neck region. The first C2F module of the neck region is connected to the fourth weighted bi-directional feature pyramid network (BiFPN) in the neck region. All three C2F modules in the neck region are connected to the head region. Through this improved backbone network and neck region, the system achieves high accuracy in identifying micronuclei.

[0017] See the detailed implementation section for further description. Attached Figure Description

[0018] Figure 1 This is a block diagram of the existing YOLOv8 neural network.

[0019] Figure 2 This is a block diagram illustrating the principle of the microkernel recognition neural network of this invention;

[0020] Figure 3 These are the labeled images;

[0021] Figure 4 This is a screenshot of the first detection result from the existing YOLOv8 neural network.

[0022] Figure 5 This is a screenshot of the second detection result from the existing YOLOv8 neural network;

[0023] Figure 6 This is a diagram showing the effect of the first detection result of the microkernel recognition neural network of the present invention;

[0024] Figure 7 This is a diagram showing the effect of the second detection result of the microkernel recognition neural network of the present invention. Detailed Implementation

[0025] Technical advantages of this application:

[0026] 1. The method of this application incorporates information from cell micronuclei, which can more accurately detect and analyze the condition of micronuclei.

[0027] The information in the cell micronucleus is image information, including pixel data, image features, and contextual information.

[0028] The attention mechanism, implemented during the feature extraction and feature fusion processes of the input data, can help the model concentrate resources on detecting small targets and reduce false positives and false negatives by enhancing the feature response of small targets.

[0029] BiFPN can capture the features of small targets more effectively through multi-scale feature fusion.

[0030] Micronuclei are small targets, and the above improvements can better identify them and accurately detect their position and shape.

[0031] 2. The method of this application can be used to fuse more features and normalize them to control the weight values, thereby strengthening the extraction of deep features of the image, improving the effect of feature fusion, and improving the detection effect.

[0032] BiFPN's structure allows it to combine feature maps of different scales and depths, thus capturing multi-scale target information. Normalization controls the weights of different feature maps during fusion, preventing some feature maps from having an excessive impact on the result.

[0033] In object detection, it is necessary to extract rich features from images, including color, texture, shape, and contextual information. BiFPN, through its multi-scale feature pyramid structure, is able to fuse feature maps from different levels, which capture information about the image at different scales.

[0034] 3. The method of this application can achieve automated micronucleus identification, reducing the burden of manual operation. By using computer vision and image processing technology, micronuclei can be located and counted quickly and efficiently.

[0035] The technical concept of this application is:

[0036] 1. Obtain the microscopic image data containing microkernels required for model training.

[0037] 2. The acquired microscopic image data is inspected and manually labeled using the X-anylabeling tool to obtain the location of micronuclei, the location of transformed cells, the location of untransformed cells, the location of impurities, and the image information and its category number. The image information mainly consists of pixel information and RGB three-channel values, which will be used when entering the neural network.

[0038] like Figure 3 The image shown is the labeled version.

[0039] 3. Perform data preprocessing on the microscopic image dataset.

[0040] The images are all taken under a microscope from glass slides containing peripheral blood cells, and are referred to simply as microscopic images.

[0041] Data preprocessing includes image enhancement operations, image mirroring, flipping, affine transformations, etc.

[0042] 4. A microkernel recognition neural network was obtained by improving the existing yolov8 neural network.

[0043] like Figure 1 The diagram shown is a block diagram of the existing YOLOv8 neural network. An attention mechanism module (EMA) is added to the backbone network of the existing YOLOv8 neural network to obtain the backbone network of the microkernel recognition neural network of this application. The PANet in the neck of the existing YOLOv8 neural network is replaced with a weighted bidirectional feature pyramid network (BiFPN) to obtain the neck of the microkernel recognition neural network of this application.

[0044] The microkernel recognition neural network includes a backbone network, a neck, and a head connected in sequence. The backbone network is used to extract features from the input image, the neck is used for feature fusion, and the head is used to generate detection results.

[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this application or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0046] Many specific details are set forth in the following description in order to provide a full understanding of this application. However, this application may also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the spirit of this application. Therefore, this application is not limited to the specific embodiments disclosed below.

[0047] Example 1

[0048] like Figure 2 As shown, this invention discloses a neural network for microkernel recognition, comprising a backbone network, a neck, and a head connected in sequence. The backbone network is used to extract features from the input image. The backbone network includes a first convolutional layer, a second convolutional layer, a first C2F module, a third convolutional layer, a second C2F module, a fourth convolutional layer, a third C2F module, a fifth convolutional layer, a fourth C2F module, and an SPPF module, all connected in sequence from the input side to the output side of the backbone network, as well as convolutional layers and an attention mechanism module (EMA) located on the sides of the first to third C2F modules respectively. The neck is used for feature fusion and includes a neck structure connected in sequence from the input side to the output side. The network consists of a first convolutional layer, a first upsampling module, a first weighted bidirectional feature pyramid network (BiFPN), a first C2F module, a second upsampling module, a second weighted bidirectional feature pyramid network (BiFPN), a second C2F module, a third weighted bidirectional feature pyramid network (BiFPN), a third C2F module, a second convolutional layer, a fourth weighted bidirectional feature pyramid network (BiFPN), a fourth C2F module, a third convolutional layer, a fifth weighted bidirectional feature pyramid network (BiFPN), and a fifth C2F module; the head is used to generate detection results, and the head includes a first detection head, a second detection head, and a third detection head distributed sequentially from the input side of the neck to the output side.

[0049] The backbone network is located on the left, the neck in the middle, and the head on the right. The first convolutional layer, the second convolutional layer, the first C2F module, the third convolutional layer, the second C2F module, the fourth convolutional layer, the third C2F module, the fifth convolutional layer, the fourth C2F module, and the SPPF module are distributed from bottom to top. The first C2F module side has one convolutional layer and one attention mechanism module (EMA), the second C2F module side has one convolutional layer and one attention mechanism module (EMA), and the third C2F module side has one convolutional layer and one attention mechanism module (EMA).

[0050] The first convolutional layer, the first upsampling module, the first weighted bidirectional feature pyramid network (BiFPN), the first C2F module, the second upsampling module, the second weighted bidirectional feature pyramid network (BiFPN), the second C2F module, and the third weighted bidirectional feature pyramid network (BiFPN) in the neck area are distributed from top to bottom. The third C2F module, the second convolutional layer, the fourth weighted bidirectional feature pyramid network (BiFPN), the fourth C2F module, the third convolutional layer, and the fifth weighted bidirectional feature pyramid network (BiFPN) in the neck area are distributed from bottom to top. The fifth C2F module in the neck area is located to the right of the fifth weighted bidirectional feature pyramid network (BiFPN) in the neck area.

[0051] The first, second, and third detection heads are arranged sequentially from bottom to top.

[0052] The first C2F module of the backbone network is connected to the third weighted bidirectional feature pyramid network (BiFPN) of the neck via the convolutional layer and attention mechanism module (EMA) on the side of the first C2F module of the backbone network. The second C2F module of the backbone network is connected to the second weighted bidirectional feature pyramid network (BiFPN) of the neck via the convolutional layer and attention mechanism module (EMA) on the side of the second C2F module of the backbone network. The third C2F module of the backbone network is connected to the first weighted bidirectional feature pyramid network (BiFPN) of the neck via the convolutional layer and attention mechanism module (EMA) on the side of the third C2F module of the backbone network. The SPPF module of the backbone network is connected to the first convolutional layer of the neck. The SPPF module of the backbone network is connected to the fifth weighted bidirectional feature pyramid network (BiFPN) of the neck. The first C2F module of the neck is connected to the fourth weighted bidirectional feature pyramid network (BiFPN) of the neck. The third C2F module of the neck is connected to the first detection head of the head. The fourth C2F module of the neck is connected to the second detection head of the head. The fifth C2F module of the neck is connected to the third detection head of the head.

[0053] Among them, the C2F module, SPPF module, upsampling module, attention mechanism module EMA and weighted bidirectional feature pyramid network BiFPN are existing technologies and will not be described in detail.

[0054] Example 2

[0055] This invention discloses a method for training a microkernel recognition neural network, including training steps, which are specifically divided into the following steps:

[0056] Step S1: Input image

[0057] When training the microkernel recognition neural network in Example 1, the input image is first loaded and preprocessed. The image is a microscope image of peripheral blood cells on a slide. Preprocessing includes adjusting the image size to match the network input size, normalizing pixel values, etc. The network input size is typically 416x416 pixels. The image is a cell dataset containing category labels. The image, in which x i For the input cell sample, y i Let M be the total number of microscopic image samples containing the category labels, i=0,1,2,…M-1, where the categories are: micronuclei, transformed cells, untransformed cells, and impurities.

[0058] Step S2: Through the backbone network

[0059] The input image is processed through the backbone network of YOLOv8, typically a deep convolutional neural network such as Darknet-53, to extract features from the image. The input image first passes through a series of convolutional layers in the backbone network, each typically followed by a batch normalization layer and a LeakyReLU activation function. These operations work together to extract features from the image. Darknet-53 uses residual connections to mitigate the vanishing gradient problem when training deep networks, allowing for the training of deeper network structures. The convolutional layers typically have strides greater than 1, which gradually reduces the spatial dimension of the image while gradually increasing the number of channels, i.e., the depth of the feature maps. After passing through the backbone network, the image is transformed into multiple feature maps that preserve different levels of visual information within the image.

[0060] By incorporating the EMA attention module, channel dimensions are grouped into multiple sub-features, ensuring a uniform distribution of spatial semantic features within each feature group. Grouping channel dimensions into multiple sub-features means dividing the channels into multiple groups, each containing a subset of features. This helps the model better process and understand the spatial semantic features of the image. Furthermore, ensuring a uniform distribution of spatial semantic features within each feature group means that spatially relevant features are considered and represented evenly, which contributes to a more comprehensive understanding of the image content.

[0061] Preserving information in each channel and reducing computational overhead is mainly reflected in one-dimensional global average pooling. The channel dimension of the input feature map is grouped into multiple sub-feature sets. In each sub-feature set, c represents the number of input channels, and H and W represent the spatial dimensions of the input features, respectively. Therefore, one-dimensional global average pooling that encodes global information in c can be expressed as Equation (1):

[0062] (1)

[0063] In equation (1), x c This represents the input feature value of the c-th channel at (i,j). This results in a single numerical value representing the global information of that channel. Preserving information from each channel while reducing computational overhead is an advantage of multi-scale attention modules. The output feature value z... c .

[0064] Experiments have shown that the EMA attention mechanism is more effective than other attention mechanisms; see Table 1 for experimental comparison.

[0065] Table 1: Experimental Comparison Table

[0066]

[0067] Step S3: Neck Network

[0068] YOLOv8 includes a neck network, such as the Feature Pyramid Network (FPN) or the Path Aggregation Network (PANet), to fuse feature maps of different scales, improving the detection performance for both small and large targets. The neck network fuses features through upsampling and downsampling. Upsampling involves upsampling a low-resolution, high-level feature map to a high resolution, while downsampling involves downsampling a high-resolution, low-level feature map to a low resolution.

[0069] In FPN, low-level feature maps and upsampled high-level feature maps are merged along the channel dimension, and then convolutional operations are performed again to generate new feature maps. Through this feature fusion, the neck network generates multi-scale feature maps that simultaneously contain high-resolution details and deep semantic information of the image. The output of the neck network is typically fed into multiple prediction layers, each responsible for predicting bounding boxes, confidence scores, and class probabilities at different scales. The neck network enables YOLOv8 to effectively detect targets of different sizes, improving the model's generalization ability across various target sizes.

[0070] BiFPN employs an adaptive feature adjustment mechanism, learning weights to adjust features at different levels, better matching the needs of different tasks and thus improving feature fusion performance. P3 to P6 refer to the four levels in the feature pyramid network, each corresponding to a different spatial resolution for detecting targets of varying sizes. Taking P4 as an example, the final output is shown in equations (2) and (3):

[0071] (2)

[0072] In equation (2), The features extracted from the fusion of P4 and P5 are shown in Equation (3):

[0073] (3)

[0074] In equation (3), , These are the characteristics of the outputs of the P4 and P5 input nodes; ω represents the features output by the P3 output node; UpSample is the upsampling operation; ω is a parameter obtained through continuous learning and training, used to distinguish the importance of different features during feature fusion; ε is the bias term. This network design allows high-level feature information to propagate downwards across layers, while low-level feature information can also propagate upwards. Furthermore, to achieve cross-layer feature fusion, the network adds a path from the input node to the output node. This design achieves a good trade-off between accuracy and efficiency. Below are the feature fusion outputs of each layer in BiFPN in YOLOv8:

[0075] P3 layer:

[0076] (4)

[0077] In equation (4), Resize() is an operation to change the image size, which must match the size of the same layer, and Conv() is a convolution operation.

[0078] (5)

[0079] For layer P5:

[0080] (6)

[0081] (7)

[0082] P6 layer:

[0083] (8)

[0084] During the feature fusion process, four feature fusion layers are retained, allowing the feature map to be expanded to a maximum of [160×160]. Cross-scale connections are added to connect the larger feature map with the previous three feature maps, thereby enhancing the recognition effect of small objects and improving the performance and efficiency of the neural network.

[0085] BiFPN Concept Summary:

[0086] Feature map extraction: First, a backbone network, such as Darknet-53, processes the input image, generating a series of feature maps at different scales. These feature maps have progressively decreasing spatial resolution and progressively increasing depth, i.e., the number of channels.

[0087] Bottom-up path: In a bottom-up path, lower-level feature maps are gradually merged, and these lower-level feature maps have higher resolution. Each merging step typically includes the following operations:

[0088] 1x1 convolution: used to reduce the number of channels in a feature map, thus reducing the dimensionality of the features.

[0089] Upsampling: Upsampling a low-level feature map to the resolution of a high-level feature map.

[0090] Fusion: The upsampled low-level feature maps and high-level feature maps are concatenated along the channel dimension and then fused using a 1x1 convolution.

[0091] Top-down path: In a top-down path, higher-level feature maps are progressively passed along, and these higher-level feature maps contain deeper semantic information. Each passing step typically includes the following operations:

[0092] 1x1 convolution: used to reduce the number of channels in a feature map, thus reducing the dimensionality of the features.

[0093] Downsampling: Downsampling a high-level feature map to the resolution of a low-level feature map. Downsampling includes two operations: pooling and convolution, both of which are downsampling behaviors. The C2F module includes downsampling operations.

[0094] Fusion: The downsampled high-level feature maps and low-level feature maps are concatenated along the channel dimension and then fused using a 1x1 convolution.

[0095] Multi-scale feature fusion: Through a bidirectional path from bottom to top and from top to bottom, BiFPN can generate multi-scale feature maps that contain rich spatial and semantic information.

[0096] Multiple prediction layers are output: The output of BiFPN is fed into one or more prediction layers, each responsible for predicting bounding boxes, confidence scores, and class probabilities at different scales.

[0097] The key to BiFPN lies in its bidirectional information flow, which allows information to be exchanged between feature maps at different scales, resulting in richer and more robust feature representations. This structure is particularly well-suited for object detection tasks because real-world objects vary greatly in size, requiring models to be able to effectively detect objects at multiple scales.

[0098] Step S4: Prediction Layer

[0099] The feature map is passed through one or more prediction layers. In this process, the network predicts the possible bounding boxes, the confidence level of the bounding boxes, and the class probability at each feature point.

[0100] Step S5: Loss Function

[0101] The difference between the predicted result and the ground truth (GT) is calculated using a loss function. YOLOv8 typically uses a composite loss function, which includes bounding box loss, confidence loss, and classification loss.

[0102] Step S6: Backpropagation

[0103] The result of the loss function is used to calculate the gradient of the network parameters; this process is called backpropagation. The gradient indicates how to adjust the network weights to reduce the loss. Backpropagation is a key algorithm in neural networks used to train models; it minimizes the loss function by iteratively adjusting the network's parameters, including weights and biases.

[0104] This is a necessary part of the neural network. We use existing technical solutions without any modifications, so we will not go into details.

[0105] Step S7: Weight Update

[0106] Use an optimizer, such as SGD, to update the network weights based on the gradients, thereby minimizing the value of the loss function.

[0107] Step S8: Iterative Training

[0108] Repeat steps S1 through S7 until the network's performance on the validation set no longer improves or the preset number of iterations is reached. These steps constitute the neural network training process, iterating the weights repeatedly until the training iterations are completed or the accuracy no longer improves.

[0109] Example 3

[0110] Example 3 differs from Example 2 in that it also includes step S9.

[0111] This invention discloses a method for training a microkernel recognition neural network, which, based on the steps of Embodiment 1, further includes the following steps:

[0112] Step S9: Evaluation

[0113] At the end of each training epoch, the model's performance is evaluated using a validation set to monitor training progress. The evaluation step is a valuable part of the training process because it provides feedback on the model's generalization ability. However, it also increases computational cost because it requires forward propagation across the entire validation set. Therefore, evaluation is typically not performed after each mini-batch, but rather after each epoch to balance training efficiency and monitoring needs. An epoch represents the model learning the entire training dataset, and the training process consists of multiple epochs, with performance evaluation and possible weight updates occurring at the end of each epoch.

[0114] An Epoch refers to the process of using the entire training dataset to train the model once, which will not be elaborated further as it is a current technology.

[0115] Example 4

[0116] Example 4 differs from Example 3 in that it also includes steps S10 and S11.

[0117] This invention discloses a method for training a microkernel recognition neural network, which, based on the steps of Embodiment 2, further includes the following steps:

[0118] Step S10: Save the model

[0119] During training, save the model's weights periodically, especially when improving performance on the validation set.

[0120] Step S11: Post-processing

[0121] During testing or deployment, the network's output is post-processed, including applying thresholds to filter low-confidence predictions and using non-maximum suppression (NMS) to merge overlapping bounding boxes.

[0122] Example 5

[0123] This invention discloses a method for detecting micronuclei based on a micronucleus recognition neural network, including a detection step, namely step S12, which is described in detail below.

[0124] Step S12: Prediction

[0125] The image to be detected containing the micronucleus is input into any one of the trained micronucleus recognition neural networks in Example 2, Example 3, or Example 4 to obtain the detection result of the micronucleus.

[0126] Comparison of beneficial technical effects:

[0127] like Figure 4As shown, the first image to be detected, containing the microkernel, is input into the existing YOLOv8 neural network to obtain the detection result.

[0128] like Figure 5 As shown, the second image to be detected, containing a microkernel, is input into the existing YOLOv8 neural network to obtain the detection result.

[0129] like Figure 6 As shown, the first image to be detected, containing a microkernel, is input into the microkernel recognition neural network of this application to obtain the detection result.

[0130] like Figure 7 As shown, the second image to be detected, containing a microkernel, is input into the microkernel recognition neural network of this application to obtain the detection result.

[0131] The text in the image represents the names of the four categories. The effect is that the algorithm prints the inference results onto the image, displaying the category, location, and confidence level of the identified target; the location is represented by a bounding box.

[0132] It can be observed that the microkernel recognition neural network used in this application has better detection confidence.

[0133] P3, P4, P5 through P7 are feature pyramid layers at different scales. These layers are used to capture target information at different scales and are part of the Feature Pyramid Network (FPN). They allow the model to detect objects of different sizes simultaneously. P3 has a higher resolution and is suitable for detecting small objects in images, while P7 has a lower resolution but can capture a wider field of view, making it suitable for detecting large objects in images. In YOLOv8, the feature layers are relatively shallow, numbering from P3 to P6, and P7 is not used.

Claims

1. A neural network model structure for micronucleus identification, comprising a backbone network, a neck and a head connected in sequence, wherein the backbone network comprises a first convolutional layer, a second convolutional layer, a first C2F module, a third convolutional layer, a second C2F module, a fourth convolutional layer, a third C2F module, a fifth convolutional layer, a fourth C2F module and an SPPF module connected in sequence from the input side to the output side of the backbone network, characterized in that: The backbone network also includes convolutional layers and attention mechanism modules EMA located on the first to third C2F module sides respectively, and the neck includes a first convolutional layer, a first upsampling module, a first weighted bidirectional feature pyramid network BiFPN, a first C2F module, a second upsampling module, a second weighted bidirectional feature pyramid network BiFPN, a second C2F module, a third weighted bidirectional feature pyramid network BiFPN, a third C2F module, a second convolutional layer, a fourth weighted bidirectional feature pyramid network BiFPN, a fourth C2F module, a third convolutional layer, a fifth weighted bidirectional feature pyramid network BiFPN and a fifth C2F module, which are sequentially connected from the input side to the output side of the neck. The first C2F module of the backbone network is sequentially connected to the third weighted bidirectional feature pyramid network BiFPN of the neck via the convolutional layer and attention mechanism module EMA on the first C2F module side of the backbone network. The backbone network is connected to the feature pyramid network BiFPN, the second C2F module of the backbone network is connected to the second weighted bidirectional feature pyramid network BiFPN of the neck via the convolution layer and the attention mechanism module EMA on the second C2F module side of the backbone network, the third C2F module of the backbone network is connected to the first weighted bidirectional feature pyramid network BiFPN of the neck via the convolution layer and the attention mechanism module EMA on the third C2F module side of the backbone network, the SPPF module of the backbone network is connected to the first convolution layer of the neck, the SPPF module of the backbone network is connected to the fifth weighted bidirectional feature pyramid network BiFPN of the neck, the first C2F module of the neck is connected to the fourth weighted bidirectional feature pyramid network BiFPN of the neck, and the third to fifth C2F modules of the neck are all connected to the head; the backbone network is used to extract features from the input image.

2. The neural network model structure for micronucleus identification according to claim 1, characterized in that: The head includes a first detection head, a second detection head and a third detection head which are distributed in sequence from the input side to the output side of the neck. The third C2F module of the neck is connected to the first detection head of the head, the fourth C2F module of the neck is connected to the second detection head of the head, and the fifth C2F module of the neck is connected to the third detection head of the head.

3. The neural network model structure for micronucleus identification according to claim 1, characterized in that: The neck is used for feature fusion.

4. The neural network model structure for micronucleus identification according to claim 1, characterized in that: The header is used to generate a detection result.

5. A method for training the neural network model structure for micronucleus identification according to any one of claims 1 to 4, comprising a training step, wherein the training step comprises training the neural network to obtain a trained neural network, characterized in that: In the training step, the neural network is a neural network model structure for micronucleus identification.

6. A method for detecting micronuclei based on the neural network model structure for micronuclei identification according to any one of claims 1 to 4, comprising a detection step, wherein the detection step comprises inputting an image to be detected into a trained neural network to obtain a detection result, characterized in that: In the detection step, the image to be detected is an image to be detected containing micronuclei, and the neural network is a neural network model structure for micronuclei recognition.

Citation Information

Patent Citations

  • Hemerocallis fulva disease target detection method and system based on self-attention mechanism

    CN116843971A

  • Indoor article detection method based on YOLOv7

    CN117789012A

  • Unmanned aerial vehicle small target detection method based on improved YOLOv5

    CN117853955A

  • Improved YOLOv8 early flame small target detection method and system

    CN117911828A