A mass spectrometry detection kit positioning method and system
Through technologies such as deep neural networks and optical flow field analysis, the problem of low efficiency and poor accuracy of existing mass spectrometry detection kit positioning methods in processing large-scale multi-dimensional mass spectrometry data has been solved, and efficient and accurate analysis of mass spectrum peak shape changes has been achieved. and compound positioning, which improves the sensitivity and specificity of detection and reduces experimental costs.
Patent Information
- Application Number
- CN202411021606.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-29
AI Technical Summary
Existing mass spectrometry detection kit positioning methods and systems have low efficiency and poor accuracy when processing large-scale, multi-dimensional mass spectrometry data, and cannot dynamically adapt to data complexity, resulting in low efficiency, poor accuracy in peak shape change analysis, and long processing time for complex data. , reducing detection sensitivity and specificity and increasing experimental costs.
Deep neural networks are used to extract mass spectrometry data features, combined with optical flow field analysis and multi-source data fusion, to construct mass spectrometry influence diagrams, and virtual reality technology is used to construct three-dimensional mass spectrometry diagrams to optimize the mass spectrometry data analysis process, dynamically monitor detection results, and improve peak shape change analysis. The efficiency and accuracy reduce error propagation and provide more accurate compound location and identification.
It improves the efficiency and accuracy of analysis of mass spectrum peak shape changes, dynamically adapts to the complexity of mass spectrum data, reduces error propagation, improves detection sensitivity and specificity, reduces experimental costs, and provides more accurate compound positioning and identification results. .
Smart Images

Figure CN118553339B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mass spectrometry detection, and in particular to a mass spectrometry detection kit positioning method and system. Background Art
[0002] Mass spectrometry is an important tool widely used in chemistry, biology and medicine, with the characteristics of high sensitivity, high resolution and high specificity. Mass spectrometers provide information about molecular structure and composition by measuring the mass-to-charge ratio of ionized samples. This technology plays a key role in drug development, environmental monitoring, food safety testing and clinical diagnosis. Mass spectrometry detection kits are an indispensable component of mass spectrometry analysis, which include a series of reagents and tools for sample preparation, processing and analysis. These kits can simplify the process of mass spectrometry analysis and improve detection efficiency and accuracy. However, with the increasing complexity of mass spectrometry data, it has become increasingly challenging to accurately and quickly interpret mass spectra. Traditional mass spectrometry data analysis methods often face problems such as low efficiency and poor accuracy when processing large-scale, multi-dimensional data.
[0003] The existing mass spectrometry detection kit positioning method and system mass spectrum peak shape change analysis are inefficient and cannot dynamically adapt to the complexity and diversity of mass spectrometry data, reduce the optical flow field calculation to be more accurate and stable, and at the same time, the accuracy of mass spectrum peak shape change analysis is low; in addition, the existing mass spectrometry detection kit positioning method and system have a long processing time for complex data, cannot provide accurate compound positioning and identification, reduce the sensitivity and specificity of detection, and increase experimental costs; for this reason, we propose a mass spectrometry detection kit positioning method and system. Summary of the invention
[0004] The purpose of the present invention is to solve the defects in the prior art and to propose a mass spectrometry detection kit positioning method and system.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] A mass spectrometry detection kit positioning method, the positioning method has the following specific steps:
[0007] Q1. Collect sample mass spectrometry data through a mass spectrometer: Pre-treat the sample to be tested so that the substance to be tested in the sample meets the requirements of mass spectrometry detection, and then use a mass spectrometer to collect data on the processed sample.
[0008] As a further solution of the present invention, the specific steps of pre-processing the sample to be tested in Q1 are as follows:
[0009] Step 1: Researchers select appropriate sample types based on testing requirements, use sterile sampling techniques, collect samples using corresponding sampling tools, mark and record each sample in detail, and immediately store the collected samples under specified storage conditions;
[0010] Step 2: Check the integrity of the reagents, buffers, standards and consumables in the mass spectrometry detection kit, then prepare and calibrate the reagents, confirm that all reagents are within the validity period and the storage conditions meet the requirements;
[0011] Step 3: Dilute the reagent in proportion and prepare the required buffer solution, then dilute the sample in proportion, use a vortex mixer to mix the sample evenly, use a solid phase extraction column to selectively adsorb and elute the target compound in the sample to remove impurities, and extract the target compound in the treated sample using different solvents;
[0012] Step 4: Use a vortex mixer to mix the treated sample with the reagent to prepare a reaction mixture, place the prepared reaction mixture in a constant temperature device for incubation, and when the specified incubation time is reached, add a reaction stop solution and mix evenly to terminate the chemical reaction;
[0013] Step 5: Centrifuge the sample after the reaction is terminated to separate the solid and liquid parts, carefully remove the supernatant, load the processed sample into the mass spectrometer, load the standard at the same time, start the mass spectrometer for data acquisition, and record the mass spectrometry data.
[0014] Q2. Extract mass spectrometry data features and analyze mass spectrum features: Use deep neural networks to automatically extract important features from mass spectrometry data, analyze peak shape changes in the mass spectrum, and obtain continuous change information of peak shapes in the mass spectrum.
[0015] As a further solution of the present invention, the specific steps of extracting important features of mass spectrum data described in Q2 are as follows:
[0016] Step 1: Collect the mass spectrometry data generated by the mass spectrometer, convert the mass spectrometry data into a tensor suitable for the DenseNet input format, standardize the mass spectrometry data, and design the hierarchical structure of the DenseNet network's input layer, multiple dense blocks, transition layer, and output layer;
[0017] Step 2: Update the DenseNet network weights through forward propagation and back propagation, load the trained DenseNet network, and input the preprocessed mass spectrometry data into the DenseNet network;
[0018] Step 3: Input the mass spectrometry data into the DenseNet network, and the mass spectrometry data is forward propagated through the network. After multiple layers of convolution, batch normalization, and ReLU activation function, each layer in DenseNet extracts and processes different features of the input data during the forward propagation process.
[0019] Step 4: Select the last convolutional layer in the DenseNet network or the output layer of a random dense block as the specific layer, extract the output feature map of the layer, use global average pooling to reduce the dimension of the feature map, reduce the dimension of the feature and keep important information, adjust the shape of the feature map after dimensionality reduction, and record the extracted feature data.
[0020] As a further solution of the present invention, the specific steps of analyzing the change in mass spectrum peak shape described in Q2 are as follows:
[0021] Step 1: Collect the mass spectra generated by the mass spectrometer at different time points or under different conditions, remove the noise in the mass spectra by smoothing or filtering technology, and convert the optical flow components in the horizontal direction into And the optical flow component in the vertical direction , set to zero or other random initial value;
[0022] Step 2: Collect the optical flow field of each iteration in the previous optical flow calculation process As well as the energy function value, the collected data is saved in a structured manner, historical data is analyzed, common patterns and trends in the optical flow field update process are identified, and the experience of optical flow field changes under different conditions is summarized to form empirical rules;
[0023] Step 3: Based on historical experience and domain knowledge, formulate heuristic rules such as gradient direction rule, regional smoothing rule and energy change rule, set weight, pheromone concentration and threshold parameters for each heuristic rule, and define a path grid in the image area of optical flow calculation, and each grid point represents a possible path;
[0024] Step 4: Calculate the probability of path selection through pheromone and heuristic rules, select the path with the highest probability as the optimal path, and determine the moving direction and value of each pixel in the path. Then, update the optical flow component of the optical flow field according to the selected optimal path.
[0025] Step 5: After each optical flow field update, the value of the energy function is calculated according to the current optical flow field, and the pheromone concentration on the path is updated according to the path selection result and the energy function evaluation result. The path selection and optical flow field update are repeated until the value of the ability function changes within a range less than the preset threshold. It is judged that the convergence condition is met, and the iteration is stopped. At the same time, the optical flow component is updated according to the selected optimal path.
[0026] Step 6: Detect the mass peaks in the current mass spectrum through the optical flow field Analyze the movement of the peak position and the peak width changes, extract the characteristic parameters of the peak displacement and the peak width change rate, visualize the extracted peak shape change information, and evaluate and verify the analysis results.
[0027] As a further solution of the present invention, the specific formula for updating the optical flow component in step 4 is as follows:
[0028] ;
[0029] ;
[0030] In the formula, Represents the average value of the current optical flow field in the horizontal direction; Represents the average value of the current optical flow field in the vertical direction; Represents the horizontal coordinate in the image; Represents the vertical coordinate in the image; images representing different points in time; Represents the partial derivative of a variable; represents the smoothing parameter; Represents the optical flow component in the horizontal direction; Represents the optical flow component in the vertical direction; Represents the pixel value of the mass spectrometry image;
[0031] The specific calculation formula of the energy function described in step 5 is as follows:
[0032] ;
[0033] In the formula, as well as Represent the area units on the integration domain, indicating that and Small changes in direction; Represents the total energy of the optical flow field.
[0034] Q3. Real-time tracking of mass spectrometry peaks and optimization of mass spectrometry data: Track the detected mass spectrometry peaks, identify and distinguish the mass spectrometry peaks of different substances based on the tracking results, and globally optimize the mass spectrometry data based on the identification results;
[0035] Q4. Analyze the detection process through multi-source data fusion: fuse the data obtained from different mass spectrometers and different detection methods, and comprehensively use various detection information to construct mass spectrometry influence diagrams to model the mass spectrometry detection process;
[0036] Q5. Verify and evaluate the test results and dynamically monitor them: Evaluate the accuracy and reliability of the mass spectrometry detection method by comparing with standard samples. At the same time, use statistical analysis methods to comprehensively analyze the test data and dynamically monitor the mass spectrometry detection process in real time.
[0037] Q6. Construct a three-dimensional mass spectrum for researchers to view and operate: Use virtual reality technology to construct a three-dimensional mass spectrum to visualize the mass spectrometry detection results. Researchers can view the mass spectrometry data through the user interaction platform and perform corresponding operations on the three-dimensional mass spectrum.
[0038] A mass spectrometry detection kit positioning system, comprising an acquisition processing module, a mass spectrometry feature extraction module, a peak shape analysis module, a planning optimization module, an association mining module, an identification and classification module, a target tracking module, a storage management module, a user interaction platform and a feedback adjustment module;
[0039] The acquisition and processing module is used to acquire and pre-process raw mass spectrometry data from the mass spectrometer;
[0040] The mass spectrum feature extraction module is used to extract feature information from mass spectrum data for subsequent analysis and comparison;
[0041] The peak shape analysis module is used to analyze the peak shape changes in the mass spectrum and locate the position and movement trajectory of the compound;
[0042] The planning optimization module is used to optimize parameter selection during mass spectrometry data analysis;
[0043] As a further solution of the present invention, the specific steps of parameter selection optimization of the planning optimization module are as follows:
[0044] Step I: The planning and optimization module obtains the original mass spectrometry data from the mass spectrometer, including mass spectrometry images and sample information, and determines a set of parameter sets based on the collected mass spectrometry data. , and each parameter in the parameter set affects the results of mass spectrometry data preprocessing, feature extraction, and identification and classification, setting a set of path planning strategies , and each path strategy contains a complete analysis process from preprocessing to the final result;
[0045] Step II: Randomly generate the initial value of each parameter and path strategy, evaluate the performance of each individual, calculate the effect of each combination in mass spectrometry data analysis, adjust the parameters within the specified range according to the fitness value, modify the step sequence or method in the path strategy, update the parameters and path strategy, and retain the new value if the updated fitness value is better than the original value;
[0046] Step III: Share the optimization information of each individual in the group. Each individual can obtain the parameter selection and path strategy of other individuals, as well as the corresponding fitness value. For each parameter and path strategy, calculate its relative performance in the entire group and identify the best performing individual and strategy.
[0047] Step IV: Use the parameters and path strategies of the best performing individual as a reference, adjust the original parameters and paths, and calculate the average values of the parameters and paths of all individuals in the group as the optimization direction, and then update the parameters and path strategies of each individual. If the fitness value of the new parameter and path combination is better than the original value, then update it;
[0048] Step V: Create a knowledge base to record the parameter selection and path strategies that perform well in individual learning and social learning, and then spread the excellent strategies and parameters in the knowledge base to the entire group. At the same time, update the knowledge base in real time, regularly add the latest optimization results to the knowledge base, and eliminate the strategies and parameter selections with poor performance;
[0049] Step VI: After multiple rounds of cultural iterations, the fitness range of each individual parameter selection and path strategy is within the preset convergence range, then the iteration is stopped, and the optimal parameter selection and path planning strategy is selected based on the fitness value of each individual parameter selection and path strategy, and the original parameters and analysis process are replaced.
[0050] The association mining module is used to analyze the association and effects between compounds;
[0051] As a further solution of the present invention, the specific steps of compound association analysis in the association mining module are as follows:
[0052] Step 1: The association mining module collects mass spectrum data, feature information and motion trajectory data. The recognition and classification module automatically classifies each mass spectrum peak according to the extracted feature information, obtains the mass-to-charge ratio and abundance corresponding to the motion trajectory of the classified mass spectrum peak, and identifies each compound peak in the mass spectrum.
[0053] Step 2: Represent each compound peak as a node ,in Indicates Compound peaks are counted and the correlation between compounds is calculated based on the co-occurrence frequency of mass spectrum peaks and the correlation of relative abundance;
[0054] Step 3: If the compound and The correlation between If the preset correlation threshold is exceeded, and Create an edge between , and combine all nodes and edges together to form an influence graph model ,in is a collection of nodes, is the edge set;
[0055] Step 4: According to the degree of relevance Assign Edge The corresponding weight , where the weight represents the strength of association between compounds, the number of edges connecting each node to it is calculated, and the community detection algorithm is used to identify the community structure in the graph and find closely related compound groups;
[0056] Step 5: Calculate the betweenness centrality of the nodes, identify the compounds that have an important position in the graph, analyze the paths and subgraph structures in the graph, and find out the association patterns and potential interaction mechanisms between the compounds.
[0057] As a further solution of the present invention, the specific calculation formula of the correlation degree in the third step is as follows:
[0058] ;
[0059] In the formula, represents the total number of samples; Representative Compounds in samples and An indicator function of whether they appear at the same time. If they appear at the same time, the value is 1, otherwise it is 0; Representative compounds and The degree of correlation between and They represent two different nodes in the mass spectrum;
[0060] The specific calculation formula of the betweenness centrality in the fifth step is as follows:
[0061] ;
[0062] In the formula, Represents the slave node To Node The number of shortest paths; Represents the slave node To Node The shortest path passes through the node The number of paths; Representative Node The betweenness centrality of .
[0063] The identification and classification module is used to identify and classify the mass spectrum characteristics of different compounds;
[0064] The target tracking module is used to track the movement trajectory of the compound in the mass spectrum in real time and present the mass spectrum detection results in a three-dimensional form;
[0065] The storage management module is used to manage and store the processed mass spectrometry data and analysis results;
[0066] The user interaction platform is used to enable users to perform various operations such as data input, operation setting and result viewing;
[0067] The feedback adjustment module is used to provide feedback and adjustment suggestions to the user based on the real-time analysis results, so as to help optimize the operation and parameter settings in the mass spectrometry detection process.
[0068] Compared with the prior art, the present invention has the following beneficial effects:
[0069] 1. The mass spectrometry detection kit positioning method analyzes historical data, identifies common patterns and trends in the optical flow field update process, and summarizes the experience of optical flow field changes under different conditions to form empirical rules. Based on historical experience and domain knowledge, various heuristic rules are formulated. At the same time, a path grid is defined in the image area where the optical flow is calculated, and each grid point represents a possible path. The probability of path selection is calculated, and the path with the highest probability is selected as the optimal path, and the optical flow component of the optical flow field is updated. After each optical flow field update, the value of the energy function is calculated according to the current optical flow field, and the pheromone concentration on the path is updated according to the path selection result and the energy function evaluation result, and the path selection and optical flow are repeated. The field is updated until the range of change of the ability function value is less than the preset threshold. It is judged that the convergence condition is reached and the iteration is stopped. At the same time, the optical flow component is updated according to the selected optimal path, and the mass spectrum peak in the current mass spectrum is detected. The movement of the peak position and the peak shape changes of the peak width are analyzed by the optical flow field, and the peak displacement and the peak width change rate are extracted. The extracted peak shape change information is visualized, and the analysis results are evaluated and verified. It can improve the efficiency of mass spectrum peak shape change analysis, dynamically adapt to the complexity and diversity of mass spectrum data, make the optical flow field calculation more accurate and stable, and enhance the adaptability of the algorithm to different mass spectra. At the same time, it reduces the propagation of errors and improves the accuracy of mass spectrum peak shape change analysis.
[0070] 2. The present invention collects mass spectrum data, characteristic information and motion trajectory data. After the identification and classification module automatically classifies each mass spectrum peak according to the extracted characteristic information, the mass-to-charge ratio and abundance corresponding to the motion trajectory of the classified mass spectrum peak are obtained, and each compound peak in the mass spectrum is identified. Each compound peak is represented as a node. The correlation between the compounds is calculated based on the co-occurrence frequency of the mass spectrum peaks and the correlation of the relative abundance. If the correlation between the two groups of compound nodes exceeds the preset correlation threshold, an edge is established between the two groups of nodes, and all nodes and edges are combined together to form an influence graph model. The corresponding weight of each edge is assigned according to the correlation, where the weight It represents the strength of association between compounds, calculates the number of edges connecting each node to it, and uses community detection algorithms to identify community structures in the graph, find out closely associated groups of compounds, calculate the betweenness centrality of nodes, identify compounds that have an important position in the graph, analyze the paths and subgraph structures in the graph, find out the association patterns and potential interaction mechanisms between compounds, and can intuitively present the relationship between compounds, reduce the processing time of complex data, provide more accurate compound location and identification, help discover low-abundance compounds and their interactions, optimize the use of kits and experimental design, improve the sensitivity and specificity of detection, and reduce experimental costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0072] Figure 1 A flowchart of a mass spectrometry detection kit positioning method proposed by the present invention;
[0073] Figure 2 This is a system block diagram of a mass spectrometry detection kit positioning system proposed by the present invention. DETAILED DESCRIPTION
[0074] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Example 1
[0075] Reference Figure 1 This embodiment discloses a mass spectrometry detection kit positioning method, and the specific steps of the positioning method are as follows:
[0076] Collecting sample mass spectrometry data through a mass spectrometer: pre-process the sample to be tested so that the substance to be tested in the sample meets the requirements of mass spectrometry detection, and then use the mass spectrometer to collect data on the processed sample.
[0077] Specifically, the researchers selected the appropriate sample type according to the detection requirements, adopted the aseptic sampling technology, collected samples through the corresponding sampling tools, marked and recorded each sample in detail, and immediately placed the collected samples under the specified storage conditions for storage, checked the integrity of the reagents, buffers, standards and consumables in the mass spectrometry detection kit, and then prepared and calibrated the reagents, confirmed that all reagents were within the validity period and the storage conditions met the requirements, diluted the reagents in proportion, prepared the required buffer, and then diluted the samples in proportion, used a vortex mixer to mix the samples evenly, and used a solid phase extraction column to precipitate the samples. The target compounds in the sample are selectively adsorbed and eluted to remove impurities, the target compounds in the treated sample are extracted by different solvents, the treated sample is mixed with the reagent using a vortex mixer to prepare a reaction mixture, the prepared reaction mixture is placed in a constant temperature device for incubation, when the specified incubation time is reached, the reaction termination solution is added and mixed evenly to terminate the chemical reaction, the sample after the reaction is terminated is centrifuged to separate the solid and liquid parts, the supernatant is carefully taken out, the treated sample is loaded into a mass spectrometer, the standard sample is loaded at the same time, the mass spectrometer is started for data acquisition, and the mass spectrum data is recorded.
[0078] It needs to be further explained that the specific sample collection process is as follows:
[0079] For blood samples, use a sterile blood collection needle and a vacuum blood collection tube to collect the blood, and mix it immediately after collection to prevent coagulation; for urine samples, use a sterile container to collect midstream urine to ensure that the sample is not contaminated by the outside world; for tissue samples, use sterile surgical tools to cut and place them in pre-prepared saline or buffer.
[0080] Extract mass spectrometry data features and analyze mass spectrum features: Use deep neural networks to automatically extract important features from mass spectrometry data, analyze peak shape changes in mass spectra, and obtain continuous change information of peak shapes in mass spectra.
[0081] Specifically, the mass spectrometry data generated by the mass spectrometer is collected, the mass spectrometry data is converted into a tensor suitable for the DenseNet input format, and the mass spectrometry data is standardized. The hierarchical structure of the input layer, multiple dense blocks, transition layer and output layer of the DenseNet network is designed, the DenseNet network weights are updated through forward propagation and back propagation, the trained DenseNet network is loaded, the preprocessed mass spectrometry data is input into the DenseNet network, the mass spectrometry data is input into the DenseNet network, the mass spectrometry data is forward propagated through the network, and after multiple layers of convolution, batch normalization and ReLU activation function, during the forward propagation process, each layer in the DenseNet will extract and process different features of the input data, select the last convolution layer in the DenseNet network or the output layer of a random dense block as a specific layer, extract the output feature map of the layer, use global average pooling to reduce the dimension of the feature map, reduce the dimension of the feature and maintain important information, adjust the shape of the feature map after dimensionality reduction, and record the extracted feature data.
[0082] Specifically, the mass spectra generated by the mass spectrometer at different time points or under different conditions are collected, and the noise in the mass spectra is removed by smoothing or filtering technology, and the optical flow components in the horizontal direction are converted into And the optical flow component in the vertical direction , set to zero or other random initial values, collect the optical flow field of each iteration in the previous optical flow calculation process And energy function value, and save the collected data in a structured manner, analyze historical data, identify common patterns and trends in the optical flow field update process, and summarize the experience of optical flow field changes under different conditions to form empirical rules. Based on historical experience and domain knowledge, formulate heuristic rules such as gradient direction rules, regional smoothing rules, and energy change rules, set weights, pheromone concentrations, and threshold parameters for each heuristic rule, and define a path grid in the image area for optical flow calculation, and each grid point represents a possible path. The probability of path selection is calculated through pheromones and heuristic rules, and The path with the highest probability is selected as the optimal path, and the moving direction and value of each pixel in the path are determined. Then, the optical flow component of the optical flow field is updated according to the selected optimal path. After each update of the optical flow field, the value of the energy function is calculated according to the current optical flow field, and the pheromone concentration on the path is updated according to the path selection result and the energy function evaluation result. The path selection and optical flow field update are repeated until the range of the ability function value is less than the preset threshold. It is judged that the convergence condition is reached and the iteration is stopped. At the same time, the optical flow component is updated according to the selected optimal path, and the mass spectrum peak in the current mass spectrum is detected. Through the optical flow field Analyze the movement of the peak position and the peak width changes, extract the characteristic parameters of the peak displacement and the peak width change rate, visualize the extracted peak shape change information, and evaluate and verify the analysis results.
[0083] In this embodiment, the specific formula for updating the optical flow component is as follows:
[0084] ;
[0085] ;
[0086] In the formula, Represents the average value of the current optical flow field in the horizontal direction; Represents the average value of the current optical flow field in the vertical direction; Represents the horizontal coordinate in the image; Represents the vertical coordinate in the image; images representing different points in time; Represents the partial derivative of a variable; represents the smoothing parameter; Represents the optical flow component in the horizontal direction; Represents the optical flow component in the vertical direction; Represents the pixel value of the mass spectrometry image;
[0087] The specific calculation formula of the energy function is as follows:
[0088] ;
[0089] In the formula, as well as Represent the area units on the integration domain, indicating that and Small changes in direction; Represents the total energy of the optical flow field.
[0090] Real-time tracking of mass spectrometry peaks and optimization of mass spectrometry data: Track the detected mass spectrometry peaks, identify and distinguish the mass spectrometry peaks of different substances based on the tracking results, and globally optimize the mass spectrometry data based on the identification results.
[0091] Analyze the detection process through multi-source data fusion: fuse the data obtained by different mass spectrometers and different detection methods, and comprehensively utilize various detection information to construct a mass spectrometry influence diagram to model the mass spectrometry detection process.
[0092] Verify and evaluate the test results and dynamically monitor them: Evaluate the accuracy and reliability of the mass spectrometry detection method by comparing it with standard samples. At the same time, use statistical analysis methods to comprehensively analyze the test data and dynamically monitor the mass spectrometry detection process in real time.
[0093] Construct a three-dimensional mass spectrum for researchers to view and operate: Use virtual reality technology to construct a three-dimensional mass spectrum to visualize the mass spectrometry detection results. Researchers can view the mass spectrometry data through the user interaction platform and perform corresponding operations on the three-dimensional mass spectrum. Example 2
[0094] Reference Figure 2 This embodiment discloses a mass spectrometry detection kit positioning system, including an acquisition and processing module, a mass spectrometry feature extraction module, a peak analysis module, a planning optimization module, an association mining module, an identification and classification module, a target tracking module, a storage management module, a user interaction platform, and a feedback adjustment module.
[0095] The acquisition and processing module is used to acquire and preprocess raw mass spectrometry data from the mass spectrometer; the mass spectrometry feature extraction module is used to extract feature information from the mass spectrometry data for subsequent analysis and comparison; the peak shape analysis module is used to analyze the peak shape changes in the mass spectrometer and locate the position and movement trajectory of the compound; the planning and optimization module is used to optimize the parameter selection during the mass spectrometry data analysis process.
[0096] Specifically, the planning optimization module obtains raw mass spectrometry data from the mass spectrometer, including mass spectrometry images and sample information, and determines a set of parameter sets based on the collected mass spectrometry data. , and each parameter in the parameter set affects the results of mass spectrometry data preprocessing, feature extraction, and identification and classification, setting a set of path planning strategies , and each path strategy contains a complete analysis process from preprocessing to the final result. The initial value of each parameter and path strategy is randomly generated, and the performance of each individual is evaluated. The effect of each combination in mass spectrometry data analysis is calculated. According to the fitness value, the parameters are adjusted within the specified range. At the same time, the step sequence or method in the path strategy is modified, and the parameters and path strategies are updated. If the updated fitness value is better than the original value, the new value is retained. The optimization information of each individual in the group is shared. Each individual can obtain the parameter selection and path strategy of other individuals, as well as the corresponding fitness value. For each parameter and path strategy, its relative performance in the entire group is calculated, and the best performing individual and strategy are identified. The parameters and path strategies of the best performing individuals are used as references to adjust the original parameters and paths. At the same time, the average values of all individual parameters and paths in the group are calculated as the optimization direction, and then the parameters and path strategies of each individual are updated. If the fitness value of the new parameter and path combination is better than the original value, it is updated to create a knowledge base to record the parameter selection and path strategies that perform well in individual learning and social learning. The excellent strategies and parameters in the knowledge base are then propagated throughout the group. At the same time, the knowledge base is updated in real time, the latest optimization results are added to the knowledge base regularly, and the strategies and parameter selections with poor performance are eliminated. Through multiple rounds of cultural iterations, the fitness change range of each individual parameter selection and path strategy is within the preset convergence range, and the iteration is stopped. According to the fitness value of each individual parameter selection and path strategy, the optimal parameter selection and path planning strategy is selected, and the original parameters and analysis process are replaced.
[0097] The association mining module is used to analyze the associations and interactions between compounds.
[0098] Specifically, the association mining module collects mass spectrum data, feature information and motion trajectory data. The recognition and classification module automatically classifies each mass spectrum peak according to the extracted feature information, obtains the mass-to-charge ratio and abundance corresponding to the motion trajectory of the classified mass spectrum peak, and identifies each compound peak in the mass spectrum, representing each compound peak as a node. ,in Indicates The correlation between the compound peaks is calculated based on the co-occurrence frequency of the mass spectrum peaks and the correlation of the relative abundance. and The correlation between If the preset correlation threshold is exceeded, and Create an edge between , and combine all nodes and edges together to form an influence graph model ,in is a collection of nodes, is a set of edges, according to the degree of association Assign Edge The corresponding weight , where the weight represents the strength of association between compounds, the number of edges connecting each node to it is calculated, and the community detection algorithm is used to identify the community structure in the graph, find closely related groups of compounds, calculate the betweenness centrality of the nodes, identify compounds with important positions in the graph, analyze the paths and subgraph structures in the graph, and find out the association patterns and potential interaction mechanisms between compounds.
[0099] In this embodiment, the specific calculation formula of the correlation degree is as follows:
[0100] ;
[0101] In the formula, represents the total number of samples; Representative Compounds in samples and An indicator function of whether they appear at the same time. If they appear at the same time, the value is 1, otherwise it is 0; Representative compounds and The degree of correlation between and They represent two different nodes in the mass spectrum;
[0102] The specific calculation formula of betweenness centrality is as follows:
[0103] ;
[0104] In the formula, Represents the slave node To Node The number of shortest paths; Represents the slave node To Node The shortest path passes through the node The number of paths; Representative Node The betweenness centrality of .
[0105] The identification and classification module is used to identify and classify the mass spectral features of different compounds; the target tracking module is used to track the movement trajectory of the compound in the mass spectrum in real time, and present the mass spectrometry detection results in three-dimensional form; the storage management module is used to manage and store the processed mass spectrometry data and analysis results; the user interaction platform is used to enable users to perform data input, operation settings and result viewing operations; the feedback adjustment module is used to provide feedback and adjustment suggestions to users based on real-time analysis results, to help optimize operations and parameter settings during mass spectrometry detection.
Claims
1. A method for compound identification using a mass spectrometer and a mass spectrometry detection kit, characterized in that: The specific steps of the identification method are as follows: Q1. Collecting sample mass spectrometry data through a mass spectrometer: pre-treat the sample to be tested so that the substance to be tested in the sample meets the requirements of mass spectrometry detection, and then use a mass spectrometer to collect data on the processed sample; Q2. Extract mass spectrometry data features and analyze mass spectrometry features: Use deep neural networks to automatically extract important features from mass spectrometry data, analyze peak shape changes in mass spectrometry, and obtain continuous peak shape change information in mass spectrometry; Q3. Real-time tracking of mass spectrometry peaks and optimization of mass spectrometry data: Track the detected mass spectrometry peaks, identify and distinguish the mass spectrometry peaks of different substances based on the tracking results, and globally optimize the mass spectrometry data based on the identification results; Q4. Analyze the detection process through multi-source data fusion: fuse the data obtained from different mass spectrometers and different detection methods, and comprehensively use various detection information to construct mass spectrometry influence diagrams to model the mass spectrometry detection process; Q5. Verify and evaluate the test results and dynamically monitor them: By comparing with standard samples, the accuracy and reliability of the mass spectrometry detection method are evaluated. At the same time, statistical analysis methods are used to comprehensively analyze the test data and dynamically monitor the mass spectrometry detection process in real time; Q6. Construct a three-dimensional mass spectrum for researchers to view and operate: Use virtual reality technology to construct a three-dimensional mass spectrum to visualize the mass spectrometry detection results. Researchers can view the mass spectrometry data through the user interaction platform and perform corresponding operations on the three-dimensional mass spectrum. The specific steps of pre-processing the samples to be tested in Q1 are as follows: Step 1: Researchers select appropriate sample types based on testing requirements, use sterile sampling techniques, collect samples using corresponding sampling tools, mark and record each sample in detail, and immediately store the collected samples under specified storage conditions; Step 2: Check the integrity of the reagents, buffers, standards and consumables in the mass spectrometry detection kit, then prepare and calibrate the reagents, confirm that all reagents are within the validity period and the storage conditions meet the requirements; Step 3: Dilute the reagent in proportion and prepare the required buffer solution, then dilute the sample in proportion, use a vortex mixer to mix the sample evenly, use a solid phase extraction column to selectively adsorb and elute the target compound in the sample to remove impurities, and extract the target compound in the treated sample using different solvents; Step 4: Use a vortex mixer to mix the treated sample with the reagent to prepare a reaction mixture, place the prepared reaction mixture in a constant temperature device for incubation, and when the specified incubation time is reached, add a reaction stop solution and mix evenly to terminate the chemical reaction; Step 5: Centrifuge the sample after the reaction is terminated to separate the solid and liquid parts, carefully remove the supernatant, load the processed sample into the mass spectrometer, load the standard sample at the same time, start the mass spectrometer for data acquisition, and record the mass spectrum data; The specific steps for extracting important features of mass spectrometry data described in Q2 are as follows: Step 1: Collect the mass spectrometry data generated by the mass spectrometer, convert the mass spectrometry data into a tensor suitable for the DenseNet input format, standardize the mass spectrometry data, and design the hierarchical structure of the DenseNet network's input layer, multiple dense blocks, transition layer, and output layer; Step 2: Update the DenseNet network weights through forward propagation and back propagation, load the trained DenseNet network, and input the preprocessed mass spectrometry data into the DenseNet network; Step 3: Input the mass spectrometry data into the DenseNet network, and the mass spectrometry data is forward propagated through the network. After multiple layers of convolution, batch normalization, and ReLU activation function, each layer in DenseNet extracts and processes different features of the input data during the forward propagation process. Step 4: Select the last convolutional layer in the DenseNet network or the output layer of a random dense block as the specific layer, extract the output feature map of the layer, use global average pooling to reduce the dimension of the feature map, reduce the dimension of the feature and keep important information, adjust the shape of the feature map after dimensionality reduction, and record the extracted feature data; The specific steps for analyzing the peak shape change of the mass spectrum described in Q2 are as follows: Step 1: Collect the mass spectra generated by the mass spectrometer at different time points or under different conditions, remove the noise in the mass spectra by smoothing or filtering technology, and convert the optical flow components in the horizontal direction into And the optical flow component in the vertical direction , set to zero or other random initial value; Step 2: Collect the optical flow field of each iteration in the previous optical flow calculation process And energy function value, and save the collected data in a structured manner, analyze historical data, identify common patterns and trends in the optical flow field update process, and summarize the experience of optical flow field changes under different conditions to form empirical rules; Step 3: Based on historical experience and domain knowledge, formulate heuristic rules such as gradient direction rule, regional smoothing rule and energy change rule, set weight, pheromone concentration and threshold parameters for each heuristic rule, and define a path grid in the image area of optical flow calculation, and each grid point represents a possible path; Step 4: Calculate the probability of path selection through pheromone and heuristic rules, select the path with the highest probability as the optimal path, and determine the moving direction and value of each pixel in the path. Then, update the optical flow component of the optical flow field according to the selected optimal path. Step 5: After each optical flow field update, the value of the energy function is calculated according to the current optical flow field, and the pheromone concentration on the path is updated according to the path selection result and the energy function evaluation result. The path selection and optical flow field update are repeated until the value of the ability function changes within a range less than the preset threshold. It is judged that the convergence condition is met, and the iteration is stopped. At the same time, the optical flow component is updated according to the selected optimal path. Step 6: Detect the mass peaks in the current mass spectrum through the optical flow field Analyze the movement of the peak position and the peak width changes, extract the characteristic parameters of the peak displacement and the peak width change rate, visualize the extracted peak shape change information, and evaluate and verify the analysis results.
2. The method for compound identification using a mass spectrometer and a mass spectrometry detection kit according to claim 1, characterized in that: The specific formula for updating the optical flow component in step 4 is as follows: ; ; In the formula, Represents the average value of the current optical flow field in the horizontal direction; Represents the average value of the current optical flow field in the vertical direction; Represents the horizontal coordinate in the image; Represents the vertical coordinate in the image; images representing different points in time; Represents the partial derivative of a variable; represents the smoothing parameter; Represents the optical flow component in the horizontal direction; Represents the optical flow component in the vertical direction; Represents the pixel value of the mass spectrometry image; The specific calculation formula of the energy function described in step 5 is as follows: ; In the formula, as well as Represent the area units on the integration domain, indicating that and Small changes in direction; Represents the total energy of the optical flow field.
3. A compound identification system using a mass spectrometer and a mass spectrometry detection kit for implementing the method according to any one of claims 1 to 2, characterized in that: It includes acquisition and processing module, mass spectrum feature extraction module, peak shape analysis module, planning optimization module, association mining module, identification and classification module, target tracking module, storage management module, user interaction platform and feedback adjustment module; The acquisition and processing module is used to acquire and pre-process raw mass spectrometry data from the mass spectrometer; The mass spectrum feature extraction module is used to extract feature information from mass spectrum data for subsequent analysis and comparison; The peak shape analysis module is used to analyze the peak shape changes in the mass spectrum and locate the position and movement trajectory of the compound; The planning optimization module is used to optimize parameter selection during mass spectrometry data analysis; The association mining module is used to analyze the association and effects between compounds; The identification and classification module is used to identify and classify the mass spectrum characteristics of different compounds; The target tracking module is used to track the movement trajectory of the compound in the mass spectrum in real time and present the mass spectrum detection results in a three-dimensional form; The storage management module is used to manage and store the processed mass spectrometry data and analysis results; The user interaction platform is used to enable users to perform various operations such as data input, operation setting and result viewing; The feedback adjustment module is used to provide feedback and adjustment suggestions to the user based on the real-time analysis results to help optimize the operation and parameter settings during the mass spectrometry detection process; The specific steps of parameter selection optimization of the planning optimization module are as follows: Step I: The planning and optimization module obtains the original mass spectrometry data from the mass spectrometer, including mass spectrometry images and sample information, and determines a set of parameter sets based on the collected mass spectrometry data. , and each parameter in the parameter set affects the results of mass spectrometry data preprocessing, feature extraction, and identification and classification, setting a set of path planning strategies , and each path strategy contains a complete analysis process from preprocessing to the final result; Step II: Randomly generate the initial value of each parameter and path strategy, evaluate the performance of each individual, calculate the effect of each combination in mass spectrometry data analysis, adjust the parameters within the specified range according to the fitness value, modify the step sequence or method in the path strategy, update the parameters and path strategy, and retain the new value if the updated fitness value is better than the original value; Step III: Share the optimization information of each individual in the group. Each individual can obtain the parameter selection and path strategy of other individuals, as well as the corresponding fitness value. For each parameter and path strategy, calculate its relative performance in the entire group and identify the best performing individual and strategy. Step IV: Use the parameters and path strategies of the best performing individual as a reference, adjust the original parameters and paths, and calculate the average values of the parameters and paths of all individuals in the group as the optimization direction, and then update the parameters and path strategies of each individual. If the fitness value of the new parameter and path combination is better than the original value, then update it; Step V: Create a knowledge base to record the parameter selection and path strategies that perform well in individual learning and social learning, and then spread the excellent strategies and parameters in the knowledge base to the entire group. At the same time, update the knowledge base in real time, regularly add the latest optimization results to the knowledge base, and eliminate the strategies and parameter selections with poor performance; Step VI: After multiple rounds of cultural iterations, the fitness range of each individual parameter selection and path strategy is within the preset convergence range, then the iteration is stopped, and the optimal parameter selection and path planning strategy are selected according to the fitness value of each individual parameter selection and path strategy, and the original parameters and analysis process are replaced; The specific steps of compound association analysis in the association mining module are as follows: Step 1: The association mining module collects mass spectrum data, feature information and motion trajectory data. The recognition and classification module automatically classifies each mass spectrum peak according to the extracted feature information, obtains the mass-to-charge ratio and abundance corresponding to the motion trajectory of the classified mass spectrum peak, and identifies each compound peak in the mass spectrum. Step 2: Represent each compound peak as a node ,in Indicates Compound peaks are counted and the correlation between compounds is calculated based on the co-occurrence frequency of mass spectrum peaks and the correlation of relative abundance; Step 3: If the compound and The correlation between If the preset correlation threshold is exceeded, and Create an edge between , and combine all nodes and edges together to form an influence graph model ,in is a collection of nodes, is the edge set; Step 4: According to the degree of relevance Assign Edge The corresponding weight , where the weight represents the strength of association between compounds, the number of edges connecting each node to it is calculated, and the community detection algorithm is used to identify the community structure in the graph and find closely related compound groups; Step 5: Calculate the betweenness centrality of the nodes, identify the compounds that have an important position in the graph, analyze the paths and subgraph structures in the graph, and find out the association patterns and potential interaction mechanisms between the compounds.
4. The compound identification system using a mass spectrometer and a mass spectrometry detection kit according to claim 3, characterized in that: The specific calculation formula of the correlation degree in the third step is as follows: ; In the formula, represents the total number of samples; Representative Compounds in samples and An indicator function of whether they appear at the same time. If they appear at the same time, the value is 1, otherwise it is 0; Representative compounds and The degree of correlation between and They represent two different nodes in the mass spectrum; The specific calculation formula of the betweenness centrality in the fifth step is as follows: ; In the formula, Represents the slave node To Node The number of shortest paths; Represents the slave node To Node The shortest path passes through the node The number of paths; Representative Node The betweenness centrality of .
