A method and related device for extracting characteristic peaks of exhaled gas online mass spectrometry data
The DBSCAN clustering algorithm is used to extract characteristic peaks from the exhalation phase mass spectrometry data, which solves the complexity problem of real-time HRMS data, achieves accurate identification of metabolite types and concentrations, and improves data resolution and accuracy.
Patent Information
- Application Number
- CN202410814031.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In the existing technology, the information in the real-time HRMS data is complex, and it is difficult to identify the categories of various metabolites from the real-time HRMS data.
The DBSCAN clustering algorithm was used to extract characteristic peaks from the exhalation phase mass spectrometry data, and statistics were performed after standardization and calibration to obtain metabolite type parameters. Specific steps include converting mass spectrum data into a mass spectrum matrix, mapping it into a one-dimensional mass-to-charge ratio array, performing clustering, dividing core elements, edge elements and noise elements, constructing a mass-to-charge ratio set, removing noise and isotope characteristic peaks, and performing calibration and Alignment.
Effectively identify metabolite types and concentrations, improve the resolution and accuracy of data, be able to handle clusters of different sizes and densities, identify cluster structures, and reduce the impact of invalid feature points.
Smart Images

Figure CN118383749B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mass spectrum data analysis, and more specifically, to a method for extracting characteristic peaks of on-line mass spectrum data of exhaled gas and a related device. Background Art
[0002] In the existing technology, the development speed of breath analysis technology is very rapid. As a striking biological specimen, exhaled breath has attracted much attention because it is rich in hundreds of volatile compounds. These compounds (such as hydrocarbons, acetone) can be derived from symbiotic bacteria in tissues and gastrointestinal tract, which enter the blood and eventually pass through the blood-gas barrier in the lungs. In addition, a considerable portion of the compounds in exhaled breath are exogenous, including drugs, environmental exposure, etc. Comprehensive analysis of various metabolites in exhaled breath provides a promising method for in-depth understanding of human health and disease. Compared with conventional metabolomics studies based on urine and blood, it also provides an alternative and more convenient strategy for metabolomics research.
[0003] Non-targeted mass spectrometry is a mass spectrometry analysis method that does not require pre-selection or specific target compounds. This method aims to detect, identify and quantify all compounds present in a sample. Online non-targeted breath analysis based on high-resolution mass spectrometry (HRMS) can be used to comprehensively analyze the types of metabolites in human exhaled breath. However, the information in real-time HRMS data is complex and it is difficult to identify the categories of various metabolites from real-time HRMS data. Summary of the invention
[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a method and related device for extracting characteristic peaks of online mass spectrometry data of exhaled gas, so as to overcome the shortcomings of the prior art that the information in real-time HRMS data is complex and it is difficult to identify the categories of various metabolites from the real-time HRMS data.
[0005] The above technical objectives of the present invention are achieved through the following technical solutions: A method for extracting characteristic peaks of exhaled gas online mass spectrometry data, comprising:
[0006] The DBSCAN clustering algorithm is used to extract characteristic peaks from the mass spectrometry data of the exhalation phase to obtain characteristic peak data; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times;
[0007] Calibrate the characteristic peak data;
[0008] The calibrated characteristic peak data were statistically analyzed to obtain metabolite type parameters.
[0009] In one embodiment, the extracting characteristic peaks from the expiratory phase mass spectrum data using the DBSCAN clustering algorithm to obtain characteristic peak data specifically includes:
[0010] Standardizing the mass spectrometry data of the exhalation phase, and converting the standardized mass spectrometry data of the exhalation phase into a mass spectrometry matrix according to the time distribution;
[0011] Mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array;
[0012] The DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations.
[0013] In one embodiment, the standardization of the expiratory phase mass spectrum data specifically includes: based on the processing rule of rounding off the sixth decimal place of the mass-to-charge ratio value in the expiratory phase mass spectrum data, retaining the data of the fifth decimal place of the mass-to-charge ratio value as the standardized expiratory phase mass spectrum data.
[0014] In one embodiment, the mass spectrum matrix is specifically a sparse matrix.
[0015] In one embodiment, converting the standardized expiratory phase mass spectrum data into a mass spectrum matrix according to time distribution specifically includes:
[0016] The sampling time is used as the column of the matrix, the mass-to-charge ratio values contained in all sampling points are used as the rows of the matrix, and the ion intensity corresponding to the mass-to-charge ratio at each sampling point is used as the element of the matrix.
[0017] In one embodiment, mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array specifically includes:
[0018] The mass-to-charge ratio values in the mass spectrum matrix are used as elements of a one-dimensional mass-to-charge ratio array.
[0019] In one embodiment, the step of using the mass-to-charge ratio values in the mass spectrum matrix as elements of a one-dimensional mass-to-charge ratio array includes:
[0020] The mass-to-charge ratio values corresponding to each non-zero element in the mass spectrum matrix are all used as elements of a one-dimensional mass-to-charge ratio array.
[0021] In one embodiment, the DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations, specifically including:
[0022] Dividing the elements in the one-dimensional mass-to-charge ratio array into core elements, edge elements and noise elements; and establishing mass-to-charge ratio sets according to the core elements and the edge elements;
[0023] The characteristic peak data are determined according to the mass-to-charge ratio values of the core elements of the mass-to-charge ratio set and the ion intensities corresponding to the mass-to-charge ratio values contained in the mass-to-charge ratio set.
[0024] In one embodiment, dividing the elements in the one-dimensional mass-to-charge ratio array into core elements, edge elements, and noise elements specifically includes:
[0025] In response to the inputted distance threshold and quantity threshold, it is respectively determined whether the number of adjacent elements of each element of the one-dimensional mass-to-charge ratio array in the neighborhood of the distance threshold is greater than the quantity threshold, if so, the element is recorded as a core element; if not, the element is recorded as a non-core element;
[0026] Determine one by one whether the non-core elements are located in the neighborhood of any core element; if so, record the element as an edge element, otherwise record the element as a noise element.
[0027] In one embodiment, the establishing of a mass-to-charge ratio set according to the core elements and the edge elements specifically includes:
[0028] According to the core elements and the neighborhood defined by the distance threshold, a set of elements is constructed in one-to-one correspondence;
[0029] Determine whether the number of core elements in any element set is greater than one. If so, record all element sets corresponding to multiple core elements in the element set as mass-to-charge ratio sets. If not, record the element set corresponding to the core element as the mass-to-charge ratio set.
[0030] In one embodiment, the establishing of mass-to-charge ratio sets according to the core elements and the edge elements also includes:
[0031] Determine whether there are multiple adjacent elements belonging to the same scanning time in the neighborhood. If so, retain the adjacent element closest to the core element within the scanning time and remove the remaining adjacent elements within the scanning time.
[0032] In one embodiment, the distance threshold is 0.005.
[0033] In one embodiment, the characteristic peak data specifically includes: characteristic peak category and characteristic peak intensity.
[0034] In one embodiment, the calibrating the characteristic peak data specifically includes: removing noise in the characteristic peak category.
[0035] In one embodiment, removing noise in the characteristic peak category specifically includes:
[0036] The relative standard deviation of each characteristic peak category in the original exhaled breath data is calculated, and the first 10% characteristic peak categories with the smallest relative standard deviation in the original exhaled breath data are removed, wherein the original exhaled breath data includes the exhaled phase mass spectrum data and the non-exhaled phase mass spectrum data.
[0037] In one embodiment, the step of calculating the relative standard deviation of each characteristic peak category in the original exhaled breath data includes:
[0038] Calculate the average peak intensity of the characteristic peak category and the peak intensity standard deviation ;
[0039] Using the peak intensity average and the peak intensity standard deviation Calculate the relative standard deviation of the characteristic peak category ,include: .
[0040] In one embodiment, the removing of noise in the characteristic peak category further includes: removing isotope characteristic peaks in the characteristic peak category.
[0041] In one embodiment, the removing noise in the characteristic peak category further comprises: removing the adduct characteristic peak in the characteristic peak category.
[0042] In one embodiment, the calibrating the characteristic peak data further includes: aligning the characteristic peak categories.
[0043] A device for extracting characteristic peaks of on-line mass spectrum data of exhaled gas, comprising:
[0044] An extraction unit, the extraction unit is used to extract characteristic peaks from the mass spectrum data of the exhalation phase using a DBSCAN clustering algorithm to obtain characteristic peak data; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times;
[0045] A calibration unit, wherein the calibration unit is used to calibrate the characteristic peak data;
[0046] A statistical unit is used to perform statistics on the calibrated characteristic peak data to obtain metabolite type parameters.
[0047] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0048] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0049] In summary, the present invention has the following beneficial effects: This application proposes a method for extracting characteristic peaks from online mass spectrometry data of exhaled gas, including: extracting characteristic peaks from mass spectrometry data of the exhalation phase using the DBSCAN clustering algorithm to obtain characteristic peak data; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times; calibrating the characteristic peak data; and statistically analyzing the calibrated characteristic peak data to obtain metabolite type parameters. In this application, the mass spectrum matrix is first mapped into a one-dimensional charge-to-mass ratio array, which can make the data easier to cluster. By using the DBSCAN clustering method, invalid characteristic points can be eliminated while valid characteristic points are identified; DBSCAN can handle clusters of different sizes and densities. Even if the density of the clusters is different, it can effectively identify the cluster structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 The present invention is a flow chart of a method for extracting characteristic peaks of exhaled gas online mass spectrometry data.
[0051] Figure 2 4 is a structural diagram of a device for extracting characteristic peaks of on-line mass spectrometry data of exhaled gas in an embodiment of the present invention.
[0052] Figure 3 1 is a diagram showing the internal structure of a computer device in an embodiment of the present invention.
[0053] Figure 4 It is a schematic diagram of the ion intensity peak curve of the present invention.
[0054] Figure 5 It is a corresponding schematic diagram of the total ionic strength curve of the present invention and the ionic strength curve of each substance.
[0055] Figure 6 Schematic diagram of the mass spectrometry matrix of the present invention.
[0056] Figure 7 Schematic diagram of mapping a mass spectrum matrix into a one-dimensional mass-to-charge ratio array in an embodiment of the present invention.
[0057] Figure 8 It is a schematic diagram of the presence of multiple mass-to-charge ratios from the same scanning time point in a neighborhood of the present invention.
[0058] In the figure, 1. Extraction unit; 2. Calibration unit; 3. Statistics unit. DETAILED DESCRIPTION
[0059] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. Several embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein.
[0060] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a communication between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the present invention, unless otherwise clearly specified and limited, the first feature "above" or "below" the second feature may include the first and second features being in direct contact, or the first and second features being not in direct contact but in contact through another feature between them. Moreover, the first feature "above", "above" and "above" the second feature include the first feature being directly above and obliquely above the second feature, or simply indicating that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature includes the first feature being directly below and obliquely below the second feature, or simply means that the first feature is smaller in horizontal height than the second feature. The terms "vertical", "horizontal", "left", "right", "up", "down" and similar expressions are for illustrative purposes only and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore should not be understood as limiting the present invention. The present invention is described in detail below in conjunction with the accompanying drawings and embodiments.
[0061] In order to facilitate the understanding of the technical solution, the prior art is first briefly described. In mass spectrometry technology, the detection results of non-targeted online mass spectrometry output for detecting exhaled gas are usually composed of multiple sampling points distributed along time. Each sampling point contains the mass-to-charge ratio detected and the ion intensity corresponding to the mass-to-charge ratio. For a mass-to-charge ratio, the value of the mass-to-charge ratio itself corresponds to the substance category, and the ion intensity corresponding to the mass-to-charge ratio corresponds to the quantity of the substance. Online non-targeted breath analysis based on high-resolution mass spectrometry (HRMS) can output the mass spectrometry detection data in the form of a table according to prior regulations. The horizontal header of the table is the mass-to-charge ratio; the vertical header of the table is the sampling time, and the elements filled in the table are ion intensities. The specific form of the table is as follows: Figure 6As shown. The horizontal observation table means the ion intensity corresponding to each mass-to-charge ratio at the sampling time point, that is, the amount of the substance with this mass-to-charge ratio; the vertical observation table means the law of how the amount of substance corresponding to each mass-to-charge ratio changes over time. Since high-resolution mass spectrometry is used, there will be many measurement values for the mass-to-charge ratio corresponding to the same substance. How to distinguish many measurement values based on the measurement results, and correlate the measurement values with the standard mass-to-charge ratio one by one, and finally obtain the type and amount of the substance, is a major challenge in online non-targeted breath research based on high-resolution mass spectrometry.
[0062] Embodiment 1
[0063] In order to solve the above problems, the present invention provides a method for extracting characteristic peaks of exhaled gas online mass spectrometry data, such as Figure 1 As shown, including:
[0064] S1. Use DBSCAN clustering algorithm to extract characteristic peaks from the mass spectrometry data of the exhalation phase to obtain characteristic peak data; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times; in the mass spectrometry process, the data output by the mass spectrometry device is output in sampling points as the basic unit, and the ion intensity corresponding to each sampling point is expressed in the form of ion intensity peak. The ion intensity of each sampling point is expressed as the number of all ions received by the mass spectrometer at the sampling moment. Since the mass spectrometer can also identify the mass-to-charge ratio of the ions, the ion intensity corresponding to each sampling point is the sum of the intensities of each ion at that moment. Then extract the characteristic peaks of the data in the exhalation phase, and the ion intensity of the characteristic peak is the sum of the exhaled substances and the noise substances. DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is a density-based clustering algorithm that can find clusters of any shape: DBSCAN does not assume that the cluster has a spherical structure. The DBSCAN clustering algorithm can identify clusters of any shape. The DBSCAN clustering algorithm is insensitive to cluster size: DBSCAN can handle clusters of different sizes and densities, and can effectively identify cluster structures even if the cluster densities are different.
[0065] S2. Calibrate the characteristic peak data. Since the mass spectrometer may have drift or errors, it is necessary to calibrate the mass spectrometer data according to the state of the mass spectrometer when performing mass spectrometry detection, so as to increase the proportion of valid information in the mass spectrometry detection data and reduce the proportion of irrelevant and inaccurate data.
[0066] S3. Statistic the calibrated characteristic peak data to obtain metabolite type parameters. Since each characteristic peak is the sum of all types of ions, it is also necessary to distinguish the charge-mass ratios in the characteristic peaks to determine the type of metabolites, and identify the concentration of metabolites in the exhaled gas based on the ion intensity corresponding to the charge-mass ratio.
[0067] In summary, the present application provides a method for extracting characteristic peaks of SESI-HRMS (secondary electrospray ionization high-resolution mass spectrometry) mass spectrometry data based on the DBSCAN clustering algorithm. By using the online mass spectrometry data analysis method of the present application, the characteristic peak data corresponding to each metabolite can be automatically and accurately extracted from the non-targeted exhaled gas online mass spectrometry data. The characteristic peak data specifically includes the type of metabolite and the concentration of the metabolite.
[0068] In one embodiment, the extracting characteristic peaks from the expiratory phase mass spectrum data using the DBSCAN clustering algorithm to obtain characteristic peak data specifically includes:
[0069] Standardizing the mass spectrometry data of the exhalation phase, and converting the standardized mass spectrometry data of the exhalation phase into a mass spectrometry matrix according to the time distribution;
[0070] Mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array;
[0071] The DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations.
[0072] In actual mass spectrometry detection, since there is a certain data drift in the detection data of mass spectrometry data, the detection results for the same mass-to-charge ratio will change with the scanning time. For example, for a certain ionized ion, its standard mass-to-charge ratio is 70.000, but the mass-to-charge ratio detected at the first scanning time point is 70.010, the mass-to-charge ratio data detected at the second scanning time point is 70.005, and the mass-to-charge ratio data detected at the third scanning time point is 69.995. If these data are not clustered, the final results will lack statistical features, affecting the final statistical results, and it will be difficult to analyze the type and concentration of metabolites based on the results of mass spectrometry. Cluster analysis can help discover potential biomarkers to identify mass spectrometry features associated with specific diseases or physiological characteristics.
[0073] In one embodiment, the standardization processing of the expiratory phase mass spectrum data specifically includes: based on the processing rule of rounding off the sixth decimal place of the expiratory phase mass spectrum data, retaining the five decimal places of the expiratory phase mass spectrum data as the standardized expiratory phase mass spectrum data.
[0074] In the actual mass spectrometry detection process, the mass spectrometry data of the exhalation stage is standardized because the mass spectrometry results in this application are obtained based on high-resolution mass spectrometry equipment. The error of the mass-to-charge ratio value output by the high-resolution mass spectrometry equipment is usually in the ten-thousandth place, that is, seven decimal places. However, since the difference in mass-to-charge ratio between substances does not need to be distinguished using such precise data, the mass-to-charge ratio can be rounded to the ten-thousandth place, that is, five decimal places. This accuracy is about 100 times the error of the instrument measuring the mass-to-charge ratio, so the error of the instrument will not have a negative impact on the subsequent data processing. For example, the mass-to-charge ratio of a substance is 70.000. Since the error of the equipment is ±0.002, the detected data may change to 69.998, 69.999, 70.001 and 70.002, then the detection result will affect the statistical analysis process. In order to avoid the above problems, the data can be standardized under the condition that the mass spectrometry detection accuracy allows, for example, all the data are retained to the percentile, that is, two decimal places, and the third decimal place is rounded, so that all the above data can be summarized into a relatively accurate mass-to-charge ratio value of 70.000. Under the premise of ensuring accuracy, the mass-to-charge ratio data can be merged in advance to reduce the difficulty of data statistical analysis. The reason why the precision does not have a negative impact on data processing when it is larger than the error is that the improvement in precision actually reduces unnecessary complexity and fluctuations in data processing without losing meaningful information. Changes within the error range: The measurement error of the mass spectrometer itself fluctuates within a specific range. Rounding to an accuracy higher than this error range (i.e. 0.00001) will not lose important mass spectrometry information, because this slight change is within the instrument measurement error range and is not significant.
[0075] In one embodiment, the mass spectrum matrix is specifically a sparse matrix.
[0076] After the mass-to-charge ratio of the expiratory phase mass spectrometry data is standardized, the expiratory phase mass spectrometry data is written into the mass spectrometry matrix. Since the mass spectrometry device will have a test result offset during the detection process, the generated data will have a relative deviation from the original data, which will cause the same data to be detected as different results. Even after standardization, there will still be a large number of mass-to-charge ratio values corresponding to zero ion intensities. Therefore, in order to reduce memory usage, these data can be stored in a sparse matrix to reduce the memory usage of the data. For example, the mass-to-charge ratio of a substance is 70.000. Since the detection result of the device is offset, there may be a test result of 70.002. If the device detects the mass-to-charge ratio as 70.002 only in a certain detection, the ion intensities of the remaining scanning time points corresponding to the mass-to-charge ratio are all 0, and the same is true for the remaining mass-to-charge ratios. Since in the actual calculation process, it is necessary to waste storage units to store zero elements and waste computing resources to calculate zero elements, it is possible to consider using sparse matrix compression technology to compress the mass spectrometry matrix.
[0077] In one embodiment, converting the standardized expiratory phase mass spectrum data into a mass spectrum matrix according to time distribution specifically includes:
[0078] The sampling time is used as the column of the matrix, the mass-to-charge ratio values contained in all sampling points are used as the rows of the matrix, and the ion intensity corresponding to the mass-to-charge ratio at each sampling point is used as the element of the matrix.
[0079] In one embodiment, mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array specifically includes: using the mass-to-charge ratio values in the mass spectrum matrix as elements of the one-dimensional mass-to-charge ratio array.
[0080] like Figure 7 As shown in the table in , the mass spectrum matrix is mapped into a one-dimensional mass-to-charge ratio array. The elements in this one-dimensional mass-to-charge ratio array are the mass-to-charge ratios whose ion intensities are not zero, rather than the ion intensities of the mass-to-charge ratios. Because in the clustering process, it is necessary to cluster the mass-to-charge ratios that are close to each other so that the mass-to-charge ratios with small differences can combine with each other to form a metabolite pointing to the same metabolite. Therefore, the elements in the one-dimensional mass-to-charge ratio array are all mass-to-charge ratios.
[0081] In one embodiment, taking the mass-to-charge ratio values in the mass spectrum matrix as elements of a one-dimensional mass-to-charge ratio array includes: taking all the mass-to-charge ratio values corresponding to each non-zero element in the mass spectrum matrix as elements of the one-dimensional mass-to-charge ratio array.
[0082] This sentence means that the mass-to-charge ratio values corresponding to each non-zero element are all used as elements of the one-dimensional mass-to-charge ratio array. If the non-zero element appears several times, the corresponding mass-to-charge ratio value needs to be repeated several times in the one-dimensional mass-to-charge ratio array. Specifically, after clustering is completed, it is necessary to find an average value for each clustered cluster so that the average value can be associated with the mass-to-charge ratio in the standard database to find a specific metabolite. Since the mass-to-charge ratio value of a metabolite is regularly distributed around its standard mass-to-charge ratio value, the mass-to-charge ratio value is counted multiple times during the one-dimensional array conversion process, which can increase the weight of the mass-to-charge ratio value in the mean calculation process. For example, the mass-to-charge ratio of a substance is 70.000. Due to the offset of the detection results of the equipment, in the ten scan results, the mass-to-charge ratio value of 70.000 is scanned 6 times, 70.001 is scanned 2 times, and 70.002 is scanned 2 times. In the one-dimensional array, 70.000 should appear 6 times, 70.001 should appear 2 times, and 70.002 should also appear 2 times. When calculating the average value of this cluster, 70.000 can be given a larger weight to make the average value more biased towards 70.000.
[0083] In one embodiment, the DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations, specifically including:
[0084] Dividing the elements in the one-dimensional mass-to-charge ratio array into core elements, edge elements and noise elements; and establishing mass-to-charge ratio sets according to the core elements and the edge elements;
[0085] The characteristic peak data are determined according to the mass-to-charge ratio values of the core elements of the mass-to-charge ratio set and the ion intensities corresponding to the mass-to-charge ratio values contained in the mass-to-charge ratio set.
[0086] Specifically, the DBSCAN clustering algorithm can automatically scan the core points (that is, the core elements in this application) from the point data, and build a cluster with the core point as the center and a given radius as the range, and automatically expand the cluster according to the number of core points in the cluster. DBSCAN is not affected by the shape of the cluster, and can automatically cluster points with higher density to form clusters, and can also automatically identify noise points. After obtaining the clustered clusters, the average value of the cluster is calculated to obtain the average mass-to-charge ratio corresponding to the cluster, and then the corresponding metabolites are found. By summing the ion intensities corresponding to the mass-to-charge ratios in the cluster and then dividing by the exhalation time, the concentration corresponding to the metabolite can be obtained, and the concentration can be used to judge the physiological or pathological characteristics of the human body.
[0087] In one embodiment, dividing the elements in the one-dimensional mass-to-charge ratio array into core elements, edge elements, and noise elements specifically includes:
[0088] In response to the inputted distance threshold and quantity threshold, it is respectively determined whether the number of adjacent elements of each element of the one-dimensional mass-to-charge ratio array in the neighborhood of the distance threshold is greater than the quantity threshold, if so, the element is recorded as a core element; if not, the element is recorded as a non-core element;
[0089] Determine one by one whether the non-core elements are located in the neighborhood of any core element; if so, record the element as an edge element, otherwise record the element as a noise element.
[0090] In the process of DBSCAN, each element in the one-dimensional mass-to-charge ratio array will be judged, that is, whether each mass-to-charge ratio value is a core point. The specific judgment process is to judge whether the number of other elements in the neighborhood of the distance threshold is greater than the number threshold with the element as the core. If so, it means that this point is a core point, otherwise, the element is not a core point. If a non-core element is in the neighborhood of the core element, it means that this element is an edge element. If a non-core element is not in the neighborhood of the core element, it means that this element is a noise element.
[0091] In one embodiment, the establishing of a mass-to-charge ratio set according to the core elements and the edge elements specifically includes:
[0092] According to the core elements and the neighborhood defined by the distance threshold, a set of elements is constructed in one-to-one correspondence;
[0093] Determine whether the number of core elements in any element set is greater than one. If so, record all element sets corresponding to multiple core elements in the element set as mass-to-charge ratio sets. If not, record the element set corresponding to the core element as the mass-to-charge ratio set.
[0094] In one embodiment, the establishment of a mass-to-charge ratio set according to the core elements and the edge elements also includes: determining whether there are multiple adjacent elements belonging to the same scanning time in the neighborhood, and if so, retaining the adjacent element closest to the core element within the scanning time, and eliminating the remaining adjacent elements within the scanning time.
[0095] In this application, due to the data characteristics of mass spectrometry detection, generally speaking, only in different scanning times can there be relatively close mass-to-charge ratios. At the same scanning time point, although the values of two mass-to-charge ratios may be relatively close and in the same neighborhood, these two values theoretically still represent two different substances and cannot be regarded as the same mass-to-charge ratio. Therefore, at each scanning time point, only the mass-to-charge ratio value closest to the core element can be divided into the element set, and the remaining adjacent elements at the scanning time point are removed from the element set. Figure 8 As shown in the table, in the one-dimensional mass-to-charge ratio array, the neighborhood with 11.05 as the core contains three mass-to-charge ratio values from the same scanning time, namely 10.7, 11.1 and 11.5. Since these three data are from the same scanning time point, only the adjacent element 11.1 closest to the core element can be divided into this element set, and the remaining three mass-to-charge ratios are removed from the element set.
[0096] In one embodiment, the distance threshold is 0.005. In the present application, the distance threshold is determined based on the resolution of the mass spectrometry detection device. In one embodiment, the characteristic peak data specifically includes: characteristic peak category and characteristic peak intensity. In practical applications, the characteristic peak category is used to represent the value of the mass-to-charge ratio corresponding to a substance, and the characteristic peak intensity is used to represent the concentration of the substance.
[0097] In one embodiment, the calibrating the characteristic peak data specifically includes: removing noise in the characteristic peak category.
[0098] In one embodiment, removing noise in the characteristic peak category specifically includes:
[0099] The relative standard deviation of each characteristic peak category in the original exhaled breath data is calculated, and the first 10% characteristic peak categories with the smallest relative standard deviation in the original exhaled breath data are removed, wherein the original exhaled breath data includes the exhaled phase mass spectrum data and the non-exhaled phase mass spectrum data.
[0100] In one embodiment, the step of calculating the relative standard deviation of each characteristic peak category in the original exhaled breath data includes:
[0101] Calculate the average peak intensity of the characteristic peak category and the peak intensity standard deviation ;
[0102] Using the peak intensity average and the peak intensity standard deviation Calculate the relative standard deviation of the characteristic peak category ,include: .
[0103] In practical applications, the process of collecting people's exhaled data cannot be done by sampling only one exhalation, but by blowing into the mass spectrometer several times over a sustained period of time. For example, within one minute, the mass spectrometer is blown six times, and there needs to be a period of inhalation and rest between each blowing. Figure 4 As shown, the ion intensity detected by the mass spectrometer is reflected in the collection results and will present a square wave shape, wherein the higher position of the square wave corresponds to the exhalation stage, and the lower stage of the square wave corresponds to the non-exhalation stage.
[0104] like Figure 5 As shown, the total ion intensity of the mass spectrometry data is obtained by adding the ion intensities corresponding to each substance, so the ion intensity curve is composed of the quantity change curves of various substances. Since the substances in the environmental noise are always present, the ion intensity of the substances in the environmental noise will not change significantly with exhalation, while the human body metabolites will change significantly in quantity due to exhalation. The relative standard deviation (RSD) is very useful in analyzing the accuracy and consistency of data, especially in experimental processes such as mass spectrometry. The smaller the RSD, the higher the accuracy and consistency of the data. Therefore, by calculating the relative standard deviation of the ion concentration curve of each substance (that is, mass-to-charge ratio) that changes with time, it is possible to distinguish environmental noise substances from various substances based on the size of the relative standard deviation. In this application, an absolute relative standard deviation value is not used as the judgment standard, but the top 10% of substances with the smallest relative standard deviation are all identified as environmental noise.
[0105] In one embodiment, the removal of noise in the characteristic peak category also includes: removing isotope characteristic peaks in the characteristic peak category. In practical applications, elements usually have multiple isotopes, that is, atoms with the same number of protons (Z) but different numbers of neutrons (N). Isotopes have different mass numbers (A), and therefore appear as different mass number peaks in the mass spectrum. In mass spectrometry, isotope characteristic peaks refer to multiple peaks with similar masses to the parent ion that appear in the mass spectrum due to the natural abundance of isotopes of the element. These peaks reflect the distribution of isotope composition and can be used to confirm and analyze the molecular formula of the compound. In order to avoid the influence of pseudometabolites on the analysis results, the isotope peaks need to be merged into one characteristic peak.
[0106] In one embodiment, the removal of noise in the characteristic peak category also includes: removing the adduct characteristic peak in the characteristic peak category. In practical applications, adducts refer to complex ions formed by the analyte combining with other ions or molecules (usually solvent molecules, reagent molecules in the ion source or electrolytes, etc.) during the ionization process. The formation of adducts is a common phenomenon in mass spectrometry. Adducts will cause the original molecular mass number to increase, and the specific increase in mass number depends on the mass of the bound ions or molecules. For example, the mass number of the sodium adduct [M + Na] + is 23 mass units higher than the original molecule [M]. Therefore, it is necessary to identify the characteristic peaks of the adduct in the mass spectrum, and accurately deduce the type of the original substance based on the category of the adduct.
[0107] In one embodiment, the calibrating of the characteristic peak data further includes: aligning the characteristic peak categories. Because the experimental conditions, sample processing, instrument fluctuations, etc. between samples may cause a slight shift in the position of the characteristic peak, the characteristic peak alignment is particularly important when comparing and analyzing the mass spectrometry data of multiple samples.
[0108] Embodiment 2
[0109] See also Figure 2 , a device for extracting characteristic peaks of on-line mass spectrum data of exhaled gas, the device for extracting characteristic peaks of on-line mass spectrum data of exhaled gas comprising:
[0110] Extraction unit 1, the extraction unit 1 is used to extract characteristic peaks from the mass spectrum data of the exhalation phase using the DBSCAN clustering algorithm to obtain characteristic peak data; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times;
[0111] A calibration unit 2, wherein the calibration unit 2 is used to calibrate the characteristic peak data;
[0112] The statistical unit 3 is used to perform statistics on the calibrated characteristic peak data to obtain metabolite type parameters.
[0113] The specific definition of the device for extracting characteristic peaks of online mass spectrometry data of exhaled gas can be found in the above-mentioned definition of the method for extracting characteristic peaks of online mass spectrometry data of exhaled gas, which will not be repeated here. Each module in the above-mentioned device for extracting characteristic peaks of online mass spectrometry data of exhaled gas can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0114] Those skilled in the art will understand that Figure 2The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation of the scheme of the present application. The specific device for extracting characteristic peaks of online mass spectrometry data of exhaled gas may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0115] Embodiment 3
[0116] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for extracting characteristic peaks from online mass spectrometry data of exhaled gas as described in Example 1.
[0117] Embodiment 4
[0118] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for extracting characteristic peaks of exhaled gas online mass spectrometry data is implemented.
[0119] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0120] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0121] The DBSCAN clustering algorithm is used to extract characteristic peaks from the mass spectrometry data of the exhalation phase to obtain characteristic peak data; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times;
[0122] Calibrate the characteristic peak data;
[0123] The calibrated characteristic peak data were statistically analyzed to obtain metabolite type parameters.
[0124] In one embodiment, the extracting characteristic peaks from the expiratory phase mass spectrum data using the DBSCAN clustering algorithm to obtain characteristic peak data specifically includes:
[0125] Standardizing the mass spectrometry data of the exhalation phase, and converting the standardized mass spectrometry data of the exhalation phase into a mass spectrometry matrix according to the time distribution;
[0126] Mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array;
[0127] The DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations.
[0128] In one embodiment, the standardization of the expiratory phase mass spectrum data specifically includes: based on the processing rule of rounding off the sixth decimal place of the mass-to-charge ratio value in the expiratory phase mass spectrum data, retaining the data of the fifth decimal place of the mass-to-charge ratio value as the standardized expiratory phase mass spectrum data.
[0129] In one embodiment, mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array specifically includes:
[0130] The mass-to-charge ratio values corresponding to each non-zero element in the mass spectrum matrix are all used as elements of a one-dimensional mass-to-charge ratio array.
[0131] In one embodiment, the DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations, specifically including:
[0132] The elements in the one-dimensional mass-to-charge ratio array are divided into core elements, edge elements and noise elements; and mass-to-charge ratio sets are established according to the core elements and the edge elements.
[0133] The characteristic peak data are determined according to the mass-to-charge ratio values of the core elements of the mass-to-charge ratio set and the ion intensities corresponding to the mass-to-charge ratio values contained in the mass-to-charge ratio set.
[0134] In one embodiment, dividing the elements in the one-dimensional mass-to-charge ratio array into core elements, edge elements, and noise elements specifically includes:
[0135] In response to the inputted distance threshold and quantity threshold, it is respectively determined whether the number of adjacent elements of each element of the one-dimensional mass-to-charge ratio array in a neighborhood with the distance threshold as the radius is greater than the quantity threshold, if so, the element is recorded as a core element; if not, the element is recorded as a non-core element;
[0136] Determine one by one whether the non-core elements are located in the neighborhood of any core element; if so, record the element as an edge element, otherwise record the element as a noise element.
[0137] In one embodiment, the establishing of a mass-to-charge ratio set according to the core elements and the edge elements specifically includes:
[0138] According to the core elements and the neighborhood defined by the distance threshold, a set of elements is constructed in one-to-one correspondence;
[0139] Determine whether the number of core elements in any element set is greater than one. If so, record all element sets corresponding to multiple core elements in the element set as mass-to-charge ratio sets. If not, record the element set corresponding to the core element as the mass-to-charge ratio set.
[0140] In one embodiment, the establishing of mass-to-charge ratio sets according to the core elements and the edge elements also includes:
[0141] Determine whether there are multiple adjacent elements belonging to the same scanning time in the neighborhood. If so, retain the adjacent element closest to the core element within the scanning time and remove the remaining adjacent elements within the scanning time.
[0142] In one embodiment, the characteristic peak data specifically includes: characteristic peak category and characteristic peak intensity.
[0143] In one embodiment, the calibrating the characteristic peak data specifically includes: removing noise in the characteristic peak category.
[0144] In one embodiment, removing noise in the characteristic peak category specifically includes:
[0145] The relative standard deviation of each characteristic peak category in the original exhaled breath data is calculated, and the first 10% characteristic peak categories with the smallest relative standard deviation in the original exhaled breath data are removed, wherein the original exhaled breath data includes the exhaled phase mass spectrum data and the non-exhaled phase mass spectrum data.
[0146] In one embodiment, the calibrating the characteristic peak data further includes: aligning the characteristic peak categories.
[0147] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0148] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0149] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for extracting characteristic peaks from online mass spectrometry data of exhaled gas, characterized in that: include: The mass spectrometry data of the exhalation phase is converted into a mass spectrometry matrix according to the time distribution; Mapping the mass spectrum matrix into a one-dimensional mass-to-charge ratio array specifically includes: taking all mass-to-charge ratio values corresponding to each non-zero element in the mass spectrum matrix as elements of the one-dimensional mass-to-charge ratio array; The DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing the type and concentration of metabolites; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times; Calibrate the characteristic peak data; The calibrated characteristic peak data were statistically analyzed to obtain metabolite type parameters.
2. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 1, characterized in that: Before converting the expiratory phase mass spectrum data into a mass spectrum matrix according to the time distribution, the method further includes: The mass spectrometry data of the exhaled breath were normalized.
3. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 2, characterized in that: The standardization of the expiratory phase mass spectrum data specifically includes: based on the processing rule of rounding off the sixth decimal place of the mass-to-charge ratio value in the expiratory phase mass spectrum data, retaining the data of the fifth decimal place of the mass-to-charge ratio value as the expiratory phase mass spectrum data after the standardization processing.
4. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 2, characterized in that: The step of converting the expiratory phase mass spectrum data into a mass spectrum matrix according to the time distribution specifically includes: The standardized exhalation phase mass spectrometry data are converted into a mass spectrometry matrix according to the time distribution.
5. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 1, characterized in that: The DBSCAN clustering algorithm is used to cluster the elements in the one-dimensional mass-to-charge ratio array to obtain characteristic peak data for characterizing metabolite types and metabolite concentrations, specifically including: Dividing the elements in the one-dimensional mass-to-charge ratio array into core elements, edge elements and noise elements; and establishing mass-to-charge ratio sets according to the core elements and the edge elements; The characteristic peak data are determined according to the mass-to-charge ratio values of the core elements of the mass-to-charge ratio set and the ion intensities corresponding to the mass-to-charge ratio values contained in the mass-to-charge ratio set.
6. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 1, characterized in that: The calibrating the characteristic peak data at least includes: removing noise in the characteristic peak data.
7. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 6, characterized in that: The removing of noise from the characteristic peak data specifically includes: The relative standard deviation of each characteristic peak data in the original exhaled data is calculated, and the first 10% characteristic peak data with the smallest relative standard deviation in the original exhaled data are removed; wherein the original exhaled data includes the mass spectrum data of the exhaled phase and the mass spectrum data of the non-exhaled phase.
8. The method for extracting characteristic peaks of exhaled gas online mass spectrometry data according to claim 6, characterized in that: The calibrating the characteristic peak data also includes: aligning the characteristic peak data.
9. A device for extracting characteristic peaks of exhaled gas online mass spectrometry data, characterized in that: The device for extracting characteristic peaks of exhaled gas online mass spectrum data comprises: An extraction unit, the extraction unit is used to convert the mass spectrum data of the exhalation stage into a mass spectrum matrix according to the time distribution; the mass spectrum matrix is mapped into a one-dimensional mass-to-charge ratio array, specifically including: taking all the mass-to-charge ratio values corresponding to each non-zero element in the mass spectrum matrix as elements of the one-dimensional mass-to-charge ratio array; clustering the elements in the one-dimensional mass-to-charge ratio array using the DBSCAN clustering algorithm to obtain characteristic peak data for characterizing the type and concentration of metabolites; the characteristic peak data is the ion intensity corresponding to different mass-to-charge ratios at different times; A calibration unit, wherein the calibration unit is used to calibrate the characteristic peak data; A statistical unit is used to perform statistics on the calibrated characteristic peak data to obtain metabolite type parameters.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the method for extracting characteristic peaks from online mass spectrometry data of exhaled gas as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Metabonomic data quality control method and system for LC / GC-MS
CN111370067A
Method and device for quickly detecting tobacco maturity based on tobacco differential metabolite content
CN112684029A
Wide expiration metabolome screening method and system, electronic equipment and medium
CN116908275A
Apparatus and methods for detection of molecules
US11092569B1
Mass spectrometry method and system
WO2023150900A1
