A method for HIV antigen detection based on neural network
By cutting the original image of the fluorescence signal into image blocks and reconstructing it into an enhanced image matrix, and inputting it into the convolutional neural network for differential operation, the problem in the existing technology of high model training resources and detection results being affected by data quality is solved, and the problem is achieved More efficient and accurate HIV antigen testing.
Patent Information
- Application Number
- CN202410649453.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-05-24
AI Technical Summary
HIV antigen detection methods based on neural networks have high requirements in terms of training models and computing resource requirements, and data quality and sample selection affect the detection results and need to be optimized.
By acquiring multiple original images of fluorescence signals combining the sample and antibody reaction, cutting them into image blocks to form a pixel matrix, projecting them into position component matrices and color component matrices, reconstructing them into enhanced image matrices, and inputting them into the convolutional neural network for processing. Differential operations to improve detection accuracy.
It improves the accuracy and efficiency of HIV antigen detection, reduces the demand for computing resources, and enhances image quality and reliability of detection results.
Smart Images

Figure CN118229685B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of detection using neural networks, and in particular to a method for detecting HIV antigens based on neural networks. Background Art
[0002] The HIV antigen detection method based on neural network is an emerging method that combines neural network technology and biological technology to detect HIV antigens in human samples. The core of this method is to use the powerful learning and classification capabilities of neural networks to extract useful information from a large amount of biological data, thereby accurately and quickly locating the HIV antigen reaction location.
[0003] In the HIV antigen detection method based on neural network, it is usually necessary to collect a large amount of HIV antigen data, including positive samples and negative samples. This data can come from HIV antigen detection experiments in the laboratory or from existing public databases. A neural network model is trained using this data to enable it to identify the presence of HIV antigen reactions.
[0004] The training of the neural network model is an iterative process. In this process, the model will continuously learn based on the input sample data and adjust its own parameters to reduce the error between the predicted results and the actual results. When the model's predictive ability reaches a certain level, it can be used for actual HIV antigen testing.
[0005] During the testing process, the sample to be tested must first be processed to extract the antigen image. Then, these antigen components are input into the trained neural network model, and the model will output a prediction result indicating whether there is an HIV antigen reaction in the image. Based on this prediction result, it can be determined whether the sample to be tested is HIV positive.
[0006] The HIV antigen detection method based on neural networks has many advantages. First, it can realize automated and high-throughput detection, greatly improving the detection efficiency. Second, because neural networks have strong learning and classification capabilities, this method can achieve high detection accuracy and sensitivity. In addition, this method can also be combined with other biological technologies, such as gene sequencing, proteomics, etc., to further improve the accuracy and reliability of detection.
[0007] However, the neural network-based HIV antigen detection method also has some challenges and limitations. Training the neural network model requires a large amount of data and computing resources, which places high demands on laboratory equipment and manpower. In addition, the training process of the neural network model may also be affected by factors such as data quality and sample selection, thereby affecting the final test results. Therefore, in practical applications, it is necessary to comprehensively consider various factors and continuously optimize and improve the neural network-based HIV antigen detection method. Summary of the invention
[0008] In order to solve the above technical problems, the present invention proposes a method for HIV antigen detection based on neural network, comprising the following steps:
[0009] S1, obtaining M original images containing fluorescence signals of the sample and the antibody reaction, cutting each original image into N image blocks, forming a pixel matrix corresponding to the multiple image blocks, and projecting the pixel matrix into a position component matrix and a color component matrix;
[0010] S2, reconstructing the pixel matrix according to the position component matrix and the color component matrix, and converting the pixel matrix of the original image into an enhanced image matrix;
[0011] S3. Input each matrix element data of the enhanced image matrix into the convolutional neural network for differentiation operation to obtain the position information of the target matrix element data in the enhanced image matrix.
[0012] Furthermore, in step S2, the enhanced image matrix Z is:
[0013] ;
[0014] Among them, W is the color component matrix, E is the position component matrix, Q is the pixel matrix, and is the transposed matrix of the position component matrix E, is the dimension of the position component matrix E.
[0015] Furthermore, in step S3, the convolutional neural network is used express, Represents the neural network parameters, and each matrix element data As input data U, convolutional neural network The expression is:
[0016] ;
[0017] Convolutional Neural Networks Weighing input data against known target data The difference between them derives the convolutional neural network The output value of the target matrix element data within the threshold range , extract matrix element data The row number I and column number J of the target matrix element data are obtained, and the location is located in the Ith row and the Jth column in the enhanced image matrix.
[0018] Furthermore, the step S1 comprises:
[0019] S11, preprocessing the original image containing the fluorescence signal;
[0020] S12, cutting each preprocessed image into multiple image blocks to form a pixel sequence of the image blocks, and combining the pixel sequences of the multiple image blocks into a pixel matrix;
[0021] S13. Project the pixel matrix into a position component matrix and a color component matrix.
[0022] Furthermore, in step S12, the preprocessed image is cut into N image blocks to form a pixel sequence of the image blocks.
[0023] set up Represents the i-th image x i The pixel sequence of the image block formed after cutting, Represents image x i The pixel data of the j-th image block after cutting,
[0024] The pixel sequences of the image blocks of the M images are combined into a pixel matrix Q of size M×N, as shown below:
[0025] ;
[0026] Each row in the pixel matrix Q represents a pixel sequence of N image blocks of the same image, and the j-th column represents a sequence consisting of pixel data of the j-th image block of M images.
[0027] Furthermore, in step S13, represents a position component sequence corresponding to a pixel sequence of the image block, represents the position component of the jth image block of the ith image,
[0028] Combine the position component sequences of M images into an M×N position component matrix E:
[0029] ;
[0030] Each row in the position component matrix E represents a sequence of position components of N image blocks of the same image, and the j-th column represents a sequence consisting of position components of the j-th image block of M images.
[0031] Furthermore, in step S13, represents a color component sequence corresponding to a pixel sequence of the image block, represents the color component of the jth image block of the i-th image,
[0032] Combine the color component sequences of M images into a color component matrix W of size M×N:
[0033] ;
[0034] Each row in the color component matrix W represents a sequence of color components of N image blocks of the same image, and the j-th column represents a sequence of color components of the j-th image block of M images.
[0035] Compared with the prior art, the present invention has the following beneficial technical effects:
[0036] Acquire multiple original images containing fluorescent signals of the sample combined with the antibody reaction, cut each original image into multiple image blocks, form a pixel matrix corresponding to the multiple image blocks, and project the pixel matrix into a position component matrix and a color component matrix, which is conducive to obtaining the image blocks that are focused on.
[0037] The pixel matrix is reconstructed according to the position component matrix and the color component matrix, and the pixel matrix of the original image is converted into an enhanced image matrix, thereby improving the image quality of the original image.
[0038] Each element data of the enhanced image matrix is input into the convolutional neural network for differentiation operation to obtain the position information of the target matrix element data in the enhanced image matrix, thereby improving the accuracy and efficiency of HIV antigen detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0040] Figure 1 This is a schematic diagram of the process of the neural network-based HIV antigen detection method according to Example 1 of the present invention.
[0041] Figure 2 This is a schematic diagram of using a fluorescence imaging device to obtain an original image containing a fluorescence signal according to the present invention.
[0042] Figure 3 The figure is a schematic diagram of the process of forming the pixel matrix, the position component matrix and the color component matrix in step S1 of the present invention.
[0043] Figure 4 It is a schematic diagram of cutting an image into multiple image blocks according to the present invention.
[0044] Figure 5 Schematic diagram of target pixel elements in the target pixel matrix of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] In the drawings of the specific embodiments of the present invention, in order to better and more clearly describe the working principles of the various components in the system, the connection relationship of the various parts in the device is shown, which only clearly distinguishes the relative position relationship between the various components, and cannot constitute a limitation on the signal transmission direction, connection sequence and size, dimensions and shape of the components or structures.
[0047] Example 1
[0048] like Figure 1 FIG. 1 is a schematic diagram of a process flow of a neural network-based HIV antigen detection method of the present invention, wherein the HIV antigen detection method comprises the following steps:
[0049] Step S1: Acquire multiple original images containing fluorescent signals of the sample and antibody reaction, cut each original image into multiple image blocks, form a pixel matrix corresponding to the multiple image blocks, and project the pixel matrix into a position component matrix and a color component matrix.
[0050] Collect liquid samples, combine the processed liquid samples with HIV antigens, add fluorescent markers, and the fluorescent markers can combine with the previous antibodies to mark the location of the HIV antigens.
[0051] Use a fluorescence microscope or fluorescence imaging device to observe the fluorescent signals in the sample, which will show the location and amount of HIV antigens. Figure 2 As shown, a fluorescence imaging device is used to acquire an original image containing a fluorescence signal.
[0052] like Figure 3 As shown, step S1 specifically includes:
[0053] S11. Preprocessing the original image containing the fluorescence signal.
[0054] De-noise the original image containing the fluorescence signal to reduce the noise interference in the image. Adjust the contrast and brightness of the image to make the antigen detection fluorescence signal more prominent. The brightness of the immunofluorescence image is usually proportional to the expression level of the antigen. Therefore, by comparing the brightness of the images under different cells or different conditions, the expression level of the antigen can be evaluated.
[0055] S12, cutting each preprocessed image into multiple image blocks to form a pixel sequence of the image blocks, and combining the pixel sequences of the multiple image blocks into a pixel matrix Q of M×N size.
[0056] like Figure 4 , the preprocessed image is cut into N image blocks, and the pixel sequences of the image blocks are shown. These image blocks can be of fixed size or can be dynamically divided based on the image content, such as the intensity or distribution of the fluorescent signal. Each image block represents a local area of the image.
[0057] set up Represents the i-th image x i The pixel sequence of the image block formed after cutting, N represents the total number of cut image blocks, Represents image x i The pixel data of the j-th image block after cutting.
[0058] The pixel sequences of the image blocks of the M images are combined into a pixel matrix Q of size M×N, as shown below:
[0059] ;
[0060] Each row in the pixel matrix Q represents a pixel sequence of N image blocks of the same image, and the jth column represents a sequence of pixel data of the jth image block of M images. Each element in the pixel matrix Q corresponds to pixel data of an image block, and preferably, the pixel data includes color data, brightness data, etc. of the pixels of the image block.
[0061] S13. Project the pixel matrix into a position component matrix and a color component matrix.
[0062] Represents the pixel sequence of the above image block The corresponding position component sequence, Represents the position component of the j-th image block of the ith image.
[0063] The position component sequences of the M images are combined into a position component matrix E of size M×N, as shown below:
[0064] ;
[0065] Each row in the position component matrix E represents a sequence of position components of N image blocks of the same image, and the jth column represents a sequence of position components of the jth image block of M images. The position component matrix contains the position information of the pixels of the image block, preferably by calculating the coordinates of the center point of each image block.
[0066] Represents the pixel sequence of the above image block The corresponding color component sequence, Represents the color component of the j-th image block of the i-th image.
[0067] The color component sequences of the M images are combined into a color component matrix W of size M×N, as shown below:
[0068] ;
[0069] Each row in the color component matrix W represents a sequence of color components of N image blocks of the same image, and the jth column represents a sequence of color components of the jth image block of M images. The color component matrix is used to represent the color value of a pixel. Preferably, the color component includes brightness, contrast, hue, saturation, etc. of the pixel.
[0070] S2. Reconstruct the pixel matrix according to the position component matrix and the color component matrix, and convert the pixel matrix of the original image into an enhanced image matrix.
[0071] The pixel matrix Q is reconstructed according to the color component matrix W and the position component matrix E. The color component matrix W is dot-multiplied by the position component matrix E to obtain the dot product matrix. The quotient of the dot product matrix and the square root of the dimension of the position component matrix E is calculated to obtain the quotient matrix. The quotient matrix is normalized to obtain the normalized matrix. Finally, the dot product of the normalized matrix and the pixel matrix Q is calculated to obtain the enhanced image matrix Z.
[0072] ;
[0073] in, and is the transposed matrix of the position component matrix E, is the dimension of the position component matrix E.
[0074] This step realizes the reconstruction of the position component and color component of the pixel matrix to create an enhanced effect of the image.
[0075] Step S3: Input each matrix element data of the enhanced image matrix into the convolutional neural network for differentiation operation to obtain the position information of the target matrix element data in the enhanced image matrix.
[0076] Each matrix element data of the enhanced image matrix Z As input data, it is fed into the convolutional neural network for differentiation operation. Represents the matrix element data of the I-th row and the J-th column of the enhanced image matrix.
[0077] Through convolutional neural network operations, deeper features in the enhanced image matrix are discovered, making the results of antigen testing more accurate.
[0078] The convolutional neural network is used express, Represents the neural network parameters, and each matrix element data As input data U, convolutional neural network The expression is:
[0079] ;
[0080] Convolutional Neural Networks Weighs the true input data and known target data The difference between the two, when the convolutional neural network The lower the output value, the smaller the difference between the real input data and the known target data, and the convolutional neural network is derived. The output value of the target matrix element data within the threshold range , extract matrix element data The row number I and column number J of the target matrix element data are obtained, that is, the location of the target matrix element data is located in the Ith row and the Jth column in the enhanced image matrix.
[0081] In this step, the row number I and column number J are extracted from the target matrix element data outputted after being limited by the threshold. The setting of this threshold represents the probability that a specific matrix element data is determined to be the target matrix element data. The selection of the threshold is based on the performance evaluation results of the convolutional neural network to ensure that while retaining enough useful information, the matrix element data that does not meet the target is filtered out.
[0082] In a preferred embodiment, after the convolutional neural network is designed, it is necessary to use labeled data to train the convolutional neural network. These labeled data include the location information of the enhanced image matrix and the corresponding target matrix element data. During the training process, the convolutional neural network self-learns how to predict the location of the target based on the input enhanced image matrix. During the training process, the convolutional neural network will perform forward propagation to calculate the predicted output and compare it with the true label. The neural network parameters of the convolutional neural network are then updated through back propagation and differentiation operations to minimize the prediction error. Once the convolutional neural network training is completed, the new enhanced image matrix is input into the convolutional neural network, and the location information of the target matrix elements in the enhanced image matrix is obtained through the forward propagation of the convolutional neural network.
[0083] Example 2
[0084] In Example 1, step S3 inputs each matrix element data of the enhanced image matrix into the convolutional neural network for differentiation operation to obtain the position information of the target matrix element data in the enhanced image matrix. In this process, in order to more intuitively obtain the position information of the image block of the original image corresponding to the target matrix element data, it is necessary to perform an inverse reconstruction operation, that is, to perform an inverse operation on the reconstruction operation of step S2 of Example 1.
[0085] Convolutional neural network derived from step S3 in embodiment 1 The output value of the matrix element data is within the threshold range , since the target matrix element data within the threshold range The number of elements in the enhanced image matrix Z is less than the total number of elements in the image matrix Z, so it is necessary to convert multiple target matrix element data into Expand to a matrix of size M×N, fill the missing matrix elements with 0, and get the target matrix of size M×N , the target matrix Perform the inverse reconstruction operation as shown in the following formula:
[0086] ;
[0087] but That is, after the inverse reconstruction operation, the target matrix Corresponding target pixel matrix, export target pixel matrix The target pixel element at a non-zero position in The row number i and column number j,i,j of represent the jth image block of the i-th image, such as Figure 5 As shown, i=3 represents the third image, j=2 and 3 represent the second and third image blocks, thereby achieving mapping back to the position in the original image, that is, the second and third image blocks of the third image are the target reaction areas, and it can be determined that the second and third image blocks of the third image are most likely to contain HIV antigen reactions.
[0088] Example 3
[0089] This embodiment 3 mainly performs antigen detection on the original image of weak fluorescence signals in low-concentration samples. On the basis of step S11 of the technical solution of embodiment 1, the original image of the weak fluorescence signal is subjected to signal enhancement preprocessing, the digital image signal of the original image containing the weak fluorescence signal is collected, the intensity of the interference noise in the background area is reduced, and the fluorescence signal enhanced image is obtained, which specifically includes:
[0090] The digital image signal F(x,y) of the original image of the weak fluorescence signal is collected in the low-concentration sample and decomposed into the background image L(x,y) and the signal image R(x,y):
[0091] F(x,y)=R(x,y)L(x,y);
[0092] Separate the signal image R(x,y) into three channels: R, G, and B to obtain the color channel image R R (x,y),R G (x,y) and R B (x,y).
[0093] For different color channel images, the process may continue to step S12 of embodiment 1, and according to actual detection needs, for the color channel image of the key color, for example, for the color channel image R R (x,y) or R G (x,y) or R B (x, y) is cut into multiple image blocks to form a pixel sequence of the image blocks, and the pixel sequences of the multiple image blocks are combined into a pixel matrix Q of M×N size.
[0094] In this embodiment 3, background light filtering is achieved, and image enhancement and antigen detection processing are performed with emphasis on the signal image portion, which can effectively improve the visibility of weak fluorescence signals in low-concentration samples and provide a more reliable basis for subsequent image analysis and differential analysis.
[0095] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0096] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for HIV antigen detection based on neural network, It is characterized in that The steps include: S1. Obtain M original images containing fluorescence signals of the sample and the antibody reaction, cut the pre-processed images into N image blocks to form a pixel sequence of the image blocks, set up Represents the i-th image x i The pixel sequence of the image block formed after cutting, Represents image x i The pixel data of the j-th image block after cutting, The pixel sequences of the image blocks of the M images are combined into a pixel matrix Q of size M×N, as shown below: ; Each row in the pixel matrix Q represents a pixel sequence of N image blocks of the same image, and the jth column represents a sequence of pixel data of the jth image block of M images; Project the pixel matrix into a position component matrix and a color component matrix; S2. Reconstruct the pixel matrix according to the position component matrix and the color component matrix, and convert the pixel matrix of the original image into the enhanced image matrix Z: ; Among them, W is the color component matrix, E is the position component matrix, Q is the pixel matrix, and is the transposed matrix of the position component matrix E, is the dimension of the position component matrix E; S3. Input each matrix element data of the enhanced image matrix into the convolutional neural network for differentiation operation to obtain the position information of the target matrix element data in the enhanced image matrix.
2. The method for HIV antigen detection based on neural network according to claim 1, It is characterized in that In step S3, the convolutional neural network is used express, Represents the neural network parameters, and each matrix element data As input data U, convolutional neural network The expression is: ; Convolutional Neural Networks Weighing input data against known target data The difference between them derives the convolutional neural network The output value of the target matrix element data within the threshold range , extract matrix element data The row number I and column number J of the target matrix element data are obtained, and the location is located in the Ith row and the Jth column in the enhanced image matrix.
3. The method for HIV antigen detection based on neural network according to claim 1, It is characterized in that The step S1 comprises: S11, preprocessing the original image containing the fluorescence signal; S12, cutting each preprocessed image into multiple image blocks to form a pixel sequence of the image blocks, and combining the pixel sequences of the multiple image blocks into a pixel matrix; S13. Project the pixel matrix into a position component matrix and a color component matrix.
4. The neural network-based HIV antigen detection method according to claim 3, It is characterized in that In step S13, represents a position component sequence corresponding to a pixel sequence of the image block, represents the position component of the jth image block of the ith image, Combine the position component sequences of M images into an M×N position component matrix E: ; Each row in the position component matrix E represents a sequence of position components of N image blocks of the same image, and the j-th column represents a sequence consisting of position components of the j-th image block of M images.
5. The method for HIV antigen detection based on neural network according to claim 4, It is characterized in that In step S13, represents a color component sequence corresponding to a pixel sequence of the image block, represents the color component of the jth image block of the i-th image, Combine the color component sequences of M images into a color component matrix W of size M×N: ; Each row in the color component matrix W represents a sequence of color components of N image blocks of the same image, and the j-th column represents a sequence of color components of the j-th image block of M images.
