A high-field asymmetric ion migration spectrum classification and identification method, device and equipment

By using dynamic spectra and multi-scale spatial information fusion methods in high-field asymmetric ion mobility spectroscopy technology, the problems of information loss and noise interference are solved, and the robustness and efficiency of the model are improved.

CN113673612BActive Publication Date: 2024-10-29HENAN AGRICULTURAL UNIVERSITY
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202110981213.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-25
Publication Date
2024-10-29
Estimated Expiration
2041-08-25

AI Technical Summary

Technical Problem

Existing high-field asymmetric ion mobility spectrometry technology has problems in biological sample detection such as loss of stable spectrum information, redundant information and noise interference in the ineffective detection space, and large image feature dimensions and high redundancy, resulting in poor model robustness. .

Method used

Using a method based on dynamic spectra and multi-scale airspace information fusion, features are extracted through small, medium and global scale airspaces respectively, and feature fusion is performed to establish a multi-scale information fusion classification and identification model for high-field asymmetric ion migration spectra. classification identification.

Benefits of technology

It effectively integrates multi-scale information in dynamic maps, reduces information loss and noise interference, reduces model establishment overhead, and improves the robustness of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113673612B_ABST
    Figure CN113673612B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for classifying and identifying high-field asymmetric ion migration spectra, which is based on a technical route of dynamic spectra of detection samples and multi-scale spatial information fusion of the spectra, including: repeatedly measuring each detection sample to obtain a set of spectrum samples to obtain all dynamic spectra, and each type of detection sample contains multiple known samples used as training data; extracting features in multi-scale spatial domains based on all dynamic spectra of each detection sample; fusing features based on the features extracted in multi-scale spatial domains to obtain multi-scale fusion features; establishing a classification and recognition model of multi-scale information fusion based on multi-scale fusion features; and classifying and identifying high-field asymmetric ion migration spectra based on the classification and recognition model. A corresponding device is also disclosed, and the method and device perform adaptive FAIMS spectrum classification and recognition, and effective information is not lost; redundant information and noise interference are small, model establishment overhead is small, and robustness is strong.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of gas phase detection technology, and in particular to a high-field asymmetric ion migration spectrum classification and identification method, device and electronic equipment based on dynamic spectrum and multi-scale spatial domain information fusion. Background Art

[0002] Field Asymmetric Ion Mobility Spectrometry (FAIMS) is a gas phase detection technology with high detection sensitivity and fast detection speed, which has been widely used in food, medical, public safety and other fields. The FAIMS spectrum obtained by this technology for the test sample is a grayscale spectrum composed of several ion mobility spectrum lines, that is, the dispersion field (DF) spectrum. At present, when using FAIMS technology to detect biological samples, it is usually necessary to repeatedly collect several spectra for a test sample. These spectra are called dynamic spectra of the sample. Then one or two stable spectra are selected from the dynamic spectrum as the analysis spectra of the current sample. These selected spectra are called steady-state spectra. At the same time, the entire spectrum or a specific dispersion field curve in the spectrum is generally used for analysis. In addition, general image texture feature extraction methods, such as Local Binary Pattern (LBP) and Gray Level Co-occurrence Matrix (GLCM), are widely used to extract information features from FAIMS spectra. These image features are used as the data basis for subsequent data analysis modeling.

[0003] However, the above common approach has the following disadvantages:

[0004] 1) Only the stable spectrum of the test sample is used for analysis, which may cause the loss of information of other unstable spectrum;

[0005] 2) Using the entire spectrum for analysis is prone to being interfered by redundant information and noise in the non-effective detection space. Using a specific dispersion field curve may cause the loss of effective information of other spectral lines.

[0006] 3) General image features have the disadvantages of large feature dimension and high feature redundancy, which leads to high overhead of subsequent model establishment and poor robustness of the established model. Summary of the invention

[0007] The present invention provides a high-field asymmetric ion migration spectrum classification and recognition method, device and electronic equipment based on dynamic spectrum and multi-scale spatial domain information fusion, wherein the method is based on the dynamic spectrum of the detected sample (all spectra of a biological sample), and integrates the effective recognition information of the multi-scale spatial domain on the spectrum, thereby providing an adaptive FAIMS spectrum classification and recognition method.

[0008] According to a first aspect of the present invention, a high-field asymmetric ion mobility spectrum classification and recognition method is provided, the method is based on detecting a dynamic spectrum of a sample and performing multi-scale spatial information fusion on the spectrum, comprising:

[0009] For the classification and recognition task of detecting negative and positive test samples, each test sample is repeatedly measured to obtain a set of spectrum samples to obtain the entire dynamic spectrum. Each type of test sample contains multiple known samples used as training data;

[0010] Based on the dynamic graph of each of the negative and positive detection samples, extract features in a multi-scale spatial domain respectively;

[0011] Perform feature fusion based on the features extracted in multi-scale spatial domains to obtain multi-scale fusion features;

[0012] Establishing a classification and recognition model of multi-scale information fusion based on the multi-scale fusion features;

[0013] High-field asymmetric ion migration spectra are classified and identified based on the classification and identification model.

[0014] Preferably, the extracting features in multi-scale airspaces based on the entire dynamic graph of each of the negative and positive detection samples includes: extracting features F in a small-scale airspace S , extract feature F in the mesoscale space M And extract features F in the global scale space G .

[0015] Preferably, extracting features in a small-scale spatial domain includes:

[0016] Calculating the average ion response intensity of each dynamic spectrum on each image block formed in the small-scale airspace as the original feature of each dynamic spectrum on the current image block;

[0017] Clustering all the dynamic graphs expressed by the original features of each detection sample on each image block to obtain a response area of ​​each detection sample on each image block;

[0018] For each detection sample, the image block with the best discrimination is selected, and the alarm count feature of each detection sample in the small-scale airspace is established and extracted;

[0019] The alarm number feature of each detection sample is sent to the learner for training, and a classification and discrimination model at a small scale is obtained through learning. The expression of the sample in the classification and discrimination model at a small scale is a small-scale spatial domain feature.

[0020] Preferably, extracting features in the mesoscale spatial domain includes:

[0021] On each image block formed in the mesoscale spatial domain, different texture filters are used for each dynamic atlas of each detection sample to extract the texture features of each atlas sample block, wherein the texture features are represented by real values;

[0022] Clustering a group of the texture features of each detection sample respectively, taking the cluster containing the largest number of texture features as the largest cluster, and taking the average value of the texture features contained in the largest cluster as the texture feature of the detection sample in the current image block;

[0023] Select multiple image blocks with the highest discriminability and their corresponding texture features based on a feature selection algorithm;

[0024] The texture features of the detection samples are sent to a learner for training, and a mesoscale classification and discrimination model is obtained through learning. The expression of the samples in the mesoscale classification and discrimination model is a mesoscale spatial domain feature.

[0025] Preferably, extracting features in the global scale space domain includes:

[0026] Calculate the mean spectrum of the dynamic spectrum of a test sample;

[0027] Extracting image texture features on the mean atlas;

[0028] The image texture features of the detection samples are sent to the learner for training, and a classification and discrimination model at a global scale is learned. The expression of the samples in the model is the global scale spatial domain feature.

[0029] Preferably, the step of fusing features extracted from the multi-scale spatial domain to obtain multi-scale fusion features includes: using a feature selection algorithm to select multi-scale fusion features from the union of model feature sets obtained at the small scale, the middle scale, and the global scale, including:

[0030] The obtained multi-scale spatial features are spliced ​​to obtain the spliced ​​feature set {F S , F M , F G};

[0031] Using the Fisher interval measure in linear discriminant analysis as a feature selection method, from {F S , FM , F G} Select the optimal feature combination, which is the multi-scale spatial domain fusion feature F Fusion .

[0032] Preferably, the establishing of a multi-scale information fusion classification and recognition model based on the multi-scale fusion features includes:

[0033] Use the multi-scale spatial fusion features of the detection samples, send them to the classification learner for learning, and establish a multi-scale fusion model M Fusion .

[0034] According to a second aspect of the present invention, a high-field asymmetric ion mobility spectrum classification and identification device is provided, the device is based on dynamic spectrum and multi-scale spatial domain information fusion, comprising:

[0035] The dynamic spectrum acquisition module is used for the classification and recognition tasks of two types of test samples, negative and positive. Each test sample is repeatedly measured to obtain a set of spectrum samples to obtain all dynamic spectrums. Each type of test sample contains multiple known samples used as training data;

[0036] A feature extraction module, for extracting features in a multi-scale spatial domain based on the entire dynamic graph of each of the negative and positive detection samples;

[0037] A feature fusion module is used to fuse features extracted from multi-scale spatial domains to obtain multi-scale fusion features;

[0038] A classification and recognition model building module is used to build a classification and recognition model of multi-scale information fusion based on the multi-scale fusion features;

[0039] A classification and recognition module is used to perform classification and recognition of high-field asymmetric ion migration spectra based on the classification and recognition model.

[0040] According to a third aspect of the present invention, there is provided an electronic device, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is configured to read the plurality of instructions and execute the method as described in the first aspect.

[0041] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor to execute the method described in the first aspect.

[0042] The high-field asymmetric ion migration spectrum classification and recognition method based on dynamic spectrum and multi-scale spatial domain information fusion provided by the present invention is based on the dynamic spectrum of the detected sample (all spectra of a biological sample), and integrates the effective recognition information of the multi-scale spatial domain on the spectrum to perform adaptive FAIMS spectrum classification and recognition without losing other unstable spectrum information and other spectral line effective information; the redundant information and noise interference are small, the model establishment overhead is small, and the established model has strong robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flowchart of an embodiment of a high-field asymmetric ion migration spectrum classification and identification method based on dynamic spectrum and multi-scale spatial information fusion provided by the present invention.

[0044] Figure 2 A discrimination model based on Gaussian minimum misjudgment probability is provided for an embodiment of a high-field asymmetric ion migration spectrum classification and recognition method based on dynamic spectrum and multi-scale spatial information fusion provided by the present invention.

[0045] Figure 3 A schematic diagram of the principle of classifying and distinguishing T and B samples according to an embodiment of a high-field asymmetric ion migration spectrum classification and recognition method based on dynamic spectrum and multi-scale spatial information fusion provided by the present invention.

[0046] Figure 4 Schematic diagram of eight texture filters of an embodiment of a high-field asymmetric ion migration spectrum classification and recognition method based on dynamic spectrum and multi-scale spatial information fusion provided by the present invention, wherein the parameters can be further defined.

[0047] Figure 5 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0048] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0049] refer to Figure 1In some embodiments, a method for classifying and identifying a high-field asymmetric ion mobility spectrum is provided. The method is based on a dynamic spectrum of a detection sample and multi-scale spatial information fusion of the spectrum, including: for the classification and identification tasks of detecting two types of detection samples, negative and positive, each detection sample is repeatedly measured to obtain a set of spectrum samples to obtain all dynamic spectra, and each type of detection sample contains multiple known samples used as training data; based on the dynamic spectrum of each negative and positive detection sample, features are extracted respectively in a multi-scale spatial domain; based on the features extracted respectively in the multi-scale spatial domain, feature fusion is performed to obtain multi-scale fusion features; based on the multi-scale fusion features, a classification and identification model of multi-scale information fusion is established; and based on the classification and identification model, classification and identification of the high-field asymmetric ion mobility spectrum is performed.

[0050] The method is based on detecting the dynamic graph of the sample and fusing the graph with multi-scale spatial information, including:

[0051] For the classification and recognition task of detecting negative and positive test samples, each test sample is repeatedly measured to obtain a set of spectrum samples to obtain the entire dynamic spectrum. Each type of test sample contains multiple known samples used as training data;

[0052] Based on the dynamic graph of each of the negative and positive detection samples, extract features in a multi-scale spatial domain respectively;

[0053] Perform feature fusion based on the features extracted in multi-scale spatial domains to obtain multi-scale fusion features;

[0054] Establishing a classification and recognition model of multi-scale information fusion based on the multi-scale fusion features;

[0055] High-field asymmetric ion migration spectra are classified and identified based on the classification and identification model.

[0056] As a preferred embodiment, the extracting features in the multi-scale airspace based on the entire dynamic graph of each of the negative and positive detection samples includes: extracting features F in the small-scale airspace S , extract feature F in the mesoscale space M And extract features F in the global scale space G .

[0057] As a preferred implementation, the feature extraction in a small-scale spatial domain (such as a 2×2 image block in this embodiment) includes:

[0058] Calculating the average ion response intensity of each dynamic spectrum on each image block as the original feature of each dynamic spectrum on the current image block;

[0059] Clustering all the dynamic graphs expressed by the original features of each detection sample on each image block to obtain a response area of ​​each detection sample on each image block;

[0060] For each detection sample, the image block with the best discrimination is selected, and the alarm count feature of each detection sample in the small-scale airspace is established and extracted;

[0061] The alarm number feature of each detection sample is sent to the learner for training, and a classification and discrimination model at a small scale is obtained through learning. The expression of the sample in the classification and discrimination model at a small scale is a small-scale spatial domain feature.

[0062] See also Figure 2 The following is a discriminant model based on Gaussian minimum misclassification probability. For all valid cluster samples X of class B and a set of valid cluster samples Y of class T, first calculate their respective expectations μ X ,μ Y and variance σ X ,σ Y .

[0063] To find a decision point p, for a new unknown sample point x, there are the following decision rules:

[0064]

[0065] When μ X >μ Y .

[0066] Then the misjudgment probability ER of x is:

[0067]

[0068] make get

[0069]

[0070]

[0071] Formula (7) has two solutions p1 and p2 as follows:

[0072]

[0073]

[0074] Take the one located at μ X and μ Y The solution between them is the decision point p.

[0075] As a preferred implementation, the feature extraction in the mesoscale spatial domain (such as the 4×4 image block in this embodiment) includes:

[0076] On each image block, different texture filters are used for each dynamic atlas of each detection sample to extract the texture features of each atlas sample block, wherein the texture features are represented by real values;

[0077] Clustering a group of the texture features of each detection sample respectively, taking the cluster containing the largest number of texture features as the largest cluster, and taking the average value of the texture features contained in the largest cluster as the texture feature of the detection sample in the current image block;

[0078] Select multiple image blocks with the highest discriminability and their corresponding texture features based on a feature selection algorithm;

[0079] The texture features of the detection samples are sent to a learner for training, and a mesoscale classification and discrimination model is obtained through learning. The expression of the samples in the mesoscale classification and discrimination model is a mesoscale spatial domain feature.

[0080] As a preferred implementation, extracting features in the global scale spatial domain includes:

[0081] Calculate the mean spectrum of the dynamic spectrum of a test sample;

[0082] Extracting image texture features (such as LBP and / or GLCM) on the mean map;

[0083] The image texture features of the detection samples are sent to the learner for training, and a classification and discrimination model at a global scale is learned. The expression of the samples in the model is the global scale spatial domain feature.

[0084] 1. LBP (Local binary patterns): Local binary patterns (structural method)

[0085] Principle: Compare the eight neighboring pixels of a pixel with the value of the central pixel, set the greater than relationship to 1, and the less than relationship to 0, so as to obtain a grid with neighborhood values ​​1 and 0. Arrange these eight values ​​into a binary number according to certain rules, and convert them into decimal as the grayscale value of the central pixel. Perform this operation on each pixel to obtain the LBO feature of the image.

[0086] Process: First, an image is divided into 256 sub-images, and then each pixel of each sub-image is compared with the 8-neighborhood pixel values. A value greater than the center pixel value is recorded as 1, and a value less than the center pixel value is recorded as 0, thereby obtaining an 8-bit binary value. In other words, each sub-image has a maximum of 256 binary values. In this way, each pixel of each sub-image will have a binary value. After converting it to decimal, the LBP histogram of each sub-image is obtained. The histograms of each sub-image are superimposed to obtain the global LBP histogram.

[0087] form:

[0088] (1) Square neighborhood: The values ​​of the eight pixels in the square neighborhood of the central pixel are compared. If it is greater than 1, it is 1, and if it is less than 0, it is calculated clockwise from the upper left corner to get an 8-bit binary value, which is converted to decimal as the grayscale value of the central pixel.

[0089] (2) Circular neighborhood: The values ​​of the eight pixel grids in the circular radius neighborhood of the central pixel are compared. If it is greater than 1, it is 1, and if it is less than 0, it is calculated clockwise from the top to get an 8-bit binary value, which is converted to decimal as the grayscale value of the central pixel. Sometimes the eight points may fall on the boundary of the pixel grid, in which case bilinear interpolation is required to obtain the pixel value.

[0090] (3) Equivalent mode: It is divided into two categories according to the 8-bit binary. The first category is the equivalent mode class, in which the conversion of LBP binary 1 and 0 is only 2 times or less; the second category is the mixed mode class, in which the conversion of LBP binary 1 and 0 is wrapped twice.

[0091] Types of textures:

[0092] (1) 256 categories: There are 8 grids in the neighborhood, and each grid has two choices, so there are a total of 256 combinations;

[0093] (2) 58 categories: Due to the existence of equivalent patterns, there are only 58 categories.

[0094] Solution steps:

[0095] (1) Divide the image into 16*16 small blocks (thus dividing the image into 256 small images);

[0096] (2) For a pixel in each cell, the grayscale values ​​of the 8 adjacent pixels are compared with it. If the surrounding pixel value is greater than the central pixel value, the position of the pixel is marked as 1, otherwise it is marked as 0. In this way, the 8 points in the 3*3 neighborhood can generate an 8-bit binary number after comparison, that is, the LBP value of the central pixel of the window. For the edge pixels, the zero padding operation is used to solve it. Note that for each small area, there are 256 types of LBP values, but because of the equivalent mode, there are only 58 types, that is, the horizontal axis of the histogram is 0-58, so the LBP feature vector of the whole image is also 58 types.

[0097] (3) The LBP values ​​in each region are counted in a histogram (ranging from 0 to 256) and the histogram is normalized, that is, divided by the total number of grayscale values;

[0098] (4) Thus, the histogram of 256 small areas is obtained;

[0099] (5) The histogram of the 256 small areas is converted into a feature vector, that is, encapsulated in a vector, so that the LBP texture feature vector of the entire image is obtained, and the image can be described by the texture vector;

[0100] (6) Use the classifier to classify the LBP texture feature vector of the entire image.

[0101] advantage:

[0102] It has good robustness to lighting, that is, it is not greatly affected by lighting; it can be effectively distinguished.

[0103] 2. Gray-level co-occurrence matrix (GLCM)

[0104] Definition: It belongs to the statistical method and is used to describe the joint probability of two pixel values ​​​​appearing at the same time with a distance d between them.

[0105] Concepts involved:

[0106] (1) Step size n: distance from the center pixel (x, y) (number of pixels);

[0107] (2) Direction a: four directions, namely 0°(0, d)(x, y+d); 45°(d, -d)(x+d, yd); 90°(d, 0)(x+d, y); 135°(-d, d)(xd, yd);

[0108] (3) Matrix order: The maximum grayscale value of the image. For example, for an 8-bit grayscale image, the maximum grayscale level is 256, so the shape of the co-occurrence matrix is ​​256*256.

[0109] Solution steps:

[0110] (1) Determine the grayscale level n*n of the image;

[0111] (2) Determine the matrix order n;

[0112] (3) Determine direction and step length;

[0113] (4) counting the frequency of pixel pairs of adjacent pixel pairs according to a given method;

[0114] (5) Convert the frequency into frequency, that is, probability.

[0115] Texture feature extraction:

[0116] (1) Angular second-order moment (energy) ASM: measures whether the grayscale distribution is uniform, whether the texture is coarse or fine, uniform and fine, with large values;

[0117] (2) The linear relationship between row and column grayscale is large, and the value is large;

[0118] (3) Contrast CON: The sharper the edge, the greater the color difference, and the larger the value;

[0119] (4) Difference DISL: The greater the local contrast, the larger the value;

[0120] (5) Entropy ENT: The greater the complexity of the image, the greater the value;

[0121] (6) HOMO: The clarity and regularity of image texture. The clearer and more regular the texture, the larger the HOMO value.

[0122] significance:

[0123] The performance of the correlation between adjacent pixels, the diagonal elements of the co-occurrence matrix reflect the degree of grayscale change. When the diagonal is biased towards 0, the grayscale repetition in the specified direction is small and the change is large. When the diagonal element value deviates from 0, the change is small.

[0124] The method is simple and easy to implement. The GLCM method is an effective method for workers and has strong adaptability and robustness.

[0125] 3. Texture feature extraction method integrating LBP and GLCM

[0126] In order to extract effective features for texture description and classification, a texture feature extraction method combining local binary pattern (LBP) and gray level co-occurrence matrix (GLCM) was adopted. The texture image was processed with the rotation invariant LBP operator to obtain the LBP image and its GLCM. Contrast, correlation, energy and inverse moment were used to describe the texture features of the image.

[0127] As a preferred implementation, the feature fusion based on the features extracted respectively in the multi-scale spatial domain to obtain the multi-scale fusion feature includes: using a feature selection algorithm to select the multi-scale fusion feature from the union of the model feature sets obtained at the small scale, the middle scale, and the global scale.

[0128] In this embodiment, it is assumed that there are currently M known detection samples with a total size of m 256*256 original atlas samples, including M (n) Cumulative number of known negative test samples m (n) Negative sample spectrum and M (p) m of known positive test samples (p) Each negative test sample S Nk Contains m Nk Each positive test sample S Pl Contains m Pl Spectra, k = 1, 2, ..., M (n) ; l=1,2,…,M (p) .

[0129] Step 1: Multi-scale spatial feature extraction

[0130] 1) Extract small-scale spatial features F S

[0131] A: Use 2*2 as the image block size to divide the original image into grids;

[0132] B: Extract the average ion response intensity MRV(b) of each spectrum according to formula (6) on each block b;

[0133]

[0134] In formula (6), N b represents the number of pixels in block b, I(i,j) represents the ion response value at the i-th row and j-th column in the image, and A b Indicates the area contained by block b.

[0135] C: In each block, the MRVs of all the spectra of each detected sample are clustered. This embodiment uses the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm for clustering.

[0136] Since DBSCAN does not need to specify the number of clusters, it is suitable for the clustering requirements in this method. For the minimum cluster distance parameter Eps in DBSCAN, the usual practice is to set a fixed hard parameter. Since the minimum cluster distances of different samples on different blocks can vary greatly, using hard parameters will result in very inaccurate clustering. Therefore, this embodiment proposes a method for adaptively setting Eps.

[0137] C1: Arrange the MRV sequence of a certain test sample in ascending order according to the MRV value;

[0138] C2: In the sorted MRV sequence, starting from the second MRV point, each MRV point is subtracted from the previous adjacent MRV point in turn, that is, the difference of the MRV sequence is made to obtain the distance sequence Dis of the MRV sequence;

[0139] C3: Iteratively use Grubbs's test to remove outliers from the distance sequence DT;

[0140] C4: Calculate the mean DT of the distance sequence DT after removing outliers mean ;

[0141] C5:Eps=k*DT mean ;

[0142] The parameter k can be set based on experience, and its value can generally be between 2 and 3. The assumption that the cluster distance follows a Gaussian distribution is implicitly used here. When k = 3, according to the Laida criterion, the minimum cluster distance contains 99.73% of the samples in the population. The value of parameter k can be adjusted according to the specific situation.

[0143] D: Use alternating similarity metrics to extract small-scale graph features, including:

[0144] D1: Take the negative test samples as the base class (class B) and the positive test samples as the standard class (class T);

[0145] D2: Calculate the similarity of the B-class detection samples on each block according to formula (7);

[0146]

[0147]

[0148] Among them, I J (b) represents the similarity of block b, M represents the number of samples tested, and C i,b represents the number of effective clusters of the ith subject in class B on block b; represents the jth valid cluster of the i-th subject in class B on block b, j = 1, 2, ..., Ci,b J represents the Jaccard coefficient, which is calculated according to formula (8), where E and F represent two continuous intervals, │E∩F│ represents the length of the intersection of the two intervals, │E∪F│ represents the length of the union of the two intervals, and J(E,F) measures the degree of overlap between the two intervals.

[0149] D3: Similarity I J Set the threshold TH J , TH J ∈[0,1], in this embodiment, TH is set J = 0.8 to exclude blocks with similarity below the threshold;

[0150] D4: Determine the valid cluster list for each T-class detection sample in the block obtained in D3;

[0151] like Figure 3 As shown in the figure, suppose that there is a certain T-class detection sample that forms two clusters T1 and T2 on a certain block. It is known that there are two B-class detection samples B1 and B2 in the sample. Region B is the union of the cluster intervals of all B-class detection samples. Region T1 and Region T2 are the cluster intervals of the first and second T-class detection samples, respectively. Bdist 1 and Bdist 2 are the absolute boundary distances from the corresponding T-class detection sample cluster interval to Region B. p represents the decision point from a certain T-class cluster interval to Region B. Figure 2 Here, p1 and p2 are the decision points from T1 and T2 to Region B respectively.

[0152] First, we find the union of the cluster intervals of all detected samples in category B and get the category B region R B Then, according to formula (9), the effective clustering interval of a certain T-type detection sample is calculated to R B The relative distance R of the near end point dist ,

[0153] R dist =B dist / (σ(R T )+σ(R B )) (9)

[0154] Among them, B dist is the clustering interval of a certain T-type detection sample to R B The relative distance of the near end point, R T is a cluster of T-type detection samples, and the σ function represents the calculated standard deviation.

[0155] Then follow R dist Sort the clusters of each T-type test sample in descending order, excluding R dist Less than the threshold THRdist The clusters of the T-class detection samples are selected, and the repeated clusters belonging to the same block are deleted from top to bottom, and then the first several clusters of each T-class detection sample (such as the first 3, if less than 3, all clusters of the current T-class detection sample are selected) are selected to form a valid cluster list for each T-class detection sample.

[0156] D5: In the valid cluster list of each T-type detection sample, calculate the number of alarms of each detection sample on the block where each valid cluster is located;

[0157] In the valid cluster list, all clusters of the current B class are regarded as a group of cluster samples, and a valid cluster of the current T class is regarded as another group of cluster samples. Figure 2 The Gaussian minimum false positive probability discriminant model calculates the decision point p of the B-class and T-class clusters on the block, and thereby calculates the number of alarms for each detection sample.

[0158] For each detection sample in class B on the current block, if one of its clusters exceeds p and falls on the side of class T, the alarm number of the class B sample is recorded as 1; if one of its clusters does not exceed p and falls on the side of class T, the alarm number of the class B sample is recorded as 0. The alarm numbers of all clusters of each class B detection sample are accumulated as the alarm number of each class B detection sample.

[0159] For each detection sample in the T class on the current block, if one of its clusters exceeds p and falls on the side of the B class area, the alarm number of this cluster is recorded as 0 once; if one of its clusters does not exceed p and falls on the side of the B class area, the alarm number of this cluster is recorded as 1 once. Then, the alarm numbers of all clusters of each T class detection sample are accumulated respectively as the alarm number of each T class detection sample.

[0160] D6: further determine the alarm clusters and alarm blocks in the valid clusters;

[0161] Based on the number of alarms of a group of detection samples obtained in the valid cluster list for each T-type detection sample, the sum of the number of alarms of all T-type detection samples is subtracted from the sum of the number of alarms of all B-type detection samples to obtain the difference in the number of alarms of each T-type detection sample in a certain valid cluster.

[0162] Set the threshold TH of the alarm number difference warning , exclude the effective clusters below TH in each T class warning The remaining valid clusters are defined as alarm clusters, and the blocks they are located in are defined as alarm blocks.

[0163] D7: Add up the number of alarms for each detection sample on all alarm blocks to get a set of alarm numbers.

[0164] D8: Since the current T class is a positive detection sample, the current set of alarm times is recorded as T P Then let the positive detection samples be class B and the negative detection samples be class T, and repeat D2 to D7 to get another set of alarm times T N .

[0165] D9: Let T P The number of alarms for each detection sample in is subtracted from T N The number of alarms corresponding to the detection sample in the above example is used to obtain the final number of alarm features T. warning .

[0166] D10: The number of alarm features T of the detected sample warning Send it to the learner for training and learn the small-scale prediction model M S , extract the sample expression in the model as the small-scale feature of each detection sample. This embodiment uses LSSVM (Least Squares Support Vector Machine) classification learner for training, extracts latent variables (Latent Variable) from the learned small-scale prediction model as the final small-scale spatial domain feature F S .

[0167] 2) Extracting mesoscale spatial features F M ,include:

[0168] A: The original atlas is divided into grids with the image block size of 4*4;

[0169] B: If Figure 4 As shown, in view of the texture characteristics of the FAIMS atlas, this embodiment designs eight texture filters for 4*4 image blocks. Each texture filter is used to perform image convolution on each block of each atlas, thereby obtaining eight texture expressions of the test sample atlas, and in each expression, the atlas expression with a convolution value close to 0 is excluded.

[0170] C: For each set of atlases of each test sample, use the DBSCAN algorithm to cluster each texture expression on each block, and define the mean of the largest cluster (the cluster with the most atlas samples) of each texture expression as the texture feature of the current test sample on the current block. Thus, each test sample obtains eight texture features on each block.

[0171] D: Based on these eight texture features, a feature selection algorithm is used to find the optimal texture feature on each block, and then several blocks with the strongest classification and discrimination capabilities are selected. The optimal texture features on these blocks are concatenated in feature dimensions, and then the feature selection algorithm is used to select the optimal texture feature from them. This feature is the mesoscale texture feature.

[0172] D1: The Fisher interval measure in linear discriminant analysis is used as the feature selection method, that is, the separability of the sample under a certain feature expression is evaluated. Based on eight texture features, the separability of all possible feature combinations on each block is estimated, and the optimal feature combination and the maximum Fisher interval size on each block are determined.

[0173] D2: Select several blocks with the largest Fisher maximum interval, and combine the determined optimal features on these blocks to concatenate them on the feature dimension.

[0174] D3: Based on the concatenated feature set of the optimal feature combination of different blocks obtained in the previous step, the Fisher interval measure is used to further find the optimal feature combination in the concatenated feature set. This feature combination is the mesoscale texture feature.

[0175] E: Send the mesoscale texture features of the detected samples to the learner for training, and learn the mesoscale prediction model M M , extract the sample expression in the model as the mesoscale feature of each detection sample. This embodiment uses LSSVM classification learner for training, extracts latent variables (Latent Variable) from the learned mesoscale prediction model as the final mesoscale spatial domain feature F M .

[0176] 3) Extract global scale spatial features F G ,include:

[0177] A: First, find the mean spectrum of the dynamic spectrum of a test sample;

[0178] B: Then, the image texture features (such as LBP or GLCM) are extracted from the mean atlas of each detection sample as the global scale image texture features of each detection sample;

[0179] C: Send the global scale image texture features of the detection sample to the learner for training, and learn the global scale prediction model M G , extract the sample expression in the model as the global scale feature of each detection sample. This embodiment uses LSSVM classification learner for training, extracts latent variables (Latent Variable) from the learned global scale prediction model as the final global scale spatial domain feature F G .

[0180] Step 2: Multi-scale spatial feature fusion

[0181] A: The obtained multi-scale spatial domain features are spliced ​​to obtain the spliced ​​feature set {F S , F M , F G};

[0182] B: Using the Fisher interval measure in linear discriminant analysis as a feature selection method, from {F S , F M , F G} Select the optimal feature combination, which is the multi-scale spatial domain fusion feature F Fusion .

[0183] Step 3: Learning and building a multi-scale fusion model

[0184] The multi-scale spatial fusion features of the detection samples are sent to the LSSVM classification learner for learning, and a multi-scale fusion model M is established. Fusion .

[0185] According to a second aspect of the present invention, a high-field asymmetric ion mobility spectrum classification and identification device is provided, the device is based on dynamic spectrum and multi-scale spatial domain information fusion, comprising:

[0186] The dynamic spectrum acquisition module is used for the classification and recognition tasks of two types of test samples, negative and positive. Each test sample is repeatedly measured to obtain a set of spectrum samples to obtain all dynamic spectrums. Each type of test sample contains multiple known samples used as training data;

[0187] A feature extraction module, for extracting features in a multi-scale spatial domain based on the entire dynamic graph of each of the negative and positive detection samples;

[0188] A feature fusion module is used to fuse features extracted from multi-scale spatial domains to obtain multi-scale fusion features;

[0189] A classification and recognition model building module is used to build a classification and recognition model of multi-scale information fusion based on the multi-scale fusion features;

[0190] A classification and recognition module is used to perform classification and recognition of high-field asymmetric ion migration spectra based on the classification and recognition model.

[0191] refer to Figure 5 In some embodiments, an electronic device is also provided, including a processor 301 and a memory 302, wherein the memory 302 stores a plurality of instructions, and the processor 301 is used for a high-field asymmetric ion migration spectrum classification and recognition method based on dynamic spectrum and multi-scale spatial information fusion.

[0192] In some embodiments, a computer-readable storage medium is also provided, which stores multiple instructions, and the multiple instructions can be read by a processor to execute the above-mentioned high-field asymmetric ion migration spectrum classification and identification method based on dynamic spectrum and multi-scale spatial information fusion.

[0193] In summary, the high-field asymmetric ion mobility spectrometer classification and identification method, device and electronic device provided by the above embodiments based on dynamic spectrum and multi-scale spatial information fusion have at least the following beneficial effects:

[0194] Based on the dynamic spectrum of the detected sample (all the spectrum of a biological sample), the effective identification information of the multi-scale spatial domain on the spectrum is integrated to perform adaptive FAIMS spectrum classification and recognition without losing other unstable spectrum information and other spectral line effective information; the redundant information and noise interference are small, the model establishment overhead is small, and the established model is highly robust.

[0195] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A high-field asymmetric ion mobility spectrometry classification and identification method, characterized in that: The method is based on detecting the dynamic graph of the sample and fusing the graph with multi-scale spatial information, including: For the classification and recognition task of detecting negative and positive test samples, each test sample is repeatedly measured to obtain a set of spectrum samples to obtain the entire dynamic spectrum. Each type of test sample contains multiple known samples used as training data; Based on the entire dynamic graph of each of the negative and positive detection samples, extract features in a multi-scale spatial domain respectively; Perform feature fusion based on the features extracted in multi-scale spatial domains to obtain multi-scale fusion features; Establishing a classification and recognition model of multi-scale information fusion based on the multi-scale fusion features; Performing classification and recognition of high-field asymmetric ion mobility spectra based on the classification and recognition model; The extracting features in the multi-scale airspace based on the entire dynamic graph of each of the negative and positive detection samples includes: extracting features F in the small-scale airspace S , extract feature F in the mesoscale space M And extract features F in the global scale space G ; The feature extraction in the small-scale spatial domain includes: Calculating the average ion response intensity of each dynamic spectrum on each image block formed in the small-scale airspace as the original feature of each dynamic spectrum on the current image block; Clustering all the dynamic graphs expressed by the original features of each detection sample on each image block to obtain a response area of ​​each detection sample on each image block; For each detection sample, the image block with the best discrimination is selected, and the alarm count feature of each detection sample in the small-scale airspace is established and extracted. The specific process is as follows: The negative test samples are taken as the base class, i.e., class B, and the positive test samples are taken as the standard class, i.e., class T; Calculate the similarity of B-type detection samples on each block; Among them, I J (b) represents the similarity of block b, M represents the number of samples tested, and C i,b represents the number of effective clusters of the ith subject in class B on block b; represents the jth valid cluster of the i-th subject in class B on block b, j = 1, 2, ..., C i,b ; J represents the Jaccard coefficient, E and F represent two continuous intervals, │E∩F│ represents the length of the intersection of the two intervals, │E∪F│ represents the length of the union of the two intervals, and J(E,F) measures the degree of overlap between the two intervals; is the similarity I J Set the threshold TH J , TH J ∈[0,1], exclude blocks with similarity lower than the threshold; determine the effective clustering list for each T-class detection sample; Find the union of the cluster intervals of all detected samples of class B and get the class B region R B , and then calculate the effective clustering interval of a certain T-type detection sample to R B The relative distance R of the near end point dist : R dist =B dist / (σ(R T )+σ(R B )) Among them, B dist is the clustering interval of a certain T-type detection sample to R B The relative distance of the near end point, R T is a cluster of T-type detection samples, and the σ function represents the calculated standard deviation; According to R dist Sort the clusters of each T-type test sample in descending order, excluding R dist Less than the threshold TH Rdist The clusters of the same block are deleted from top to bottom, and the first several clusters of each T-type detection sample are selected to form a valid cluster list for each T-type detection sample; In the valid cluster list of each T-type detection sample, calculate the number of alarms of each detection sample on the block where each valid cluster is located; In the valid cluster list, all the current B-class clusters are regarded as a group of cluster samples, and a valid cluster of the current T-class is regarded as another group of cluster samples. The decision points p of the B-class and T-class clusters on the block are calculated according to the Gaussian minimum false positive probability discrimination model, and the alarm times of each detection sample are calculated accordingly. For each detection sample in class B on the current block, if one of its clusters exceeds p and falls on the side of class T, the number of alarms for the class B sample is recorded as 1 once; if one of its clusters does not exceed p and falls on the side of class T, the number of alarms for the class B sample is recorded as 0 once; the number of alarms for all clusters of each class B detection sample is accumulated as the number of alarms for each class B detection sample; For each detection sample in the T class on the current block, if one of its clusters exceeds p and falls on the side of the B class area, the number of alarms for this cluster is recorded as 0 once; if one of its clusters does not exceed p and falls on the side of the B class area, the number of alarms for this cluster is recorded as 1 once; the number of alarms for all clusters of each T class detection sample is accumulated separately as the number of alarms for each T class detection sample; Based on the alarm times of a group of detection samples obtained for each T-type detection sample in the valid cluster list, the sum of the alarm times of all T-type detection samples is subtracted from the sum of the alarm times of all B-type detection samples, and the difference in the alarm times of each T-type detection sample on a certain valid cluster is obtained; Set the threshold TH of the alarm number difference warning , exclude the clusters below TH in each T-class valid cluster warning The remaining valid clusters are defined as alarm clusters, and the blocks they are located in are defined as alarm blocks; Add up the number of alarms for each detection sample on all alarm blocks to get a set of alarms. The number of alarms currently obtained is recorded as T P ; Then let the positive test samples be class B and the negative test samples be class T, and repeat the above steps to get another set of alarm times T N ; Let T P The number of alarms for each detection sample in is subtracted from T N The number of alarms corresponding to the detection sample in the above example is used to obtain the final number of alarm features T. warning ; The alarm times feature T of each detection sample warning The samples are sent to a learner for training to obtain a small-scale classification and discrimination model, in which the expression of the samples in the small-scale classification and discrimination model is a small-scale spatial domain feature.

2. A high-field asymmetric ion mobility spectrometry classification and identification method according to claim 1, characterized in that: The feature extraction in the mesoscale spatial domain includes: On each image block formed in the mesoscale spatial domain, different texture filters are used for each dynamic atlas of each detection sample to extract the texture features of each atlas sample block, wherein the texture features are represented by real values; Clustering a group of the texture features of each detection sample respectively, taking the cluster containing the largest number of texture features as the largest cluster, and taking the average value of the texture features contained in the largest cluster as the texture feature of the detection sample in the current image block; Select multiple image blocks with the highest discriminability and their corresponding texture features based on a feature selection algorithm; The texture features of the detection samples are sent to a learner for training, and a mesoscale classification and discrimination model is obtained through learning. The expression of the samples in the mesoscale classification and discrimination model is a mesoscale spatial domain feature.

3. The high-field asymmetric ion mobility spectrometry classification and identification method according to claim 1, characterized in that: Extracting features in the global scale space includes: Calculate the mean spectrum of the dynamic spectrum of a test sample; Extracting image texture features on the mean atlas; The image texture features of the detection samples are sent to the learner for training, and a classification and discrimination model at a global scale is learned. The expression of the samples in the model is the global scale spatial domain feature.

4. The high-field asymmetric ion mobility spectrometry classification and identification method according to claim 1, characterized in that: The method of performing feature fusion based on the features extracted respectively in the multi-scale spatial domain to obtain the multi-scale fusion feature comprises: using a feature selection algorithm to select the multi-scale fusion feature from the union of the model feature sets obtained at the small scale, the medium scale, and the global scale, including: The obtained multi-scale spatial features are spliced ​​to obtain the spliced ​​feature set {F S , F M , F G }; Using the Fisher interval measure in linear discriminant analysis as a feature selection method, from {F S , F M , F G } Select the optimal feature combination, which is the multi-scale spatial domain fusion feature F Fusion .

5. The high-field asymmetric ion mobility spectrometry classification and identification method according to claim 1, characterized in that: The establishing of a classification and recognition model of multi-scale information fusion based on the multi-scale fusion feature comprises: Use the multi-scale spatial fusion features of the detection samples, send them to the classification learner for learning, and establish a multi-scale fusion model M Fusion .

6. A high-field asymmetric ion mobility spectrometer classification and identification device, characterized in that: The device is based on dynamic graph and multi-scale spatial information fusion, including: The dynamic spectrum acquisition module is used for the classification and recognition tasks of the two types of test samples, negative and positive. Each test sample is repeatedly measured to obtain a set of spectrum samples to obtain all dynamic spectrums. Each type of test sample contains multiple known samples used as training data; A feature extraction module, for extracting features in a multi-scale spatial domain based on the entire dynamic graph of each of the negative and positive detection samples; A feature fusion module is used to fuse features extracted from multi-scale spatial domains to obtain multi-scale fusion features; A classification and recognition model building module is used to build a classification and recognition model of multi-scale information fusion based on the multi-scale fusion features; A classification and recognition module, used for classifying and recognizing high-field asymmetric ion migration spectra based on the classification and recognition model; The feature extraction module is further used for: Extract feature F in small-scale spatial domain S , extract features F in the mesoscale space M And extract features F in the global scale space G ; The feature extraction module is further used for: Calculating the average ion response intensity of each dynamic spectrum on each image block formed in the small-scale airspace as the original feature of each dynamic spectrum on the current image block; Clustering all the dynamic graphs expressed by the original features of each detection sample on each image block to obtain a response area of ​​each detection sample on each image block; For each detection sample, the image block with the best discrimination is selected, and the alarm count feature of each detection sample in the small-scale airspace is established and extracted. The specific process is as follows: The negative test samples are taken as the base class, i.e., class B, and the positive test samples are taken as the standard class, i.e., class T; Calculate the similarity of B-type detection samples on each block; Among them, I J (b) represents the similarity of block b, M represents the number of samples tested, and C i,b represents the number of effective clusters of the ith subject in class B on block b; represents the jth valid cluster of the i-th subject in class B on block b, j = 1, 2, ..., C i,b ; J represents the Jaccard coefficient, E and F represent two continuous intervals, │E∩F│ represents the length of the intersection of the two intervals, │E∪F│ represents the length of the union of the two intervals, and J(E,F) measures the degree of overlap between the two intervals; is the similarity I J Set the threshold TH J , TH J ∈[0,1], exclude blocks with similarity lower than the threshold; determine the effective clustering list for each T-class detection sample; Find the union of the cluster intervals of all detected samples of class B and get the class B region R B , and then calculate the effective clustering interval of a certain T-type detection sample to R B The relative distance R of the near end point dist : R dist =B dist / (σ(R T )+σ(R B )); Among them, B dist is the clustering interval of a certain T-type detection sample to R B The relative distance of the near end point, R T is a cluster of T-type detection samples, and the σ function represents the calculated standard deviation; According to R dist Sort the clusters of each T-type test sample in descending order, excluding R dist Less than the threshold TH Rdist The clusters of the same block are deleted from top to bottom, and the first several clusters of each T-type detection sample are selected to form a valid cluster list for each T-type detection sample; In the valid cluster list of each T-type detection sample, calculate the number of alarms of each detection sample on the block where each valid cluster is located; In the valid cluster list, all the current B-class clusters are regarded as a group of cluster samples, and a valid cluster of the current T-class is regarded as another group of cluster samples. The decision points p of the B-class and T-class clusters on the block are calculated according to the Gaussian minimum false positive probability discrimination model, and the alarm times of each detection sample are calculated accordingly. For each detection sample in class B on the current block, if one of its clusters exceeds p and falls on the side of class T, the number of alarms for the class B sample is recorded as 1 once; if one of its clusters does not exceed p and falls on the side of class T, the number of alarms for the class B sample is recorded as 0 once; the number of alarms for all clusters of each class B detection sample is accumulated as the number of alarms for each class B detection sample; For each detection sample in the T class on the current block, if one of its clusters exceeds p and falls on the side of the B class area, the number of alarms for this cluster is recorded as 0 once; if one of its clusters does not exceed p and falls on the side of the B class area, the number of alarms for this cluster is recorded as 1 once; the number of alarms for all clusters of each T class detection sample is accumulated separately as the number of alarms for each T class detection sample; Based on the alarm times of a group of detection samples obtained for each T-type detection sample in the valid cluster list, the sum of the alarm times of all T-type detection samples is subtracted from the sum of the alarm times of all B-type detection samples, and the difference in the alarm times of each T-type detection sample on a certain valid cluster is obtained; Set the threshold TH of the alarm number difference warning , exclude the clusters below TH in each T-class valid cluster warning The remaining valid clusters are defined as alarm clusters, and the blocks they are located in are defined as alarm blocks; Add up the number of alarms for each detection sample on all alarm blocks to get a set of alarms. The number of alarms currently obtained is recorded as T P ; Then let the positive test samples be class B and the negative test samples be class T, and repeat the above steps to get another set of alarm times T N ; Let T P The number of alarms for each detection sample in is subtracted from T N The number of alarms corresponding to the detection sample in the above example is used to obtain the final number of alarm features T. warning ; The alarm number feature of each detection sample is sent to the learner for training, and a classification and discrimination model at a small scale is obtained through learning. The expression of the sample in the classification and discrimination model at a small scale is a small-scale spatial domain feature.

7. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is used to read the plurality of instructions and execute the high-field asymmetric ion migration spectrum classification and identification method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor and executed by the high-field asymmetric ion mobility spectrum classification and identification method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Clustering and reclassifying face recognition method

    CN106250821A

  • Water leakage monitoring method based on multi-channel feature fusion and machine learning

    CN107833221A

  • Lane line detection method and device, lane line detection terminal, and storage medium

    CN108205667A

  • Apparatus and method for classifying a tobacco sample into one of a predefined set of taste categories

    CN109640708A

  • Adaptive target detection method and device, equipment and storage medium

    CN110415208A