Model construction method and related device for malignant risk assessment of pulmonary nodules

By obtaining exhaled breath samples and constructing a VOC-based malignant risk assessment model for pulmonary nodules, the problem of insufficient accuracy in the assessment of malignant risk of pulmonary nodules in traditional methods was solved, and efficient malignant risk analysis of pulmonary nodules was achieved.

CN118380156BActive Publication Date: 2024-10-01JINGZHI FUTURE (GUANGZHOU) INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410814677.2
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

Technical Problem

The existing technology lacks a reliable, accurate and efficient method to assess the malignant risk of pulmonary nodules. Traditional methods such as imaging examinations and tissue biopsies have limitations and are difficult to accurately distinguish between benign and malignant nodules.

Method used

By obtaining exhaled samples of benign and malignant pulmonary nodules, performing a primary screening to obtain a set of differential markers, and using the random forest algorithm and recursive feature elimination combined with the cross-validation algorithm for secondary screening, a malignant risk assessment model for pulmonary nodules was constructed. Assessment based on VOC risk scoring method.

Benefits of technology

It achieves the accuracy and reliability of malignant risk analysis of pulmonary nodules, and provides auxiliary diagnostic tools to help doctors efficiently judge the benign and malignant pulmonary nodules.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118380156B_ABST
    Figure CN118380156B_ABST
Patent Text Reader

Abstract

The present application discloses a model construction method and related devices for assessing the risk of malignancy of pulmonary nodules, the method comprising: obtaining breath samples of benign and malignant subjects with pulmonary nodules, performing a screening once to obtain a differential marker set, fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm, performing a secondary screening on the differential marker set to obtain a diagnostic marker set, and constructing a pulmonary nodule malignancy risk assessment model based on the diagnostic marker set and multiple samples using a VOC risk scoring method, so as to assess the risk of malignancy of pulmonary nodules through the model. It can be seen that the benign and malignant risk analysis of pulmonary nodules is performed by collecting breath, and two screenings are performed based on the correlation between breath metabolites and the benign and malignant nature of pulmonary nodules, which ensures the accuracy and reliability of the results of the malignant risk analysis of pulmonary nodules, thereby efficiently assisting doctors in judging the benign and malignant nature of the pulmonary nodules of the subjects to be analyzed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a model building method and related devices for assessing the risk of malignancy of pulmonary nodules. Background Art

[0002] A pulmonary nodule refers to a small mass or tumor found in lung tissue, which is usually less than 3 cm in diameter. The diagnosis of benign or malignant pulmonary nodules is of great significance for the treatment and prognosis of patients.

[0003] In recent years, non-invasive detection methods based on exhaled gas have attracted widespread attention. Exhaled gas contains many volatile organic compounds (VOCs), and these specific VOCs may be related to factors such as metabolites produced by the body's functional metabolism, inflammatory responses, and changes in the immune system.

[0004] Traditional diagnostic methods for lung nodules mainly rely on imaging examinations and tissue biopsies, but these methods have certain limitations, such as the accuracy and invasiveness of distinguishing benign and malignant nodules. Therefore, there is currently a lack of a reliable, accurate and efficient method to evaluate the benign and malignant nature of lung nodules.

[0005] How to collect exhaled breath samples from people with malignant and benign pulmonary nodules, conduct quantitative and qualitative analysis of VOCs in the exhaled breath, assess the risk of malignancy of pulmonary nodules, and provide reliable auxiliary analysis for the diagnosis of benign and malignant pulmonary nodules is an issue that needs attention. Summary of the invention

[0006] In view of the above problems, the present application provides a model construction method and related devices for assessing the risk of malignancy of lung nodules, so as to assess the risk of malignancy of lung nodules and provide reliable auxiliary analysis for the diagnosis of benign and malignant lung nodules.

[0007] In order to achieve the above objectives, the specific plan is proposed as follows:

[0008] A method for constructing a model for assessing the risk of malignancy of pulmonary nodules, comprising:

[0009] acquiring exhaled air of a subject with benign pulmonary nodules and exhaled air of a subject with malignant pulmonary nodules as a plurality of samples;

[0010] Based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules, a primary screening of benign and malignant pulmonary nodule markers is performed to obtain a differential marker set;

[0011] By fusing the random forest algorithm and the recursive feature elimination combined with the cross-validation algorithm, the differential marker set is subjected to a secondary screening of benign and malignant markers of pulmonary nodules to obtain a diagnostic marker set;

[0012] Based on the diagnostic marker set and the multiple samples, a pulmonary nodule malignancy risk assessment model is constructed using the VOC risk scoring method.

[0013] Optionally, the differential marker set is subjected to secondary screening of benign and malignant markers of pulmonary nodules by fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm to obtain a diagnostic marker set, including:

[0014] Constructing a feature set with each VOC in the differential marker set as a feature;

[0015] Performing random forest modeling through the feature set to obtain an initialized random forest model, and calculating a performance score of the random forest model on a test set of the feature set;

[0016] Calculate the average reduced impurity of each feature in the random forest model, and remove the feature with the smallest average reduced impurity from the training set of the feature set to update the random forest model, and each time the random forest model is updated, the test set and the training set of the feature set are rotated once;

[0017] The performance score of the updated random forest model is calculated on the test set of the feature set. If the performance score is the same as the performance score of the random forest model before the update, the feature set corresponding to the updated random forest model is determined to be the diagnostic marker set. Otherwise, the step of calculating the average reduced impurity of each feature in the random forest model and eliminating the feature with the smallest average reduced impurity on the training set of the feature set is returned to update the random forest model.

[0018] Optionally, after calculating the performance score of the updated random forest model on the test set of the feature set, the method further comprises:

[0019] If the number of features in the feature set corresponding to the updated random forest model reaches a preset number, the feature set corresponding to the random forest model with the highest performance score is selected from the multiple updated random forest models as the diagnostic marker set.

[0020] Optionally, calculating the average reduced impurity of each feature in the random forest model includes:

[0021] The average reduced impurity of each feature in the random forest model is calculated using the following formula:

[0022]

[0023] in, Features The average reduction in impurity, is the total number of nodes in the decision tree of the random forest model, Use the feature in decision tree t The set of nodes to be split, Features The reduction in impurity when node j splits, is the Gini impurity of the parent node, is the Gini impurity of the left child node of the parent node, is the Gini impurity of the right child node of the parent node, is the total number of samples in the parent node, is the number of samples of the left child node, is the number of samples of the right child node, is the data set of node P, is the Gini impurity of node P, is the number of categories, is the proportion of the i-th category in the data set.

[0024] Optionally, based on the diagnostic marker set and the multiple samples, a pulmonary nodule malignancy risk assessment model is constructed using a VOC risk scoring method, including:

[0025] Counting the relative content of each VOC in the diagnostic marker set in each sample, and calculating the weight coefficient of each VOC affecting the accuracy of malignant nodule determination;

[0026] Determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample;

[0027] The diagnostic marker set is used as a model risk assessment analysis factor, and a lung nodule malignancy risk assessment model is constructed based on the weight coefficient of the impact of each VOC in the diagnostic marker set on the accuracy of malignant nodule determination, the high risk threshold and the low risk threshold.

[0028] Optionally, the calculation of the weight coefficient of each VOC affecting the accuracy of malignant nodule determination includes:

[0029] A linear regression prediction model is constructed, and the expression function of the linear regression prediction model is:

[0030]

[0031] in, is the predicted probability value, is the parameter vector of the linear regression prediction model, is an input feature vector, wherein the input feature vector is composed of the relative content of each VOC in the diagnostic marker set in a single sample;

[0032] Taking the log-likelihood loss function as the optimization target, the gradient descent algorithm is used to iteratively update the parameters of the parameter vector of the linear regression prediction model until the preset convergence condition is reached, and each parameter of the parameter vector of the linear regression prediction model is determined as the weight coefficient of each VOC affecting the accuracy of malignant nodule judgment.

[0033] Optionally, determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample includes:

[0034] For each sample, multiplying the weight coefficient of each VOC in the diagnostic marker set in the sample by the relative content of the VOC to obtain a risk assessment score for the VOC;

[0035] For each sample, the risk assessment scores of each VOC in the diagnostic marker set in the sample are accumulated to obtain the disease risk value of the sample;

[0036] Determining outliers in the disease risk values ​​of each sample, wherein the outliers include a lower limit outlier for malignant pulmonary nodules and an upper limit outlier for benign pulmonary nodules;

[0037] All outliers below the lower limit of malignant pulmonary nodules were removed from the risk values ​​of all samples, and the threshold with the highest sensitivity of detecting malignant pulmonary nodules was used as the high-risk threshold in the risk values ​​of the remaining samples;

[0038] All upper limit outliers of benign pulmonary nodules were eliminated from the disease risk values ​​of all samples, and the threshold with the highest specificity for benign pulmonary nodules was detected from the disease risk values ​​of the remaining samples as the low risk threshold.

[0039] Optionally, determining outliers in the disease risk values ​​of each sample includes:

[0040] Construct a data point set of disease risk values ​​for each sample;

[0041] For each data point in the data point set, the number of data points in a preset neighborhood of the data point is calculated, and if the number of data points in the preset neighborhood of the data point is not less than a preset minimum number of points, the data point is determined to be a core point;

[0042] For each core point in the data point set, determining data points that are not core points in the preset neighborhood of the core point as boundary points;

[0043] Data points in the data point set that are neither core points nor boundary points are determined as outliers, and the disease risk value corresponding to each outlier point is determined as an outlier value.

[0044] Optionally, the diagnostic marker set includes 13 VOCs, specifically 2 aromatic hydrocarbon compounds, 2 alkane compounds, 3 ketone compounds, 2 aldehyde compounds, 1 olefin compound and 3 other compounds, wherein:

[0045] The two aromatic hydrocarbon compounds are selected from a set of candidate aromatic hydrocarbon markers, and the set of candidate aromatic hydrocarbon markers includes o-xylene, 1-methylnaphthalene, 3-ethyltoluene, benzene, ethylbenzene, propylbenzene, trimethylbenzene, 1-methyl-3-propylbenzene and p-xylene;

[0046] The two alkane compounds are selected from a set of candidate alkane markers, and the set of candidate alkane markers includes hexane, cyclohexane, 2,4-dimethylheptane, 4-methyloctane, n-dodecane, octane, methylcyclohexane, propylcyclohexane, 2-methylheptane, propane, butane, 2-methylpentane and pentane;

[0047] The three ketone compounds are selected from a ketone candidate marker set, and the ketone candidate marker set includes 2-pentanone, 2-butanone, acetone, 2,3-hexanedione and cyclohexanone;

[0048] The two aldehyde compounds are selected from a set of candidate aldehyde markers, and the set of candidate aldehyde markers includes hexanal, nonanal, heptanal and octanal;

[0049] The one olefin compound is selected from a set of olefin candidate markers, and the set of olefin candidate markers includes isoprene, n-heptane, styrene and 1-octene.

[0050] Optionally, the process of auxiliary assessment of the pulmonary nodule malignancy risk assessment model includes:

[0051] Obtaining the exhaled breath of the subject to be tested;

[0052] The exhaled breath of the subject to be tested is input into the pulmonary nodule malignancy risk assessment model, and the risk assessment result of the subject to be tested is output.

[0053] Optionally, the exhaled breath of the subject to be tested is input into the pulmonary nodule malignancy risk assessment model, and the risk assessment result of the subject to be tested is output, including:

[0054] Inputting the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model to obtain the content value of each risk assessment analysis VOC in the exhaled breath of the subject to be tested;

[0055] The risk assessment model for malignant lung nodules is used to multiply the content value of each risk assessment and analysis VOC by the weight coefficient of the impact of the risk assessment and analysis VOC on the accuracy of malignant nodule determination to obtain a risk assessment score for the risk assessment and analysis VOC;

[0056] The risk assessment scores of each risk assessment analysis VOC are accumulated by the pulmonary nodule malignancy risk assessment model to obtain a comprehensive assessment score of benign and malignant pulmonary nodules of the subject to be tested;

[0057] The pulmonary nodule malignancy risk assessment model is used to compare the comprehensive assessment score of benign and malignant pulmonary nodules with a high risk threshold and a low risk threshold, and output a risk assessment result of the object to be tested.

[0058] A model building device for assessing the risk of malignancy of pulmonary nodules, comprising:

[0059] An exhaled breath sample acquisition unit, used to acquire the exhaled breath of a subject with benign pulmonary nodules and the exhaled breath of a subject with malignant pulmonary nodules as a plurality of samples;

[0060] a differential marker screening unit, configured to perform a primary screening of benign and malignant markers of pulmonary nodules based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules to obtain a differential marker set;

[0061] A diagnostic marker secondary screening unit, used to perform secondary screening of benign and malignant markers of pulmonary nodules on the differential marker set by fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm to obtain a diagnostic marker set;

[0062] The risk assessment model construction unit is used to construct a pulmonary nodule malignancy risk assessment model based on the diagnostic marker set and the multiple samples using the VOC risk scoring method.

[0063] Optionally, the diagnostic marker secondary screening unit comprises:

[0064] A feature set construction unit, used to construct a feature set with each VOC in the differential marker set as a feature;

[0065] A random forest modeling unit, configured to perform random forest modeling using the feature set to obtain an initialized random forest model, and calculate a performance score of the random forest model on a test set of the feature set;

[0066] An average reduced impurity calculation unit, used to calculate the average reduced impurity of each feature in the random forest model;

[0067] A feature elimination unit is used to eliminate the feature with the smallest average reduction in impurity from the training set of the feature set to update the random forest model. Each time the random forest model is updated, the test set and the training set of the feature set are rotated once;

[0068] A performance score calculation unit is used to calculate the performance score of the updated random forest model on the test set of the feature set. If the performance score is the same as the performance score of the random forest model before the update, the feature set corresponding to the updated random forest model is determined to be a diagnostic marker set; otherwise, the average reduction impurity calculation unit is returned to execute.

[0069] Optionally, the device further comprises:

[0070] The highest-scoring feature set selection unit is used to calculate the performance score of the updated random forest model on the test set of the feature set. If the number of features in the feature set corresponding to the updated random forest model reaches a preset number, the feature set corresponding to the random forest model with the highest performance score is selected from the multiple updated random forest models as the diagnostic marker set.

[0071] Optionally, the average reduced impurity calculation unit includes:

[0072] The average reduced impurity calculation subunit is used to calculate the average reduced impurity of each feature in the random forest model using the following formula:

[0073]

[0074] in, Features The average reduction in impurity, is the total number of nodes in the decision tree of the random forest model, Use the feature in decision tree t The set of nodes to be split, Features The reduction in impurity when node j splits, is the Gini impurity of the parent node, is the Gini impurity of the left child node of the parent node, is the Gini impurity of the right child node of the parent node, is the total number of samples in the parent node, is the number of samples of the left child node, is the number of samples of the right child node, is the data set of node P, is the Gini impurity of node P, is the number of categories, is the proportion of the i-th category in the data set.

[0075] Optionally, the risk assessment model building unit includes:

[0076] A relative content statistics unit, used to count the relative content of each VOC in the diagnostic marker set in each sample;

[0077] A weight coefficient calculation unit, used to calculate the weight coefficient of each VOC affecting the accuracy of malignant nodule determination;

[0078] A threshold determination unit, for determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample;

[0079] The model building unit is used to use the diagnostic marker set as a model risk assessment analysis factor, and to build a lung nodule malignancy risk assessment model based on the weight coefficient of the impact of each VOC in the diagnostic marker set on the accuracy of malignant nodule determination, the high risk threshold and the low risk threshold.

[0080] Optionally, the weight coefficient calculation unit includes:

[0081] The linear regression prediction model construction unit is used to construct a linear regression prediction model, and the expression function of the linear regression prediction model is:

[0082]

[0083] in, is the predicted probability value, is the parameter vector of the linear regression prediction model, is an input feature vector, wherein the input feature vector is composed of the relative content of each VOC in the diagnostic marker set in a single sample;

[0084] The model parameter updating unit is used to use the log-likelihood loss function as the optimization target and utilize the gradient descent algorithm to iteratively update the parameters of the parameter vector of the linear regression prediction model until a preset convergence condition is reached, and then determine that each parameter of the parameter vector of the linear regression prediction model is a weight coefficient of the influence of each VOC on the accuracy of malignant nodule determination.

[0085] Optionally, the threshold determination unit includes:

[0086] A risk assessment score calculation unit, for each sample, multiplying the weight coefficient of each VOC in the diagnostic marker set in the sample by the relative content of the VOC to obtain a risk assessment score for the VOC;

[0087] a disease risk value calculation unit, configured to accumulate, for each sample, the risk assessment scores of the VOCs in the diagnostic marker set in the sample to obtain the disease risk value of the sample;

[0088] An outlier determination unit, used to determine outliers in the disease risk values ​​of each sample, wherein the outliers include a lower limit outlier of a malignant pulmonary nodule and an upper limit outlier of a benign pulmonary nodule;

[0089] A high-risk threshold determination unit is used to eliminate all lower-limit outliers of malignant pulmonary nodules from the disease risk values ​​of all samples, and to use the threshold with the highest sensitivity for detecting malignant pulmonary nodules from the disease risk values ​​of the remaining samples as the high-risk threshold;

[0090] The low-risk threshold determination unit is used to eliminate all upper-boundary outliers of benign pulmonary nodules from the disease risk values ​​of all samples, and to detect the threshold with the highest specificity for benign pulmonary nodules from the disease risk values ​​of the remaining samples as the low-risk threshold.

[0091] Optionally, the outlier determination unit includes:

[0092] A data point set construction unit, used to construct a data point set of disease risk values ​​of each sample;

[0093] a core point determination unit, configured to calculate, for each data point in the data point set, the number of data points within a preset neighborhood of the data point, and determine the data point as a core point if the number of data points within the preset neighborhood of the data point is not less than a preset minimum number of points;

[0094] A boundary point determination unit, configured to determine, for each core point in the data point set, data points that are not core points and are within the preset neighborhood of the core point as boundary points;

[0095] The outlier determination unit is used to determine that a data point in the data point set that is neither a core point nor a boundary point is an outlier, and to determine the disease risk value corresponding to each outlier point as an outlier value.

[0096] Optionally, the diagnostic marker set includes 13 VOCs, specifically 2 aromatic hydrocarbon compounds, 2 alkane compounds, 3 ketone compounds, 2 aldehyde compounds, 1 olefin compound and 3 other compounds, wherein:

[0097] The two aromatic hydrocarbon compounds are selected from a set of candidate aromatic hydrocarbon markers, and the set of candidate aromatic hydrocarbon markers includes o-xylene, 1-methylnaphthalene, 3-ethyltoluene, benzene, ethylbenzene, propylbenzene, trimethylbenzene, 1-methyl-3-propylbenzene and p-xylene;

[0098] The two alkane compounds are selected from a set of candidate alkane markers, and the set of candidate alkane markers includes hexane, cyclohexane, 2,4-dimethylheptane, 4-methyloctane, n-dodecane, octane, methylcyclohexane, propylcyclohexane, 2-methylheptane, propane, butane, 2-methylpentane and pentane;

[0099] The three ketone compounds are selected from a ketone candidate marker set, and the ketone candidate marker set includes 2-pentanone, 2-butanone, acetone, 2,3-hexanedione and cyclohexanone;

[0100] The two aldehyde compounds are selected from a set of candidate aldehyde markers, and the set of candidate aldehyde markers includes hexanal, nonanal, heptanal and octanal;

[0101] The one olefin compound is selected from a set of olefin candidate markers, and the set of olefin candidate markers includes isoprene, n-heptane, styrene and 1-octene.

[0102] Optionally, the device further comprises:

[0103] The exhaled breath acquisition unit of the subject to be tested is used to acquire the exhaled breath of the subject to be tested;

[0104] The model output unit is used to input the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model and output the risk assessment result of the subject to be tested.

[0105] Optionally, the model output unit includes:

[0106] The model output first subunit is used to input the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model to obtain the content value of each risk assessment analysis VOC in the exhaled breath of the subject to be tested;

[0107] The model outputs a second subunit, which is used to multiply the content value of each risk assessment and analysis VOC by the weight coefficient of the impact of the risk assessment and analysis VOC on the accuracy of malignant nodule determination through the pulmonary nodule malignancy risk assessment model to obtain the risk assessment score of the risk assessment and analysis VOC;

[0108] The model outputs a third subunit, which is used to accumulate the risk assessment scores of each risk assessment analysis VOC through the pulmonary nodule malignancy risk assessment model to obtain a comprehensive assessment score of benign and malignant pulmonary nodules of the subject to be tested;

[0109] The model outputs a fourth subunit, which is used to compare the comprehensive assessment score of benign and malignant pulmonary nodules with a high risk threshold and a low risk threshold through the pulmonary nodule malignancy risk assessment model, and output a risk assessment result of the object to be tested.

[0110] A model building device for assessing the risk of malignancy of pulmonary nodules, comprising a memory and a processor;

[0111] The memory is used to store programs;

[0112] The processor is used to execute the program to implement the various steps of the model building method for assessing the malignancy risk of pulmonary nodules as described above.

[0113] A storage medium stores a computer program, which, when executed by a processor, implements the various steps of the model building method for assessing the malignancy risk of pulmonary nodules as described above.

[0114] By means of the above technical scheme, the present application obtains breath samples of subjects with benign and malignant lung nodules, performs a screening once, obtains a differential marker set, and further performs a secondary screening of benign and malignant lung nodule markers on the differential marker set by fusing the random forest algorithm and recursive feature elimination combined with the cross-validation algorithm, obtains a diagnostic marker set, and then constructs a lung nodule malignancy risk assessment model based on the diagnostic marker set and multiple samples using the VOC risk scoring method, so as to perform lung nodule malignancy risk assessment through the model. It can be seen that the benign and malignant risk analysis of lung nodules is performed by collecting exhaled breath, and two screenings are performed based on the correlation between exhaled metabolites and the benign and malignant nature of lung nodules, which ensures the accuracy and reliability of the results of the lung nodule malignancy risk analysis, thereby efficiently assisting doctors in judging the benign and malignant nature of the lung nodules to be analyzed. BRIEF DESCRIPTION OF THE DRAWINGS

[0115] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0116] Figure 1 A schematic diagram of a flow chart for constructing a model for implementing malignancy risk assessment of pulmonary nodules provided in an embodiment of the present application;

[0117] Figure 2 A schematic diagram of a spectrum data after correction provided in an embodiment of the present application;

[0118] Figure 3 An OPLS-DA score scatter plot provided in an embodiment of the present application;

[0119] Figure 4 A schematic diagram of setting a high / low risk threshold provided in an embodiment of the present application;

[0120] Figure 5A ROC curve of the pulmonary nodule malignancy risk assessment model provided in the embodiment of the present application;

[0121] Figure 6 A schematic diagram of the structure of a device for building a model for malignancy risk assessment of pulmonary nodules provided in an embodiment of the present application;

[0122] Figure 7 A schematic diagram of the structure of a device for building a model for evaluating the malignancy risk of pulmonary nodules provided in an embodiment of the present application. DETAILED DESCRIPTION

[0123] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0124] The solution of the present application can be implemented based on a terminal with data processing capabilities, which can be a benign and malignant lung nodule diagnosis and analysis system, and the benign and malignant lung nodule diagnosis and analysis system can be equipped with an exhaled breath collection device.

[0125] Next, combine Figure 1 As shown, the model construction method for evaluating the risk of malignancy of pulmonary nodules of the present application may include the following steps:

[0126] Step S110 : Acquire the exhaled breath of the subject with benign pulmonary nodules and the exhaled breath of the subject with malignant pulmonary nodules as multiple samples.

[0127] Specifically, the benign and malignant lung nodule diagnosis and analysis system can collect the exhaled breath of the target subject through the exhaled breath collection device. The benign / malignant lung nodule subject can exhale towards the exhaled breath collection device, so that the exhaled breath is collected by the benign and malignant lung nodule diagnosis and analysis system.

[0128] The exhaled breath of each benign / malignant lung nodule subject can be used as a sample.

[0129] Step S120: Based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules, a primary screening of benign and malignant pulmonary nodule markers is performed to obtain a differential marker set.

[0130] Specifically, a screening process may include:

[0131] S1201. Detect the exhaled breath of the subject with benign pulmonary nodules and the exhaled breath of the subject with malignant pulmonary nodules by using a gas chromatograph coupled to a mass spectrometer to obtain a first exhaled breath compound spectrum of the subject with benign pulmonary nodules and a second exhaled breath compound spectrum of the subject with malignant pulmonary nodules.

[0132] Specifically, the exhaled breath of subjects with benign pulmonary nodules and the exhaled breath of subjects with malignant pulmonary nodules can be detected by gas chromatograph coupled to mass spectrometry to obtain a first compound spectrum signal of the subjects with benign pulmonary nodules and a second compound spectrum signal of the subjects with malignant pulmonary nodules, and then remove the noise of the first compound spectrum signal and the second compound spectrum signal to obtain the first compound spectrum signal after noise removal and the second compound spectrum signal after noise removal.

[0133] It is understandable that in order to reduce the impact of instrument detection fluctuations, environmental interference and human errors on the spectrum and improve the stability and effectiveness of data analysis results, the spectrum data can be preprocessed before starting data analysis. The preprocessing process can include noise removal and baseline correction.

[0134] Specifically, for each compound spectrum signal in the first compound spectrum signal and the second compound spectrum signal, if there is a target signal point in the compound spectrum signal, the signal value of the target signal point is replaced by the signal mean of two adjacent signal points of the target signal point to obtain the compound spectrum signal after noise removal.

[0135] The signal value of the target signal point is greater than a preset signal ratio of the signal value of any adjacent signal point of the target signal point.

[0136] It is understandable that there are Spikes in the compound spectrum signal. Spikes represent prominent peaks caused by noise, which appear on the spectrum signal as three consecutive points forming a triangle-shaped spike. Therefore, a threshold ratio can be set as a preset signal ratio. When the signal value of a point is detected to be greater than the ratio times of the signal values ​​of the two adjacent points, the point is considered to be sampling noise. The Spike can be eliminated by replacing the abnormal point with the mean of the signals of the two adjacent points.

[0137] Furthermore, baseline calibration is performed on the first compound spectrum signal after noise removal and the second compound spectrum signal after noise removal to obtain the baseline-calibrated first compound spectrum signal and the baseline-calibrated second compound spectrum signal.

[0138] It is understandable that, affected by the instrument itself, the baseline value in the spectrum data will usually gradually deviate from 0, affecting the peak detection and quantification process. Then the baseline drift can be fitted and the fitted curve can be used for calibration.

[0139] Specifically, the baseline calibration process of the compound spectrum signal may include:

[0140] For each compound spectrum signal in the first compound spectrum signal after noise removal and the second compound spectrum signal after noise removal, a signal at a non-peak position in the compound spectrum signal is selected, and based on the signal points at the non-peak position, a baseline calibration curve of the compound spectrum signal is constructed using the following formula:

[0141]

[0142] in, is the baseline calibration curve of the compound spectrum signal baseline value changing with time t, is the highest order of the polynomial of the baseline calibration curve, is the nth coefficient, The compound spectrum signal can be fitted by the least squares method.

[0143] For each compound spectrum signal in the first compound spectrum signal after noise removal and the second compound spectrum signal after noise removal, the compound spectrum signal is subtracted from its baseline calibration curve to obtain a compound spectrum signal after baseline calibration.

[0144] Furthermore, based on the baseline-calibrated first compound spectrum signal, a first exhaled compound spectrum of a subject with benign pulmonary nodules is drawn, and based on the baseline-calibrated second compound spectrum signal, a second exhaled compound spectrum of a subject with malignant pulmonary nodules is drawn.

[0145] Specifically, the corrected spectrum data is plotted as follows Figure 2 As shown in the figure, each color represents a breath chromatogram, the horizontal axis represents the retention time (in min / minute), and the vertical axis represents the chromatographic signal response value. The drawn spectrum can be easily checked to see if there are still problems with the data, whether the data correction is completed as expected, and whether the requirements for subsequent data processing can be met.

[0146] S1202 . For each of the first breath compound spectrum and the second breath compound spectrum, perform normalization, peak removal, peak filling, and Z-score processing on the breath compound spectrum to obtain a standardized breath compound spectrum.

[0147] Specifically, in the process of performing normalization processing and peak removal processing on the breath compound spectrum, the process of performing normalization processing on the breath compound spectrum may be:

[0148] By analyzing the peak shape, peak height, peak area and other characteristics in the breath compound spectrum, the compounds present in the sample and their relative content are determined. Peak processing may include identification, fitting and extraction.

[0149] Taking the sample as the dimension, the peak area of ​​each VOC is normalized, and the peak area is converted into a relative content value, so as to obtain the normalized breath compound spectrum. The normalization formula is:

[0150]

[0151] in, It can represent the peak area of ​​the i-th VOC, It can represent the ratio of the peak area of ​​the i-th VOC to the total peak area. is the number of all VOCs.

[0152] Furthermore, the mass spectrometry information comparison table can be used to find the corresponding metabolite information of the retention time to complete the qualitative analysis of VOCs. After the qualitative analysis is completed, the KEGG (Kyoto Encyclopedia of Genes and Genomes) database is used to query the common database names, classification information, participating pathways and other annotation information of these metabolites.

[0153] The process of performing peak removal on the normalized breath compound spectrum can be:

[0154] In the breath compound spectrum, the compound peaks whose compound peak areas are missing in most samples are removed to obtain the breath compound spectrum after peak removal.

[0155] Specifically, a preset threshold missing ratio may be set to remove compound peaks whose compound peak areas are greater than the preset threshold missing ratio of the total samples.

[0156] It is understandable that due to differences in subjects and sampling environments, the metabolite peaks detected in each sample are also different. Some compounds / metabolites cannot be identified by the algorithm because their concentration is too low or they are seriously interfered by background noise, which ultimately leads to their peak area being zero. Such peaks only have area values ​​in a small number of samples, and most sample values ​​are missing. When the value of the peak is missing in most samples, it will cause errors or failures in the data analysis method, so such peaks need to be removed.

[0157] The process of peak filling processing on the breath compound spectrum after peak removal processing can be:

[0158] The missing compound peaks of each sample in the breath compound spectrum are filled to obtain the breath compound spectrum after peak filling processing.

[0159] The peak area value of the missing compound peak of each sample in at least one sample is 0, but the number of missing compounds does not exceed the preset threshold missing ratio of the total samples.

[0160] It is understandable that even if the peaks with more missing values ​​are removed, the retained peaks will still have some missing values, which need to be filled, otherwise it will affect the accuracy of subsequent analysis results. Specifically, the missing values ​​can be filled with 1 / 2 of the minimum non-zero value in the group to ensure the difference between groups.

[0161] The process of performing Z-score processing on the breath compound spectrum after peak filling processing can be:

[0162] The data is Z-score processed in the peak dimension to map the data to a standard normal distribution, with a mean of 0 and a standard deviation of 1. The purpose is to make the weight of each peak consistent in the subsequent modeling process and eliminate the deviation caused by the numerical magnitude.

[0163] The Z-score formula is:

[0164]

[0165] in, represents the data mean, represents the standard deviation of the data, The peak area of ​​the ith VOC after peak filling processing, Represents the peak area of ​​VOC after Z-score in the feature dimension.

[0166] S1203. Calculate the false positive discovery rate (FDR) value and the variable projection importance index (VIP) value of each compound peak in the standardized exhaled breath compound spectrum, determine the compounds corresponding to the compound peaks in the standardized exhaled breath compound spectrum whose FDR values ​​are less than a preset FDR threshold and whose VIP values ​​are greater than a preset VIP threshold as differential markers, and combine the various differential markers to obtain a differential marker set.

[0167] Specifically, for each compound peak in the standardized breath compound spectrum, the p-value and VIP value of the compound peak are determined by comparing the peak value of the compound peak in the first standardized breath compound spectrum with the peak value of the compound peak in the second standardized breath compound spectrum, and the p-value is converted to obtain the FDR value of the compound peak.

[0168] It is understandable that the VOC matrix data is a continuous numerical type, and the data distribution is random. Univariate analysis is performed by mixing the independent T-test and the rank sum test. Specifically, if the metabolite data satisfies the normal distribution, the independent T-test is used to calculate the p value, otherwise the rank sum test is used. Furthermore, the P value is converted into FDR by using the BH (Benjamini-Hochberg) method, and FDR is used to reduce false positive differential metabolites.

[0169] Among them, the FDR calculation method of the BH method is expressed as follows:

[0170]

[0171] in, is the number of tests, The p-value of the current test ranks among all tests.

[0172] In the process of calculating the VIP value, OPLS-DA (Orthogonal Projections to LatentStructures Discriminant Analysis) can be used to perform multivariate analysis on the data, and the OPLS-DA score scatter plot can be used to intuitively display the discrimination between the two groups. The OPLS-DA score scatter plot is shown in the figure below: Figure 3 shown. Figure 3 The horizontal axis t[1]P represents the predicted principal component score of the first principal component, showing the difference between sample groups; the vertical axis t[1]O represents the orthogonal principal component score, showing the difference within the sample group; each scatter point represents a sample, and different colors of scatter points represent different experimental groups. Red represents malignant nodule samples, and blue represents benign nodule samples. The greater the horizontal distance between samples, the greater the difference between groups, and the closer the vertical distance, the better the repeatability within the group; the red / blue elliptical shadows are the 95% confidence elliptical intervals of different groups, which can be understood as the distribution space of a sample group, and the samples outside the elliptical shadows can be understood as 5% outliers.

[0173] Use OPLS to build a regression model to model the linear relationship between X and Y. X represents the VOC feature matrix, the rows of the matrix represent samples, the columns of the matrix represent VOC, and Y represents the classification results. In the OPLS model, feature extraction is used to project X and Y into the principal component and residual space. The goal of OPLS is to extract the main correlation information from X and separate it from irrelevant information. Using orthogonal decomposition, the OPLS model is extended to classification problems, and the model is transformed into a discriminant model by introducing category information.

[0174] Among them, the matrix decomposition of X is:

[0175]

[0176] Among them, X is the predictor variable, T is the score matrix of X, is the loading matrix of X, and F is the residual matrix of X.

[0177] The matrix decomposition of Y is:

[0178]

[0179] Among them, Y is the predictor variable, T is the score matrix of X, is the loading matrix of Y, and G is the residual matrix of Y.

[0180] Orthogonal processing extracts the main relevant information:

[0181]

[0182] in, is the orthogonalized score matrix of X, is the orthogonalized score matrix of Y.

[0183] The discriminant model of OPLS-DA is:

[0184]

[0185] in, is the orthogonalized score matrix of Y, X is the input variable matrix, B is the regression coefficient, represents the weight coefficient matrix of the prediction model, and E is the residual matrix.

[0186] Furthermore, the FDR generated by univariate analysis and the VIP value generated by multivariate analysis were used for differential metabolite screening.

[0187] The calculation formula of VIP value is:

[0188]

[0189] in, represents the VIP value of the j-th predictor variable, is the number of compounds, is the weight of the ith compound, From the weight coefficient matrix B, represents the coefficient of the jth predictor variable in the ith compound.

[0190] Furthermore, after calculating the FDR value and VIP of each compound peak, the differential markers can be determined by setting the FDR threshold and VIP threshold.

[0191] Specifically, the preset FDR threshold and the preset VIP threshold can be customized. For example, if the preset FDR threshold is 0.05 and the preset VIP threshold is 1, then all compounds with an FDR value less than 0.05 and a VIP value greater than 1 can be determined as differential markers.

[0192] Among them, the various VOCs included in the differential marker set are shown in Table 1:

[0193] Table 1 Various VOCs included in the differential marker set

[0194]

[0195]

[0196] As can be seen in Table 1, based on the breath data of patients with malignant and benign pulmonary nodules, 54 potential diagnostic markers for benign and malignant pulmonary nodules were successfully obtained. Statistical analysis found that these VOCs were significantly different between patients with malignant and benign pulmonary nodules (FDR < 0.05), and the level of differentiation could be an increase, decrease, or lack of VOCs compared with the control.

[0197] These VOCs can be mainly divided into several categories, including alkanes, aromatic hydrocarbons, organic sulfides, ketones and aldehydes. Among them, alkanes account for the largest proportion, including hexane, 3-ethylhexane, 4-methyloctane, etc. Aromatic hydrocarbons account for the second largest proportion, including o-xylene, 3-ethyltoluene, propylbenzene, 1-methylnaphthalene, etc. In addition, there are some ketones, such as 2-pentanone, 2-butanone, cyclohexanone, etc. Some aldehydes, such as hexanal, nonanal, heptanal, etc. As well as alcohols, such as 1-propanol, isopropanol and organic sulfur 1-(methylthio)propane and other types of compounds, such as 2,5-dimethylfuran, acetonitrile and ethyl 4-ethoxybenzoate.

[0198] Among them, the analysis found that the concentration of a group of VOC molecules in malignant lung nodules was significantly higher than that in people with benign lung nodules. These VOC molecules include nonanal, hexanal, 2-pentanone and 1-propanol, etc. This result shows that changes in certain metabolic pathways in people with malignant lung nodules have led to increased concentrations of these VOC molecules in the human body. In addition, another group of VOC molecules was found through analysis, and the concentration in people with malignant lung nodules was significantly lower than that in people with benign lung nodules. These VOC molecules include acetonitrile, isoprene, 2-butanone, etc. This result shows that changes in certain metabolic pathways in people with malignant lung nodules have led to reduced concentrations of these VOC molecules in the human body.

[0199] Further data analysis showed that there was a correlation between the concentration of these VOC molecules and the degree of development of lung nodules. In particular, the concentrations of hexane and hexanal were positively correlated with the size of lung nodules, while the concentrations of acetonitrile and 2-butanone were negatively correlated with the size of lung nodules. The results of the study showed that VOC molecules in exhaled breath can be used as biomarkers to predict the occurrence and severity of the disease in the occurrence and development of lung nodules.

[0200] Step S130, by fusing the random forest algorithm and recursive feature elimination combined with the cross-validation algorithm, the differential marker set is subjected to secondary screening of benign and malignant markers of pulmonary nodules to obtain a diagnostic marker set.

[0201] Specifically, Recursive feature elimination with cross-validation (RFECV) is a greedy optimization algorithm that aims to find the feature subset with the best performance.

[0202] It is understandable that since the differential marker set obtained by the primary screening contains more VOCs, in order to more accurately assess the risk of benign and malignant lung nodules, a secondary screening of benign and malignant lung nodule markers can be further performed on the basis of the differential marker set to narrow the number of differential metabolites and obtain markers that are more strongly correlated with benign and malignant lung nodules.

[0203] Step S140: Based on the diagnostic marker set and multiple samples, a pulmonary nodule malignancy risk assessment model is constructed using the VOC risk scoring method.

[0204] The model construction method for assessing the risk of malignancy of pulmonary nodules provided in this embodiment obtains breath samples of subjects with benign and malignant pulmonary nodules, performs a screening once, obtains a differential marker set, and further performs a secondary screening of benign and malignant markers of pulmonary nodules on the differential marker set by fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm, to obtain a diagnostic marker set, thereby constructing a pulmonary nodule malignancy risk assessment model based on the diagnostic marker set and multiple samples using the VOC risk scoring method, so as to assess the risk of malignancy of pulmonary nodules through the model. It can be seen that the benign and malignant risk analysis of pulmonary nodules is performed by collecting breath, and two screenings are performed based on the correlation between breath metabolites and the benign and malignant nature of pulmonary nodules, thereby ensuring the accuracy and reliability of the results of the malignant risk analysis of pulmonary nodules, thereby efficiently assisting doctors in judging the benign and malignant nature of the pulmonary nodules of the subjects to be analyzed.

[0205] In some embodiments of the present application, the process of performing secondary screening of benign and malignant markers of pulmonary nodules on the differential marker set by fusing the random forest algorithm and the recursive feature elimination combined with the cross-validation algorithm in step S130 to obtain a diagnostic marker set is introduced, and the process may include:

[0206] S1. Construct a feature set with each VOC in the differential marker set as a feature.

[0207] S2. Perform random forest modeling through the feature set to obtain an initialized random forest model, and calculate the performance score of the random forest model on the test set of the feature set.

[0208] Specifically, the performance score of the random forest model may be an Accuracy value, which may be calculated by dividing the number of correctly classified samples by the total number of samples.

[0209] S3. Calculate the average reduced impurity of each feature in the random forest model, and remove the feature with the smallest average reduced impurity in the training set of the feature set to update the random forest model.

[0210] Among them, each time the random forest model is updated, the test set and training set of the feature set are rotated once.

[0211] It is understandable that in order to evaluate the performance of the model after removing features, RFECV uses cross-validation. In each round of cross-validation, the data set is divided into K parts in equal proportion, one of which is used as test data, and the other K-1 parts are used as training data, and then rotated in turn. RFECV will perform feature elimination on the training set and evaluate the model performance on the test set. This process will be repeated, using different training and test sets each time.

[0212] Specifically, the average reduction impurity can be used as the importance score of each feature to measure the contribution of the feature to the performance of the random forest model. Therefore, when updating, the least important feature can be selected for removal based on the importance score of the feature.

[0213] Among them, the process of calculating the average reduced impurity of each feature in the random forest model may include:

[0214] The average reduced impurity of each feature in the random forest model is calculated using the following formula:

[0215]

[0216] in, Features The average reduction in impurity, is the total number of nodes in the decision tree of the random forest model, Use the feature in decision tree t The set of nodes to be split, Features The reduction in impurity when node j splits, is the Gini impurity of the parent node, is the Gini impurity of the left child node of the parent node, is the Gini impurity of the right child node of the parent node, is the total number of samples in the parent node, is the number of samples of the left child node, is the number of samples of the right child node, is the data set of node P, is the Gini impurity of node P, is the number of categories, is the proportion of the i-th category in the data set.

[0217] S4. Calculate the performance score of the updated random forest model on the test set of the feature set. If the performance score is the same as the performance score of the random forest model before the update, determine that the feature set corresponding to the updated random forest model is the diagnostic marker set. Otherwise, return to execute S3.

[0218] It is understandable that since each update removes the feature with the smallest average reduction in impurity, the performance score of the random forest model will increase (at least not decrease). If the performance score of the random forest model no longer increases, it is the same as the performance score before the update, which indicates that the performance of the random forest model has reached the optimal state, and it can be determined that the feature set corresponding to the updated random forest model is the diagnostic marker set.

[0219] In addition, the condition for terminating the update can also be the number of features.

[0220] Specifically, after calculating the performance score of the updated random forest model on the test set of the feature set, if the number of features in the feature set corresponding to the updated random forest model reaches a preset number, the feature set corresponding to the random forest model with the highest performance score is selected from the multiple updated random forest models as the diagnostic marker set.

[0221] The model construction method for assessing the malignant risk of pulmonary nodules provided in this embodiment performs secondary screening of benign and malignant markers of pulmonary nodules on a set of differential markers by integrating a random forest algorithm and recursive feature elimination combined with a cross-validation algorithm. With each update of the random forest model, the least important features are eliminated to make the remaining features more critical, and the obtained VOC is more important for the assessment of the malignant risk of pulmonary nodules.

[0222] In some embodiments of the present application, the process of constructing a pulmonary nodule malignancy risk assessment model using the VOC risk scoring method based on the diagnostic marker set and multiple samples in step S140 is introduced, and the process may include:

[0223] S1. Count the relative content of each VOC in the diagnostic marker set in each sample, and calculate the weight coefficient of each VOC affecting the accuracy of malignant nodule determination.

[0224] The relative content of each VOC in the diagnostic marker set in each sample may be a standardized relative content of the VOC.

[0225] Specifically, logistic regression can be used for association analysis, with the standardized relative VOC content as the independent variable and whether it is a malignant nodule as the dependent variable, so as to obtain the weight coefficient of each VOC and the disease, which represents the degree of influence of VOC on the accuracy of malignant nodule judgment.

[0226] The specific process of calculating the weight coefficient of each VOC affecting the accuracy of malignant nodule determination may include:

[0227] S11. Construct a linear regression prediction model.

[0228] Wherein, the expression function of the linear regression prediction model is:

[0229]

[0230] in, is the predicted probability value, is the parameter vector of the linear regression prediction model, is an input feature vector. The input feature vector may be composed of the relative content of each VOC in the diagnostic marker set in a single sample.

[0231] Specifically, a hypothesis function is used to establish the relationship between the input features and the output labels. The hypothesis function takes the form of linear regression, which converts the output of linear regression into a probability value by weighted summing the input features and transforming them through a logistic function.

[0232] S12. Taking the log-likelihood loss function as the optimization target, the gradient descent algorithm is used to iteratively update the parameters of the parameter vector of the linear regression prediction model until the preset convergence condition is reached, and each parameter of the parameter vector of the linear regression prediction model is determined as the weight coefficient of each VOC affecting the accuracy of malignant nodule determination.

[0233] Specifically, in order to evaluate the prediction effect of the model, logistic regression can use the log-likelihood loss function as the optimization target. The log-likelihood loss function is as follows:

[0234]

[0235] in, represents the loss function, represents the number of samples, represents the true label of the i-th sample, Represents the feature vector of the i-th sample.

[0236] It is understandable that in order to calculate the weight coefficient of each feature, the gradient descent algorithm can be used for optimization. The gradient descent algorithm iteratively updates the parameters to minimize the loss function. The parameter update formula of the gradient descent algorithm is as follows:

[0237]

[0238] in, represents the jth parameter, represents the learning rate, Represents the loss function for the parameter The partial derivative of .

[0239] Specifically, the preset convergence condition may be a maximum preset number of iterations, or a gradient modulus (or norm) being smaller than a certain threshold (for example, a gradient magnitude being smaller than 1e-6).

[0240] S2. Determine a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample.

[0241] Specifically, according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample, the process of determining the high risk threshold and the low risk threshold may include:

[0242] S21. For each sample, multiply the weight coefficient of each VOC in the diagnostic marker set in the sample by the relative content of the VOC to obtain a risk assessment score for the VOC.

[0243] S22. For each sample, the risk assessment scores of the VOCs in the diagnostic marker set in the sample are accumulated to obtain the disease risk value of the sample.

[0244] Specifically, the disease risk value of the sample is calculated as follows:

[0245]

[0246] in, is the disease risk value of the sample, is the sigmoid function, is the relative content of the i-th VOC in the sample, is the weight corresponding to the ith VOC, and n is the number of VOCs in the diagnostic marker set.

[0247] S23. Determine outliers in the disease risk values ​​of each sample.

[0248] The outliers include the lower limit outliers of malignant pulmonary nodules and the upper limit outliers of benign pulmonary nodules.

[0249] Specifically, outliers can be determined in the disease risk values ​​of each sample by using the DBSCAN clustering algorithm, and the process may include:

[0250] S231. Construct a data point set of disease risk values ​​for each sample.

[0251] Specifically, the data point set can be , and the algorithm parameters can be determined: preset neighborhood radius And the preset minimum number of points MinPts.

[0252] S232. For each data point in the data point set, calculate the number of data points in a preset neighborhood of the data point. If the number of data points in the preset neighborhood of the data point is not less than a preset minimum number of points, determine that the data point is a core point.

[0253] S233: For each core point in the data point set, determine that the data points that are not core points in the preset neighborhood of the core point are boundary points.

[0254] It can be understood that, through the process of S232-S233, all points directly or indirectly connected to the core point form a cluster. The boundary points and the core points belong to the same cluster.

[0255] S234. Determine a data point in the data point set that is neither a core point nor a boundary point as an outlier, and determine the disease risk value corresponding to each outlier point as an outlier value.

[0256] It can be understood that a data point that cannot form a cluster with the boundary point and the core point in the data point set is neither a core point nor a boundary point, and is therefore an outlier point, so that the disease risk value corresponding to the outlier point can be determined as an outlier value.

[0257] S24. Eliminate all lower limit outliers of malignant pulmonary nodules from the disease risk values ​​of all samples, and use the threshold with the highest sensitivity of malignant pulmonary nodules detected in the disease risk values ​​of the remaining samples as the high-risk threshold.

[0258] S25. All upper limit outliers of benign pulmonary nodules are eliminated from the disease risk values ​​of all samples, and the threshold with the highest specificity for benign pulmonary nodules is detected from the disease risk values ​​of the remaining samples as the low risk threshold.

[0259] S3. The diagnostic marker set is used as the model risk assessment analysis factor, and a lung nodule malignancy risk assessment model is constructed based on the weight coefficient, high risk threshold and low risk threshold of each VOC in the diagnostic marker set that affects the accuracy of malignant nodule judgment.

[0260] Specifically, the lung nodule malignancy risk assessment model can divide the risk of malignant lung nodules into three groups based on high risk thresholds and low risk thresholds, namely, a low risk group below the low risk threshold, a medium risk group between the high risk threshold and the low risk threshold, and a high risk group above the high risk threshold. Figure 4 As shown in the figure, different colors represent the risk score probability distribution of samples in different groups (blue is the risk score probability distribution of malignant nodule samples, and green is the risk score probability distribution of benign nodule samples); the horizontal axis represents the risk score of malignancy of lung nodules, the vertical axis represents the relative frequency distribution density of data points, and the area integral of the peak is the probability (the total area is always 1); the two red dotted lines are the risk score thresholds determined according to this figure, among which the red line on the left is used to distinguish between low-risk / medium-risk samples, and the red line on the right is used to distinguish between medium-risk / high-risk samples.

[0261] The model construction method for assessing the risk of malignancy of pulmonary nodules provided in this embodiment uses a risk scoring method and determines two risk thresholds for a set of diagnostic markers to be applied to the risk stratification of benign and malignant pulmonary nodules, so as to be applicable to different application scenarios. For example, in the process of clinical cancer screening, high sensitivity is required to ensure that as many early cancer patients as possible are detected, thereby improving the success rate of treatment and the survival rate. For confirmatory tests, high specificity can ensure that only individuals who actually carry the pathogenic gene are diagnosed as positive, which can avoid unnecessary anxiety and possible misdiagnosis.

[0262] In some embodiments of the present application, the diagnostic marker set mentioned in the above embodiments is further introduced. For the exhaled breath data set obtained from 218 patients with malignant pulmonary nodules and 242 patients with benign pulmonary nodules, the obtained diagnostic marker set specifically includes 13 VOCs.

[0263] Specifically, there are 2 aromatic hydrocarbon compounds, 2 alkane compounds, 3 ketone compounds, 2 aldehyde compounds, 1 olefin compound and 3 other compounds.

[0264] Wherein, the two aromatic hydrocarbon compounds are selected from a set of candidate aromatic hydrocarbon markers, and the set of candidate aromatic hydrocarbon markers includes o-xylene, 1-methylnaphthalene, 3-ethyltoluene, benzene, ethylbenzene, propylbenzene, trimethylbenzene, 1-methyl-3-propylbenzene and p-xylene;

[0265] The two alkane compounds are selected from a set of candidate alkane markers. The set of candidate alkane markers includes hexane, cyclohexane, 2,4-dimethylheptane, 4-methyloctane, n-dodecane, octane, methylcyclohexane, propylcyclohexane, 2-methylheptane, propane, butane, 2-methylpentane and pentane;

[0266] The three ketone compounds are selected from a ketone candidate marker set. The ketone candidate marker set includes 2-pentanone, 2-butanone, acetone, 2,3-hexanedione and cyclohexanone;

[0267] The two aldehyde compounds are selected from a set of candidate aldehyde markers. The set of candidate aldehyde markers includes hexanal, nonanal, heptanal and octanal;

[0268] The one olefin compound is selected from a set of candidate olefin markers, wherein the set of candidate olefin markers includes isoprene, n-heptane, styrene and 1-octene.

[0269] Furthermore, the risk scoring algorithm was used to complete the training of the risk assessment model for predicting the malignancy of pulmonary nodules on the training set, and the performance of the risk assessment model for predicting the malignancy of pulmonary nodules was evaluated using the test set. The AUC of the risk assessment model for predicting the malignancy of pulmonary nodules was 91%, the sensitivity was 84%, and the specificity was 73%. The ROC curve is shown in Figure 2. Figure 5 As shown in Table 2, the performance of the pulmonary nodule malignancy risk assessment model is shown in Table 2:

[0270] Table 2 Performance parameters of the pulmonary nodule malignancy risk assessment model

[0271]

[0272] Furthermore, on the basis of the risk assessment model, based on the data of this embodiment, by setting different thresholds and applying them to the risk stratification of benign and malignant lung nodules, a threshold value of 0.45 with a tendency to high sensitivity can be obtained. This threshold value is the threshold value with the highest sensitivity after removing the lower boundary outliers of malignant lung nodules. At this threshold value, the sensitivity is 97% and the specificity is 62%. In addition, a threshold value of 0.78 with a tendency to high conservatism can also be obtained. This threshold value is the threshold value with the highest specificity after removing the upper boundary outliers of benign lung nodules. At this threshold value, the sensitivity is 57% and the specificity is 98%. Based on these two thresholds, the malignant risk assessment model for lung nodules divides the risk level of malignant lung nodules into three groups: less than 0.45 is a low-risk group, 0.45-0.78 is a medium-risk group, and greater than 0.78 is a high-risk group.

[0273] By using the above-mentioned lung nodule malignancy risk assessment model, resources can be allocated more reasonably, giving priority to further examination and treatment of high-risk nodules, avoiding overdiagnosis and treatment of low-risk nodules, and reducing unnecessary invasive examinations and treatments, such as surgery or biopsy, thereby reducing patients' pain and medical costs. It can be seen that compared with traditional clinical assessment methods, the established lung nodule malignancy risk assessment has the advantages of being non-invasive, rapid and repeatable, and can provide more accurate and individualized diagnostic results, which is helpful for the early diagnosis and treatment of malignant nodules.

[0274] The following is a description of the device for building a model for implementing malignancy risk assessment of lung nodules provided in an embodiment of the present application. The device for building a model for implementing malignancy risk assessment of lung nodules described below and the method for building a model for implementing malignancy risk assessment of lung nodules described above can be referenced to each other.

[0275] See also Figure 6 , Figure 6 A schematic diagram of the structure of a device for constructing a model for evaluating the malignancy risk of pulmonary nodules disclosed in an embodiment of the present application.

[0276] like Figure 6 As shown, the device may include:

[0277] An exhaled breath sample acquisition unit 11, used to acquire the exhaled breath of a subject with benign pulmonary nodules and the exhaled breath of a subject with malignant pulmonary nodules as multiple samples;

[0278] A differential marker screening unit 12, configured to perform a primary screening of benign and malignant markers of pulmonary nodules based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules to obtain a differential marker set;

[0279] A diagnostic marker secondary screening unit 13 is used to perform secondary screening of benign and malignant markers of pulmonary nodules on the differential marker set by fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm to obtain a diagnostic marker set;

[0280] The risk assessment model building unit 14 is used to build a pulmonary nodule malignancy risk assessment model based on the diagnostic marker set and the multiple samples using the VOC risk scoring method.

[0281] Optionally, the diagnostic marker secondary screening unit comprises:

[0282] A feature set construction unit, used to construct a feature set with each VOC in the differential marker set as a feature;

[0283] A random forest modeling unit, configured to perform random forest modeling using the feature set to obtain an initialized random forest model, and calculate a performance score of the random forest model on a test set of the feature set;

[0284] An average reduced impurity calculation unit, used to calculate the average reduced impurity of each feature in the random forest model;

[0285] A feature elimination unit is used to eliminate the feature with the smallest average reduction in impurity from the training set of the feature set to update the random forest model. Each time the random forest model is updated, the test set and the training set of the feature set are rotated once;

[0286] A performance score calculation unit is used to calculate the performance score of the updated random forest model on the test set of the feature set. If the performance score is the same as the performance score of the random forest model before the update, the feature set corresponding to the updated random forest model is determined to be a diagnostic marker set; otherwise, the average reduction impurity calculation unit is returned to execute.

[0287] Optionally, the device further comprises:

[0288] The highest-scoring feature set selection unit is used to calculate the performance score of the updated random forest model on the test set of the feature set. If the number of features in the feature set corresponding to the updated random forest model reaches a preset number, the feature set corresponding to the random forest model with the highest performance score is selected from the multiple updated random forest models as the diagnostic marker set.

[0289] Optionally, the average reduced impurity calculation unit includes:

[0290] The average reduced impurity calculation subunit is used to calculate the average reduced impurity of each feature in the random forest model using the following formula:

[0291]

[0292] in, Features The average reduction in impurity, is the total number of nodes in the decision tree of the random forest model, Use the feature in decision tree t The set of nodes to be split, Features The reduction in impurity when node j splits, is the Gini impurity of the parent node, is the Gini impurity of the left child node of the parent node, is the Gini impurity of the right child node of the parent node, is the total number of samples in the parent node, is the number of samples of the left child node, is the number of samples of the right child node, is the data set of node P, is the Gini impurity of node P, is the number of categories, is the proportion of the i-th category in the data set.

[0293] Optionally, the risk assessment model building unit includes:

[0294] A relative content statistics unit, used to count the relative content of each VOC in the diagnostic marker set in each sample;

[0295] A weight coefficient calculation unit, used to calculate the weight coefficient of each VOC affecting the accuracy of malignant nodule determination;

[0296] A threshold determination unit, for determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample;

[0297] The model building unit is used to use the diagnostic marker set as a model risk assessment analysis factor, and to build a lung nodule malignancy risk assessment model based on the weight coefficient of the impact of each VOC in the diagnostic marker set on the accuracy of malignant nodule determination, the high risk threshold and the low risk threshold.

[0298] Optionally, the weight coefficient calculation unit includes:

[0299] The linear regression prediction model construction unit is used to construct a linear regression prediction model, and the expression function of the linear regression prediction model is:

[0300]

[0301] in, is the predicted probability value, is the parameter vector of the linear regression prediction model, is an input feature vector, wherein the input feature vector is composed of the relative content of each VOC in the diagnostic marker set in a single sample;

[0302] The model parameter updating unit is used to use the log-likelihood loss function as the optimization target and utilize the gradient descent algorithm to iteratively update the parameters of the parameter vector of the linear regression prediction model until a preset convergence condition is reached, and then determine that each parameter of the parameter vector of the linear regression prediction model is a weight coefficient of the influence of each VOC on the accuracy of malignant nodule determination.

[0303] Optionally, the threshold determination unit includes:

[0304] A risk assessment score calculation unit, for each sample, multiplying the weight coefficient of each VOC in the diagnostic marker set in the sample by the relative content of the VOC to obtain a risk assessment score for the VOC;

[0305] a disease risk value calculation unit, configured to accumulate, for each sample, the risk assessment scores of the VOCs in the diagnostic marker set in the sample to obtain the disease risk value of the sample;

[0306] An outlier determination unit, used to determine outliers in the disease risk values ​​of each sample, wherein the outliers include a lower limit outlier of a malignant pulmonary nodule and an upper limit outlier of a benign pulmonary nodule;

[0307] A high-risk threshold determination unit is used to eliminate all lower-limit outliers of malignant pulmonary nodules from the disease risk values ​​of all samples, and to use the threshold with the highest sensitivity for detecting malignant pulmonary nodules from the disease risk values ​​of the remaining samples as the high-risk threshold;

[0308] The low-risk threshold determination unit is used to eliminate all upper-boundary outliers of benign pulmonary nodules from the disease risk values ​​of all samples, and to detect the threshold with the highest specificity for benign pulmonary nodules from the disease risk values ​​of the remaining samples as the low-risk threshold.

[0309] Optionally, the outlier determination unit includes:

[0310] A data point set construction unit, used to construct a data point set of disease risk values ​​of each sample;

[0311] a core point determination unit, configured to calculate, for each data point in the data point set, the number of data points within a preset neighborhood of the data point, and determine the data point as a core point if the number of data points within the preset neighborhood of the data point is not less than a preset minimum number of points;

[0312] A boundary point determination unit, configured to determine, for each core point in the data point set, data points that are not core points and are within the preset neighborhood of the core point as boundary points;

[0313] The outlier determination unit is used to determine that a data point in the data point set that is neither a core point nor a boundary point is an outlier, and to determine the disease risk value corresponding to each outlier point as an outlier value.

[0314] Optionally, the diagnostic marker set includes 13 VOCs, specifically 2 aromatic hydrocarbon compounds, 2 alkane compounds, 3 ketone compounds, 2 aldehyde compounds, 1 olefin compound and 3 other compounds, wherein:

[0315] The two aromatic hydrocarbon compounds are selected from a set of candidate aromatic hydrocarbon markers, and the set of candidate aromatic hydrocarbon markers includes o-xylene, 1-methylnaphthalene, 3-ethyltoluene, benzene, ethylbenzene, propylbenzene, trimethylbenzene, 1-methyl-3-propylbenzene and p-xylene;

[0316] The two alkane compounds are selected from a set of candidate alkane markers, and the set of candidate alkane markers includes hexane, cyclohexane, 2,4-dimethylheptane, 4-methyloctane, n-dodecane, octane, methylcyclohexane, propylcyclohexane, 2-methylheptane, propane, butane, 2-methylpentane and pentane;

[0317] The three ketone compounds are selected from a ketone candidate marker set, and the ketone candidate marker set includes 2-pentanone, 2-butanone, acetone, 2,3-hexanedione and cyclohexanone;

[0318] The two aldehyde compounds are selected from a set of candidate aldehyde markers, and the set of candidate aldehyde markers includes hexanal, nonanal, heptanal and octanal;

[0319] The one olefin compound is selected from a set of olefin candidate markers, and the set of olefin candidate markers includes isoprene, n-heptane, styrene and 1-octene.

[0320] Optionally, the device further comprises:

[0321] The exhaled breath acquisition unit of the subject to be tested is used to acquire the exhaled breath of the subject to be tested;

[0322] The model output unit is used to input the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model and output the risk assessment result of the subject to be tested.

[0323] Optionally, the model output unit includes:

[0324] The model output first subunit is used to input the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model to obtain the content value of each risk assessment analysis VOC in the exhaled breath of the subject to be tested;

[0325] The model outputs a second subunit, which is used to multiply the content value of each risk assessment and analysis VOC by the weight coefficient of the impact of the risk assessment and analysis VOC on the accuracy of malignant nodule determination through the pulmonary nodule malignancy risk assessment model to obtain the risk assessment score of the risk assessment and analysis VOC;

[0326] The model outputs a third subunit, which is used to accumulate the risk assessment scores of each risk assessment analysis VOC through the pulmonary nodule malignancy risk assessment model to obtain a comprehensive assessment score of benign and malignant pulmonary nodules of the subject to be tested;

[0327] The model outputs a fourth subunit, which is used to compare the comprehensive assessment score of benign and malignant pulmonary nodules with a high risk threshold and a low risk threshold through the pulmonary nodule malignancy risk assessment model, and output a risk assessment result of the object to be tested.

[0328] The device for constructing a model for assessing the risk of malignancy of pulmonary nodules provided in the embodiment of the present application can be applied to a device for constructing a model for assessing the risk of malignancy of pulmonary nodules, such as a terminal diagnosis and analysis system for benign and malignant pulmonary nodules. Figure 7 The hardware structure block diagram of the device for constructing a model for assessing the risk of malignancy of pulmonary nodules is shown in FIG. Figure 7 , the hardware structure of the device for constructing a model for assessing the risk of malignancy of pulmonary nodules may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;

[0329] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;

[0330] The processor 1 may be a central processing unit CPU, or an application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;

[0331] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., such as at least one disk memory;

[0332] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to:

[0333] acquiring exhaled air of a subject with benign pulmonary nodules and exhaled air of a subject with malignant pulmonary nodules as a plurality of samples;

[0334] Based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules, a primary screening of benign and malignant pulmonary nodule markers is performed to obtain a differential marker set;

[0335] By fusing the random forest algorithm and the recursive feature elimination combined with the cross-validation algorithm, the differential marker set is subjected to a secondary screening of benign and malignant markers of pulmonary nodules to obtain a diagnostic marker set;

[0336] Based on the diagnostic marker set and the multiple samples, a pulmonary nodule malignancy risk assessment model is constructed using the VOC risk scoring method.

[0337] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0338] The embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:

[0339] acquiring exhaled air of a subject with benign pulmonary nodules and exhaled air of a subject with malignant pulmonary nodules as a plurality of samples;

[0340] Based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules, a primary screening of benign and malignant pulmonary nodule markers is performed to obtain a differential marker set;

[0341] By fusing the random forest algorithm and the recursive feature elimination combined with the cross-validation algorithm, the differential marker set is subjected to a secondary screening of benign and malignant markers of pulmonary nodules to obtain a diagnostic marker set;

[0342] Based on the diagnostic marker set and the multiple samples, a pulmonary nodule malignancy risk assessment model is constructed using the VOC risk scoring method.

[0343] Optionally, the detailed functions and extended functions of the program may refer to the above description.

[0344] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0345] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0346] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for constructing a model for assessing the risk of malignancy of pulmonary nodules, characterized in that: include: acquiring exhaled air of a subject with benign pulmonary nodules and exhaled air of a subject with malignant pulmonary nodules as a plurality of samples; Based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules, a primary screening of benign and malignant pulmonary nodule markers is performed to obtain a differential marker set; By fusing the random forest algorithm and the recursive feature elimination combined with the cross-validation algorithm, the differential marker set is subjected to a secondary screening of benign and malignant markers of pulmonary nodules to obtain a diagnostic marker set; Based on the diagnostic marker set and the multiple samples, constructing a pulmonary nodule malignancy risk assessment model using a VOC risk scoring method; Based on the diagnostic marker set and the multiple samples, a pulmonary nodule malignancy risk assessment model is constructed using the VOC risk scoring method, including: Counting the relative content of each VOC in the diagnostic marker set in each sample, and calculating the weight coefficient of each VOC affecting the accuracy of malignant nodule determination; Determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample; The diagnostic marker set is used as a model risk assessment analysis factor, and a pulmonary nodule malignancy risk assessment model is constructed based on the weight coefficient of the impact of each VOC in the diagnostic marker set on the accuracy of malignant nodule determination, the high risk threshold and the low risk threshold; Determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample includes: For each sample, multiplying the weight coefficient of each VOC in the diagnostic marker set in the sample by the relative content of the VOC to obtain a risk assessment score for the VOC; For each sample, the risk assessment scores of each VOC in the diagnostic marker set in the sample are accumulated to obtain the disease risk value of the sample; Determining outliers in the disease risk values ​​of each sample, wherein the outliers include a lower limit outlier for malignant pulmonary nodules and an upper limit outlier for benign pulmonary nodules; All outliers below the lower limit of malignant pulmonary nodules were removed from the risk values ​​of all samples, and the threshold with the highest sensitivity of detecting malignant pulmonary nodules was used as the high-risk threshold in the risk values ​​of the remaining samples; All upper limit outliers of benign pulmonary nodules are eliminated from the disease risk values ​​of all samples, and the threshold with the highest specificity for benign pulmonary nodules is used as the low risk threshold in the disease risk values ​​of the remaining samples; The step of determining outliers in the disease risk values ​​of each sample comprises: Construct a data point set of disease risk values ​​for each sample; For each data point in the data point set, the number of data points in a preset neighborhood of the data point is calculated, and if the number of data points in the preset neighborhood of the data point is not less than a preset minimum number of points, the data point is determined to be a core point; For each core point in the data point set, determining data points that are not core points and are within the preset neighborhood of the core point as boundary points; Data points in the data point set that are neither core points nor boundary points are determined as outliers, and the disease risk value corresponding to each outlier point is determined as an outlier value.

2. The method according to claim 1, characterized in that The method further comprises fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm to perform a secondary screening of benign and malignant pulmonary nodule markers on the differential marker set to obtain a diagnostic marker set, including: Constructing a feature set with each VOC in the differential marker set as a feature; Performing random forest modeling through the feature set to obtain an initialized random forest model, and calculating a performance score of the random forest model on a test set of the feature set; Calculate the average reduced impurity of each feature in the random forest model, and remove the feature with the smallest average reduced impurity from the training set of the feature set to update the random forest model, and each time the random forest model is updated, the test set and the training set of the feature set are rotated once; The performance score of the updated random forest model is calculated on the test set of the feature set. If the performance score is the same as the performance score of the random forest model before the update, the feature set corresponding to the updated random forest model is determined to be the diagnostic marker set. Otherwise, the step of calculating the average reduced impurity of each feature in the random forest model and eliminating the feature with the smallest average reduced impurity on the training set of the feature set is returned to update the random forest model.

3. The method according to claim 2, characterized in that After calculating the performance score of the updated random forest model on the test set of the feature set, further comprising: If the number of features in the feature set corresponding to the updated random forest model reaches a preset number, the feature set corresponding to the random forest model with the highest performance score is selected from the multiple updated random forest models as the diagnostic marker set.

4. The method according to claim 2, characterized in that: The calculation of the average reduced impurity of each feature in the random forest model includes: The average reduced impurity of each feature in the random forest model is calculated using the following formula: ; in, Features The average reduction in impurity, is the total number of nodes in the decision tree of the random forest model, Use the feature in decision tree t The set of nodes to be split, Features The reduction in impurity when node j splits, is the Gini impurity of the parent node, is the Gini impurity of the left child node of the parent node, is the Gini impurity of the right child node of the parent node, is the total number of samples in the parent node, is the number of samples of the left child node, is the number of samples of the right child node, is the data set of node P, is the Gini impurity of node P, is the number of categories, is the proportion of the i-th category in the data set.

5. The method according to claim 1, characterized in that The calculation of the weight coefficient of each VOC affecting the accuracy of malignant nodule determination includes: A linear regression prediction model is constructed, and the expression function of the linear regression prediction model is: ; in, is the predicted probability value, is the parameter vector of the linear regression prediction model, is an input feature vector, wherein the input feature vector is composed of the relative content of each VOC in the diagnostic marker set in a single sample; Taking the log-likelihood loss function as the optimization target, the gradient descent algorithm is used to iteratively update the parameters of the parameter vector of the linear regression prediction model until the preset convergence condition is reached, and each parameter of the parameter vector of the linear regression prediction model is determined as the weight coefficient of each VOC affecting the accuracy of malignant nodule judgment.

6. The method according to any one of claims 1 to 5, characterized in that: The diagnostic marker set includes 13 VOCs, specifically 2 aromatic hydrocarbon compounds, 2 alkane compounds, 3 ketone compounds, 2 aldehyde compounds, 1 olefin compound and 3 other compounds, among which: The two aromatic hydrocarbon compounds are selected from a set of candidate aromatic hydrocarbon markers, and the set of candidate aromatic hydrocarbon markers includes o-xylene, 1-methylnaphthalene, 3-ethyltoluene, benzene, ethylbenzene, propylbenzene, trimethylbenzene, 1-methyl-3-propylbenzene and p-xylene; The two alkane compounds are selected from a set of candidate alkane markers, and the set of candidate alkane markers includes hexane, cyclohexane, 2,4-dimethylheptane, 4-methyloctane, n-dodecane, octane, methylcyclohexane, propylcyclohexane, 2-methylheptane, propane, butane, 2-methylpentane and pentane; The three ketone compounds are selected from a ketone candidate marker set, and the ketone candidate marker set includes 2-pentanone, 2-butanone, acetone, 2,3-hexanedione and cyclohexanone; The two aldehyde compounds are selected from a set of candidate aldehyde markers, and the set of candidate aldehyde markers includes hexanal, nonanal, heptanal and octanal; The one olefin compound is selected from a set of olefin candidate markers, and the set of olefin candidate markers includes isoprene, n-heptane, styrene and 1-octene.

7. The method according to any one of claims 1 to 5, characterized in that: The process of auxiliary assessment of the pulmonary nodule malignancy risk assessment model includes: Obtaining the exhaled breath of the subject to be tested; The exhaled breath of the subject to be tested is input into the pulmonary nodule malignancy risk assessment model, and the risk assessment result of the subject to be tested is output.

8. The method according to claim 7, characterized in that Inputting the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model, and outputting the risk assessment result of the subject to be tested, including: Inputting the exhaled breath of the subject to be tested into the pulmonary nodule malignancy risk assessment model to obtain the content value of each risk assessment analysis VOC in the exhaled breath of the subject to be tested; The risk assessment model for malignant lung nodules is used to multiply the content value of each risk assessment and analysis VOC by the weight coefficient of the impact of the risk assessment and analysis VOC on the accuracy of malignant nodule determination to obtain a risk assessment score for the risk assessment and analysis VOC; The risk assessment scores of each risk assessment analysis VOC are accumulated by the pulmonary nodule malignancy risk assessment model to obtain a comprehensive assessment score of benign and malignant pulmonary nodules of the subject to be tested; The pulmonary nodule malignancy risk assessment model is used to compare the comprehensive assessment score of benign and malignant pulmonary nodules with a high risk threshold and a low risk threshold, and output a risk assessment result of the object to be tested.

9. A model building device for assessing the risk of malignancy of pulmonary nodules, characterized in that: include: An exhaled breath sample acquisition unit, used to acquire the exhaled breath of a subject with benign pulmonary nodules and the exhaled breath of a subject with malignant pulmonary nodules as a plurality of samples; a differential marker screening unit, configured to perform a primary screening of benign and malignant markers of pulmonary nodules based on the exhaled air of the subject with benign pulmonary nodules and the exhaled air of the subject with malignant pulmonary nodules to obtain a differential marker set; A diagnostic marker secondary screening unit, used to perform secondary screening of benign and malignant markers of pulmonary nodules on the differential marker set by fusing a random forest algorithm and a recursive feature elimination combined with a cross-validation algorithm to obtain a diagnostic marker set; A risk assessment model building unit, configured to build a pulmonary nodule malignancy risk assessment model using a VOC risk scoring method based on the diagnostic marker set and the multiple samples; The risk assessment model building unit comprises: A relative content statistics unit, used to count the relative content of each VOC in the diagnostic marker set in each sample; A weight coefficient calculation unit, used to calculate the weight coefficient of each VOC affecting the accuracy of malignant nodule determination; A threshold determination unit, for determining a high risk threshold and a low risk threshold according to the weight coefficient and relative content of each VOC in the diagnostic marker set in each sample; A model building unit, used to use the diagnostic marker set as a model risk assessment analysis factor, and to build a pulmonary nodule malignancy risk assessment model based on the weight coefficient of the impact of each VOC in the diagnostic marker set on the accuracy of malignant nodule determination, the high risk threshold and the low risk threshold; The threshold determination unit comprises: A risk assessment score calculation unit, for each sample, multiplying the weight coefficient of each VOC in the diagnostic marker set in the sample by the relative content of the VOC to obtain a risk assessment score for the VOC; a disease risk value calculation unit, configured to accumulate, for each sample, the risk assessment scores of the VOCs in the diagnostic marker set in the sample to obtain the disease risk value of the sample; An outlier determination unit, used to determine outliers in the disease risk values ​​of each sample, wherein the outliers include a lower limit outlier of a malignant pulmonary nodule and an upper limit outlier of a benign pulmonary nodule; A high-risk threshold determination unit is used to eliminate all lower-limit outliers of malignant pulmonary nodules from the disease risk values ​​of all samples, and to use the threshold with the highest sensitivity for detecting malignant pulmonary nodules from the disease risk values ​​of the remaining samples as the high-risk threshold; A low-risk threshold determination unit is used to remove all upper-boundary outliers of benign pulmonary nodules from the disease risk values ​​of all samples, and to detect the threshold with the highest specificity for benign pulmonary nodules from the disease risk values ​​of the remaining samples as the low-risk threshold; The outlier determination unit comprises: A data point set construction unit, used to construct a data point set of disease risk values ​​of each sample; a core point determination unit, configured to calculate, for each data point in the data point set, the number of data points within a preset neighborhood of the data point, and determine the data point as a core point if the number of data points within the preset neighborhood of the data point is not less than a preset minimum number of points; A boundary point determination unit, configured to determine, for each core point in the data point set, data points that are not core points and are within the preset neighborhood of the core point as boundary points; The outlier determination unit is used to determine that a data point in the data point set that is neither a core point nor a boundary point is an outlier, and to determine the disease risk value corresponding to each outlier point as an outlier value.

10. A model building device for assessing the risk of malignancy of pulmonary nodules, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the model building method for assessing the malignancy risk of pulmonary nodules as described in any one of claims 1-8.

11. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the model building method for assessing the risk of malignancy of pulmonary nodules as described in any one of claims 1 to 8 is implemented.