A cryptococcal identification method and system based on data enhanced DETR

By using data enhancement technology and multi-head self-attention mechanism in the DETR model, the problem of low efficiency and high false detection rate of cryptococcus detection methods is solved, fast and accurate cryptococcus identification is achieved, and the identification accuracy and speed are improved.

CN118521572BActive Publication Date: 2024-09-20THE SECOND AFFILIATED HOSPITAL TO NANCHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410963272.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-09-20
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Existing cryptococcal detection methods have low efficiency and high false detection rate. The deep learning model cannot meet clinical needs due to the lack of cryptococcal image information.

Method used

The DETR model based on data enhancement is used to amplify the cryptococcus data set through amplitude information perturbation and pixel area random perturbation technology, build a channel separation-parameter sharing backbone structure and a multi-head self-attention mechanism, extract image features, and achieve rapid and accurate identification.

Benefits of technology

It improves the speed and accuracy of cryptococcus identification, reduces the computational complexity of the model, and enhances the ability to identify cryptococci images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118521572B
    Figure CN118521572B
Patent Text Reader

Abstract

The present invention provides a cryptococcal identification method and system based on data enhancement DETR. The method constructs a DETR model according to the cryptococcal image features, wherein the DETR model comprises an input layer, a backbone layer, a coding layer, a decoding layer and an output layer connected in sequence; inputs the image data in an initial training set into the DETR model for training to obtain a target DETR model; obtains an image to be identified, pre-processes the image to be identified, and then inputs the image into the target DETR model to output a recognition result. Specifically, a data enhancement technology based on amplitude information perturbation and a data enhancement technology based on random perturbation of three-channel pixel regions are respectively designed to generate a large number of images expressing the core characteristics of cryptococcal images, so as to expand the cryptococcal image data set. On this basis, a deformable lightweight DETR model accelerates the recognition speed and recognition accuracy for image information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cryptococcal identification based on data enhanced DETR, and specifically relates to a cryptococcal identification method and system based on data enhanced DETR. Background Art

[0002] Cryptococcus enters the human body mainly through respiratory inhalation, dietary intake, and contact with cryptococcus after skin injury. After cryptococcus enters the human body, it can cause cryptococcosis, and the corresponding clinical symptoms are pneumonia, meningitis, headache, etc. Furthermore, the content of cryptococci in the patient's cerebrospinal fluid can be identified to determine whether the patient has cryptococcosis and the severity of the patient's illness. It is also the main detection method for meningitis that may occur in severely infected patients.

[0003] However, the clinical detection method based on naked eye observation of the presence of Cryptococcus under a microscope is inefficient, and the false detection rate is extremely high due to the significant morphological differences of Cryptococcus and pixel interference between Cryptococcus and image information under the microscope, making the existing detection methods for Cryptococcus unable to meet clinical medical needs.

[0004] At present, artificial intelligence detection technology based on deep learning has received widespread attention in medical image detection and has been successfully applied to existing medical detection equipment, but this type of technology mainly relies on learning a large amount of image feature information to improve recognition accuracy. However, it is impossible to directly obtain a large amount of cryptococcal image information in clinical practice, resulting in less available cryptococcal image information and unable to provide massive feature images for classic deep learning recognition models. Summary of the invention

[0005] Based on this, an embodiment of the present invention provides a cryptococcal identification method and system based on data enhanced DETR, aiming to quickly and accurately identify cryptococci.

[0006] A first aspect of an embodiment of the present invention provides a cryptococcal identification method based on data enhancement DETR, the method comprising:

[0007] A DETR model is constructed according to the cryptococcal image features, wherein the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer, and an output layer connected in sequence;

[0008] Wherein, in the input layer, a data enhancement technique based on Fourier transform is constructed by amplitude information perturbation to amplify the cryptococcal data set to increase image data, or, in the input layer, a data enhancement technique based on pixel information is constructed by random perturbation for the three-channel pixel area of ​​the image to amplify the cryptococcal data set to increase image data;

[0009] In the backbone layer, a sandwich backbone structure based on channel separation and parameter sharing is constructed to reduce the computational complexity of the model, specifically including:

[0010] According to the channel separation operation, the cryptococcal image features are sequentially generated into a first separation channel, a second separation channel and a third separation channel in a ratio of 1:2:1;

[0011] Extracting first feature information of the second separation channel by using feature extraction and conversion operation based on unfolded convolution;

[0012] Connecting the feature information of the first separation channel and the third separation channel with the feature information extracted from the second separation channel, and acquiring second feature information by downsampling;

[0013] According to the channel separation operation again, the first feature information and the second feature information are both generated into three separation channels in a ratio of 1:2:1. Under the premise of sharing the first channel separation parameters, feature extraction and conversion operations based on unfolded convolution are performed, and finally all feature information are connected;

[0014] In the encoding layer, a transformer encoding layer based on a multi-head self-attention mechanism is constructed to extract global feature information of cryptococcal images;

[0015] In the decoding layer, a deformable transformer decoding layer is constructed to effectively decode different morphological feature information presented by cryptococcus;

[0016] In the output layer, the recognition result of Cryptococcus in the image data is output;

[0017] Acquire an initial training set with image data, and input the image data in the initial training set into the DETR model to train the DETR model to obtain a target DETR model;

[0018] Obtain an image to be identified, pre-process the image to be identified, input it into the target DETR model, and output a recognition result.

[0019] Furthermore, the step of obtaining an initial training set having image data, inputting the image data in the initial training set into the DETR model to train the DETR model, and obtaining a target DETR model includes:

[0020] Acquire an initial training set with image data, wherein the image data in the initial training set is preprocessed image data, input the image data in the initial training set into an input layer in the DETR model, perform data expansion, and obtain an expanded target training set;

[0021] Inputting the image data in the target training set into the backbone layer of the DETR model, wherein the image data in the target training set is subjected to feature extraction using a ResNet101 network architecture to obtain prior feature information;

[0022] Inputting the prior feature information into the encoding layer in the DETR model, wherein the prior feature information is encoded into serialized characteristic information according to the correlation between features, and global feature information is extracted;

[0023] Inputting the result of global feature information extraction into the decoding layer in the DETR model to extract local refined feature information;

[0024] The local refined feature information is input into the output layer of the DETR model to obtain the prediction result and the pre-trained weights for the target training set.

[0025] Furthermore, the step of constructing a Fourier transform-based data enhancement technology to amplify the cryptococcal data set by perturbation of amplitude information includes:

[0026] Cryptococcal image data is obtained by using a Fourier transform data enhancement technique to generate target image data through amplitude information perturbation, wherein the amplitude value of the original image data at a preset pixel coordinate is determined based on Fourier transform;

[0027] According to the decomposition operation, the amplitude value is decomposed to obtain the corresponding amplitude center area;

[0028] The information values ​​of the two amplitude center areas are exchanged to obtain two target amplitude values;

[0029] The two target amplitude values ​​are processed according to Fourier transform to obtain target image data.

[0030] Furthermore, the step of constructing a data enhancement technology based on pixel information by randomly perturbing the pixel area of ​​the three channels of the image to amplify the cryptococcal dataset to increase the image data includes:

[0031] Through the channel separation operation, the original image data is decomposed into three grayscale images;

[0032] Randomly select some pixel information values ​​of each grayscale image, add the normal distribution disturbance value, obtain the target pixel information value, and act on the corresponding grayscale image to form the target grayscale image;

[0033] The three target grayscale images are combined to form target image data.

[0034] Furthermore, the step of constructing a transformer encoding layer based on a multi-head self-attention mechanism to extract global feature information of cryptococcal images includes:

[0035] Acquire the prior feature information, and encode the prior feature information according to a correlation quantization function to form a serialized feature graph;

[0036] The size is The convolution kernel reduces the channel dimension of the serialized feature map to obtain a target feature map;

[0037] The target feature map is folded to form a one-dimensional feature map, the pre-trained weights are used as initial weights for stochastic gradient descent, and global feature information is encoded for the one-dimensional feature map based on a multi-head self-attention mechanism and a feedforward network.

[0038] Furthermore, the expression for constructing a deformable transformer encoding layer to effectively decode different morphological feature information presented by Cryptococcus is:

[0039] ;

[0040] in, Decoded feature information for the deformable attention module. is the encoded feature information, is the range of K in the deformable attention module, and are the position indices corresponding to Q and K in the deformable attention module, is the number of learnable weights, and are all learnable weights, is the attention weight, Indicates The attention head The sampling offset of the sampling points, Indicates that for The sampled data indexed by position.

[0041] A second aspect of an embodiment of the present invention provides a cryptococcal identification system based on data enhancement DETR, which is used to implement the cryptococcal identification method based on data enhancement DETR as described in the first aspect of an embodiment of the present invention, and the system includes:

[0042] A construction module is used to construct a DETR model for cryptococcal image features, wherein the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer, and an output layer connected in sequence;

[0043] A training module, used for acquiring an initial training set having image data, and inputting the image data in the initial training set into the DETR model to train the DETR model to obtain a target DETR model;

[0044] The input module is used to obtain the image to be recognized, pre-process the image to be recognized, input it into the target DETR model, and output the recognition result.

[0045] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the cryptococcal identification method based on data-enhanced DETR as described in the first aspect.

[0046] The fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the cryptococcal identification method based on data-enhanced DETR as described in the first aspect is implemented.

[0047] The beneficial effects of the present invention are as follows: a DETR model is constructed according to the image features of cryptococcus, and the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer and an output layer connected in sequence; an initial training set with image data is obtained, and the image data in the initial training set is input into the DETR model to train the DETR model to obtain a target DETR model; an image to be identified is obtained, and after preprocessing the image to be identified, the image is input into the target DETR model to output a recognition result. Specifically, a data enhancement technology based on amplitude information perturbation and a data enhancement technology based on random perturbation of three-channel pixel areas are designed to generate a large number of images expressing the core characteristics of cryptococcus images to expand the cryptococcus image data set. On this basis, a deformable lightweight DETR model accelerates the recognition speed and recognition accuracy of image information. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A flowchart of a cryptococcal identification method based on data enhancement DETR provided in Example 1 of the present invention;

[0049] Figure 2 A schematic diagram of the structure of a cryptococcal recognition system based on data enhancement DETR provided in the third embodiment of the present invention;

[0050] Figure 3 This is a structural block diagram of an electronic device in Embodiment 4 of the present invention.

[0051] The following specific implementation manner will be further described in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0052] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.

[0053] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0055] Embodiment 1

[0056] See also Figure 1 , Figure 1 A flowchart of a cryptococcal identification method based on data enhancement DETR provided in the first embodiment of the present invention is shown, and the method specifically includes steps S01 to S03.

[0057] Step S01, constructing a DETR model for cryptococcal image features, wherein the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer, and an output layer connected in sequence.

[0058] Among them, in the input layer, the data enhancement technology based on Fourier transform is constructed by amplitude information perturbation to expand the cryptococcal data set to increase the image data. Specifically, in view of the fact that the cryptococcal data set is small and the cryptococcal morphological differences are significant, the Fourier transform data enhancement technology that can generate new image data by generating image amplitude information perturbation is used to obtain a large amount of cryptococcal image data with different morphological characteristics. The specific formula of Fourier transform is as follows:

[0059] ;

[0060] In the above formula, For pixel coordinate information No. Fourier transform values, and Respectively represent the height and width coordinate values ​​of the pixel, and Respectively represent the overall height and width of the cryptococcal image, and represents the frequency domain variable, represents the Fourier transform imaginary unit, Indicates that the pixel coordinate information of the image is Two amplitude values.

[0061] Based on the Fourier transform value, the pixel coordinate information of the image is The formula for the amplitude value is as follows:

[0062] ;

[0063] In the above formula, For pixel coordinate information No. Amplitude value, represents the real part of the frequency domain feature information, Represents the real part of the frequency domain feature information.

[0064] Based on the decomposition operation, the two amplitude values ​​of the pixel information are decomposed to obtain the corresponding amplitude center area. The specific calculation formula is as follows:

[0065] ;

[0066] In the above formula, For pixel coordinate information No. The information value of the central area after the amplitude value is decomposed, For pixel coordinate information No. Other regional information values ​​after the amplitude value is decomposed, Divide the ratio for the central area.

[0067] By exchanging the central area information values ​​of the two amplitude values, two new amplitude values ​​are obtained. The specific calculation formula is as follows:

[0068] ;

[0069] In the above formula, and The two new amplitude values ​​obtained are, represents the regional connection function.

[0070] The two target amplitude values ​​are processed according to Fourier transform to obtain the target image data, wherein the image information data is converted from the frequency domain to the time-space domain based on the inverse function of Fourier transform, and the new image data is obtained after Fourier transform. The specific calculation formula is as follows:

[0071] ;

[0072] In the above formula, Indicates that the pixel coordinate information of the new image is The pixel value of Indicates that the new image is formed with pixel coordinate information Two new amplitude values.

[0073] In some other embodiments of the present invention, in the input layer, a data enhancement technique based on pixel information is constructed by randomly perturbing the pixel area of ​​the three channels of the image to amplify the cryptococcal data set to increase the image data. Specifically, the original image data is decomposed into three grayscale images through a channel separation operation. The specific formula is:

[0074] ;

[0075] In the above formula, , and For images The decomposed three-channel grayscale image, that is, three grayscale images, is the channel separation function;

[0076] Randomly select some pixel information values ​​of each grayscale image, add the normal distribution disturbance value, obtain the target pixel information value, and act on the corresponding grayscale image to form the target grayscale image;

[0077] Merge the three target grayscale images to form target image data;

[0078] In the backbone layer, a sandwich backbone structure based on channel separation and parameter sharing is constructed to reduce the computational complexity of the model. Specifically, in order to attach importance to the local area extraction ability of image features, according to the channel separation operation, the cryptococcal image features are sequentially generated into the first separation channel, the second separation channel and the third separation channel in a ratio of 1:2:1;

[0079] The feature extraction and conversion operation based on unfolded convolution is used to extract the first feature information of the second separation channel, that is, the deep feature information. The specific formula is as follows:

[0080] ;

[0081] in, is the feature information extracted for the second separation channel, that is, the first feature information, The characteristic information assigned to the second separation channel, is the activation function, is the layer normalization operation function, For size is the convolution kernel, The size is The convolution kernel, To perform a filling operation on edge feature information;

[0082] Connecting the feature information of the first separation channel and the third separation channel with the feature information extracted from the second separation channel, and obtaining the second feature information, i.e., the shallow feature information, by downsampling;

[0083] According to the channel separation operation again, the first feature information and the second feature information are both generated into three separation channels in a ratio of 1:2:1. Under the premise of sharing the first channel separation parameters, feature extraction and conversion operations based on unfolded convolution are performed, and finally all feature information is connected to achieve effective extraction of feature information at different levels without increasing the computational cost;

[0084] In the encoding layer, a transformer encoding layer based on a multi-head self-attention mechanism is constructed to extract the global feature information of cryptococcal images. Specifically, the prior feature information is obtained, and the prior feature information is encoded according to the correlation quantization function to form a serialized feature graph.

[0085] The size is The convolution kernel reduces the channel dimension of the serialized feature map and obtains the target feature map;

[0086] The target feature map is folded to form a one-dimensional feature map. The pre-trained weights are used as the initial weights of the random gradient descent. The global feature information is encoded for the one-dimensional feature map based on the multi-head self-attention mechanism and the feedforward network to achieve effective encoding and extraction of global feature information.

[0087] In the decoding layer, a deformable transformer decoding layer is constructed to effectively decode the different morphological characteristics of cryptococcus. Specifically, the expression is:

[0088] ;

[0089] in, Decoded feature information for the deformable attention module. is the encoded feature information, is the range of K in the deformable attention module, and are the position indices corresponding to Q and K in the deformable attention module, is the number of learnable weights, and are all learnable weights, is the attention weight, Indicates The attention head The sampling offset of the sampling points, Indicates that for Sampling data indexed by position;

[0090] In the output layer, the recognition results of cryptococci in the image data are output. Specifically, the feature information decoded in the decoding layer is mapped to the pixel area where the cryptococci are located in the image information using a fully connected layer and an activation function; a circular mark is set to mark the recognition results of all cryptococci in the image information, and the number of recognized cryptococci is calculated.

[0091] Step S02, obtaining an initial training set with image data, and inputting the image data in the initial training set into the DETR model to train the DETR model to obtain a target DETR model.

[0092] Specifically, an initial training set with image data is obtained, wherein the image data in the initial training set is preprocessed image data, and the preprocessing may be a processing method such as normalization processing, and the image data in the initial training set is input into an input layer in the DETR model to perform data expansion to obtain an expanded target training set;

[0093] The image data in the target training set is input into the backbone layer of the DETR model, wherein the ResNet101 network architecture is used to extract features of the image data in the target training set to obtain prior feature information;

[0094] The prior feature information is input into the encoding layer in the DETR model, where the prior feature information is encoded into serialized feature information according to the correlation between features, and global feature information is extracted;

[0095] The result of global feature information extraction is input into the decoding layer in the DETR model to extract local refined feature information;

[0096] The local refined feature information is input into the output layer in the DETR model to obtain the prediction results and the pre-trained weights for the target training set.

[0097] Step S03, obtaining an image to be recognized, preprocessing the image to be recognized, inputting it into the target DETR model, and outputting a recognition result.

[0098] In summary, the cryptococcal identification method based on data enhanced DETR in the above embodiments of the present invention constructs a DETR model according to the cryptococcal image features, and the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer and an output layer connected in sequence; an initial training set with image data is obtained, and the image data in the initial training set is input into the DETR model to train the DETR model to obtain a target DETR model; an image to be identified is obtained, and after pre-processing the image to be identified, the image is input into the target DETR model, and a recognition result is output. Specifically, a data enhancement technology based on amplitude information perturbation and a data enhancement technology based on random perturbation of three-channel pixel areas are designed to generate a large number of images expressing the core characteristics of cryptococcal images to expand the cryptococcal image data set. On this basis, a deformable lightweight DETR model accelerates the recognition speed and recognition accuracy of image information.

[0099] Embodiment 2

[0100] In order to verify the cryptococcal recognition method based on data enhancement DETR in Example 1 of the present invention, the average precision AP 0.5 The experimental results are shown in Table 1. As shown in Table 1, compared with the traditional DETR (Detection Transformer) model, the method of this embodiment has higher prediction accuracy and lower parameter amount, which reflects the prediction accuracy and prediction speed of the data enhanced DETR of this embodiment. It can be considered that the method of this embodiment has good performance in the problem of rapid recognition of cryptococcal images.

[0101] Table 1 Image recognition results

[0102] Model <![CDATA[AP 0.5 ]]> Parameter quantity (M) DETR 0.72 41 Data Enhancement (DETR) 0.82 20

[0103] Embodiment 3

[0104] See also Figure 2 , which is a structural diagram of a cryptococcal identification system based on data enhancement DETR according to Embodiment 3 of the present invention, wherein the cryptococcal identification system 200 based on data enhancement DETR specifically includes:

[0105] A construction module 21 is used to construct a DETR model for cryptococcal image features, wherein the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer, and an output layer connected in sequence, wherein in the input layer, a Fourier transform-based data enhancement technology is constructed by amplitude information perturbation to amplify the cryptococcal data set to increase image data, or, in the input layer, a pixel information-based data enhancement technology is constructed by random perturbation for a three-channel pixel region of the image to amplify the cryptococcal data set to increase image data;

[0106] In the backbone layer, a sandwich backbone structure based on channel separation and parameter sharing is constructed to reduce the computational complexity of the model;

[0107] In the encoding layer, a transformer encoding layer based on a multi-head self-attention mechanism is constructed to extract global feature information of cryptococcal images;

[0108] In the decoding layer, a deformable transformer decoding layer is constructed to effectively decode the different morphological feature information presented by Cryptococcus, and the expression is:

[0109] ;

[0110] in, Decoded feature information for the deformable attention module. is the encoded feature information, is the range of K in the deformable attention module, and are the position indices corresponding to Q and K in the deformable attention module, is the number of learnable weights, and are all learnable weights, is the attention weight, Indicates The attention head The sampling offset of the sampling points, Indicates that for Sampling data indexed by position;

[0111] In the output layer, the recognition result of Cryptococcus in the image data is output;

[0112] A training module 22, used for obtaining an initial training set having image data, and inputting the image data in the initial training set into the DETR model to train the DETR model to obtain a target DETR model;

[0113] The input module 23 is used to obtain the image to be recognized, pre-process the image to be recognized, input it into the target DETR model, and output the recognition result.

[0114] Furthermore, in some other embodiments of the present invention, the training module 22 includes:

[0115] A data expansion unit is used to obtain an initial training set with image data, wherein the image data in the initial training set is image data after preprocessing, input the image data in the initial training set into an input layer in the DETR model, perform data expansion, and obtain an expanded target training set;

[0116] A feature extraction unit, used for inputting the image data in the target training set into the backbone layer in the DETR model, wherein the image data in the target training set is subjected to feature extraction using a ResNet101 network architecture to obtain prior feature information;

[0117] A first encoding unit, configured to input the prior feature information into the encoding layer in the DETR model, wherein the prior feature information is encoded into serialized characteristic information according to the correlation between features, and global feature information is extracted;

[0118] A first input unit, used to input the result of global feature information extraction into the decoding layer in the DETR model to extract local refined feature information;

[0119] The second input unit is used to input the local refined feature information into the output layer in the DETR model to obtain the prediction result and the pre-training weight for the target training set.

[0120] Furthermore, in some other embodiments of the present invention, the building module 21 includes:

[0121] An amplitude value determination unit, used to obtain cryptococcal image data by using a Fourier transform data enhancement technique to generate target image data through amplitude information perturbation, wherein the amplitude value of the original image data at a preset pixel coordinate is determined based on Fourier transform;

[0122] A first decomposition unit is used to decompose the amplitude value according to the decomposition operation to obtain the corresponding amplitude center area;

[0123] An exchange unit, used for exchanging information values ​​of two amplitude center areas to obtain two target amplitude values;

[0124] The first processing unit is used to process the two target amplitude values ​​according to Fourier transform to obtain target image data.

[0125] Furthermore, in some other embodiments of the present invention, the construction module 21 further includes:

[0126] A second decomposition unit is used to decompose the original image data into three grayscale images through a channel separation operation;

[0127] A target grayscale image forming unit is used to randomly select part of the pixel information values ​​of each grayscale image, add a normal distribution disturbance value, obtain a target pixel information value, and act on the corresponding grayscale image to form a target grayscale image;

[0128] The merging unit is used to merge the three target grayscale images to form target image data.

[0129] Furthermore, in some other embodiments of the present invention, the construction module 21 further includes:

[0130] A first separation unit is used to generate a first separation channel, a second separation channel and a third separation channel in sequence according to a ratio of 1:2:1 based on the cryptococcal image features according to a channel separation operation;

[0131] An extraction unit, configured to extract first feature information of the second separation channel by using a feature extraction and conversion operation based on unfolded convolution;

[0132] a connection unit, configured to connect the feature information of the first separation channel and the third separation channel with the feature information extracted from the second separation channel, and obtain second feature information by downsampling;

[0133] The second separation unit is used to generate three separation channels for the first feature information and the second feature information in a ratio of 1:2:1 according to the channel separation operation again, and perform feature extraction and conversion operations based on expanded convolution on the premise of sharing the first channel separation parameters, and finally connect all the feature information.

[0134] Furthermore, in some other embodiments of the present invention, the construction module 21 further includes:

[0135] A second encoding unit is used to obtain the priori feature information, and encode the priori feature information according to a correlation quantization function to form a serialized feature graph;

[0136] Dimensionality reduction unit, used to adopt size The convolution kernel reduces the channel dimension of the serialized feature map and obtains the target feature map;

[0137] A folding unit is used to fold the target feature map to form a one-dimensional feature map, use the pre-trained weights as the initial weights of stochastic gradient descent, and encode global feature information for the one-dimensional feature map based on a multi-head self-attention mechanism and a feedforward network.

[0138] Embodiment 4

[0139] Another aspect of the present invention provides an electronic device, see Figure 3 , shown is a structural block diagram of an electronic device in Embodiment 4 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor. When the processor 10 executes the computer program 30, the cryptococcal identification method based on data enhancement DETR as described above is implemented.

[0140] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.

[0141] Among them, the memory 20 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 20 can be an internal storage unit of an electronic device, such as a hard disk of the electronic device. In other embodiments, the memory 20 can also be an external storage device of an electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 20 can also include both an internal storage unit of the electronic device and an external storage device. The memory 20 can not only be used to store application software and various types of data of the electronic device, but also can be used to temporarily store data that has been output or is to be output.

[0142] It should be pointed out that Figure 3 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.

[0143] The embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the cryptococcal identification method based on data enhanced DETR as described above.

[0144] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0145] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0146] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0147] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0148] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A cryptococcal identification method based on data enhancement DETR, characterized in that: The method comprises: A DETR model is constructed according to the cryptococcal image features, wherein the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer, and an output layer connected in sequence; Wherein, in the input layer, a data enhancement technique based on Fourier transform is constructed by amplitude information perturbation to amplify the cryptococcal data set to increase image data, or, in the input layer, a data enhancement technique based on pixel information is constructed by random perturbation for the three-channel pixel area of ​​the image to amplify the cryptococcal data set to increase image data; In the backbone layer, a sandwich backbone structure based on channel separation and parameter sharing is constructed to reduce the computational complexity of the model, specifically including: According to the channel separation operation, the cryptococcal image features are sequentially generated into a first separation channel, a second separation channel and a third separation channel in a ratio of 1:2:1; Extracting first feature information of the second separation channel by using feature extraction and conversion operation based on unfolded convolution; Connecting the feature information of the first separation channel and the third separation channel with the feature information extracted from the second separation channel, and acquiring second feature information by downsampling; According to the channel separation operation again, the first feature information and the second feature information are both generated into three separation channels in a ratio of 1:2:

1. Under the premise of sharing the first channel separation parameters, feature extraction and conversion operations based on unfolded convolution are performed, and finally all feature information are connected; In the encoding layer, a transformer encoding layer based on a multi-head self-attention mechanism is constructed to extract global feature information of cryptococcal images; In the decoding layer, a deformable transformer decoding layer is constructed to effectively decode different morphological feature information presented by cryptococcus; In the output layer, the recognition result of Cryptococcus in the image data is output; Acquire an initial training set with image data, and input the image data in the initial training set into the DETR model to train the DETR model to obtain a target DETR model; Obtain an image to be identified, pre-process the image to be identified, input it into the target DETR model, and output a recognition result.

2. The cryptococcal identification method based on data enhanced DETR according to claim 1, characterized in that: The step of obtaining an initial training set having image data, inputting the image data in the initial training set into the DETR model to train the DETR model, and obtaining a target DETR model comprises: Acquire an initial training set with image data, wherein the image data in the initial training set is preprocessed image data, input the image data in the initial training set into an input layer in the DETR model, perform data expansion, and obtain an expanded target training set; Inputting the image data in the target training set into the backbone layer of the DETR model, wherein the ResNet101 network architecture is used to extract features of the image data in the target training set to obtain prior feature information; Inputting the prior feature information into the encoding layer in the DETR model, wherein the prior feature information is encoded into serialized characteristic information according to the correlation between features, and global feature information is extracted; Inputting the result of global feature information extraction into the decoding layer in the DETR model to extract local refined feature information; The local refined feature information is input into the output layer of the DETR model to obtain the prediction result and the pre-trained weights for the target training set.

3. The cryptococcal identification method based on data enhanced DETR according to claim 1, characterized in that: The step of constructing a Fourier transform-based data enhancement technology to amplify the cryptococcal data set by perturbing amplitude information includes: Cryptococcal image data is obtained by using a Fourier transform data enhancement technique to generate target image data through amplitude information perturbation, wherein the amplitude value of the original image data at a preset pixel coordinate is determined based on Fourier transform; According to the decomposition operation, the amplitude value is decomposed to obtain the corresponding amplitude center area; The information values ​​of the two amplitude center areas are exchanged to obtain two target amplitude values; The two target amplitude values ​​are processed according to Fourier transform to obtain target image data.

4. The cryptococcal identification method based on data enhanced DETR according to claim 1, characterized in that: The step of constructing a data enhancement technology based on pixel information by randomly perturbing the pixel area of ​​the three channels of the image to amplify the cryptococcal dataset to increase the image data includes: Through the channel separation operation, the original image data is decomposed into three grayscale images; Randomly select some pixel information values ​​of each grayscale image, add the normal distribution disturbance value, obtain the target pixel information value, and act on the corresponding grayscale image to form the target grayscale image; The three target grayscale images are combined to form target image data.

5. The cryptococcal identification method based on data enhanced DETR according to claim 2, characterized in that: The steps of constructing a transformer encoding layer based on a multi-head self-attention mechanism to extract global feature information of cryptococcal images include: Acquire the prior feature information, and encode the prior feature information according to a correlation quantization function to form a serialized feature graph; The size is The convolution kernel reduces the channel dimension of the serialized feature map to obtain a target feature map; The target feature map is folded to form a one-dimensional feature map, the pre-trained weights are used as initial weights for stochastic gradient descent, and global feature information is encoded for the one-dimensional feature map based on a multi-head self-attention mechanism and a feedforward network.

6. The cryptococcal identification method based on data enhanced DETR according to claim 1, characterized in that: The expression for constructing a deformable transformer decoding layer to effectively decode different morphological feature information presented by Cryptococcus is: ; in, Decoded feature information for the deformable attention module. is the encoded feature information, is the range of K in the deformable attention module, and are the position indices corresponding to Q and K in the deformable attention module, is the number of learnable weights, and are all learnable weights, is the attention weight, Indicates The attention head The sampling offset of the sampling points, Indicates that for The sampled data indexed by position.

7. A cryptococcal recognition system based on data enhancement DETR, characterized in that: The method for identifying cryptococci based on data-enhanced DETR according to any one of claims 1 to 6 comprises: A construction module is used to construct a DETR model for cryptococcal image features, wherein the DETR model includes an input layer, a backbone layer, a coding layer, a decoding layer, and an output layer connected in sequence; A training module, used for acquiring an initial training set having image data, and inputting the image data in the initial training set into the DETR model to train the DETR model to obtain a target DETR model; The input module is used to obtain the image to be recognized, pre-process the image to be recognized, input it into the target DETR model, and output the recognition result.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cryptococcal identification method based on data enhancement DETR as described in any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the cryptococcal identification method based on data enhanced DETR as described in any one of claims 1 to 6 is implemented.