Method and system for judging infection category based on dynamic spectrum technology

Through dynamic spectroscopy technology and PLS-DA model, infrared spectroscopy scanning and partial least squares method are used to solve the problem of blood drawing in the existing technology to determine the infection category, and non-invasive and rapid identification of infection category is achieved, which improves detection efficiency and Convenience.

CN119049045APending Publication Date: 2024-11-29吾征智能技术(北京)有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411130471.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

In the prior art, blood draws can accurately determine the type of infection. The method is cumbersome, time-consuming and labor-intensive, and inconvenient to patients, increasing the risk of infection.

Method used

Using a method based on dynamic spectroscopy technology, spectral information of blood under the human skin is collected through infrared spectroscopy scan, and a PLS-DA discriminant model is constructed using partial least squares method to determine and identify bacterial and viral infections.

Benefits of technology

It realizes the rapid, simple and convenient identification of infection categories without blood draw, shortens the detection time and is lossless and non-invasive.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119049045A_ABST
    Figure CN119049045A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and system for judging infection categories based on a dynamic spectrum technology, and the method comprises the steps: collecting a certain number of infrared spectrograms, and carrying out the spectrum processing of the infrared spectrograms, and obtaining the preprocessing data; constructing a PLS-DA discrimination model based on a partial least square method, and inputting the preprocessed data into the PLS-DA discrimination model for training to obtain an optimal PLS-DA discrimination model; and inputting a to-be-discriminated infrared spectrogram into the optimal PLS-DA discrimination model to obtain an infection type discrimination result corresponding to the to-be-discriminated infrared spectrogram, the infection type discrimination result comprising bacterial infection or virus infection. The problem that in the prior art, infection types can be accurately judged only through blood drawing is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a system, method, electronic device and storage medium for identifying infection categories based on dynamic spectroscopy technology. Background Art

[0002] Bacterial infection and viral infection are infectious diseases caused by two different pathogens. Generally speaking, the main way to distinguish between bacterial infection and viral infection is to do a routine blood test, that is, to draw blood for testing, and then observe the changes in relevant indicators to find out whether it is a bacterial infection or a viral infection. For example, the total number of white blood cells in bacterial infection will generally increase, while the total number of white blood cells in viral infection will generally decrease. The reason for this is that after bacterial infection, the human immune system response will be affected, so the white blood cells, especially the macrophages, are mobilized to migrate to the infected area and phagocytose cells, which will cause the total number of white blood cells to increase. After being infected by the virus, the virus will parasitize in the white blood cells, grow and replicate in the cells, so it will cause the death of white blood cells. In this case, the number of white blood cells will decrease. This situation usually occurs, but there are some exceptions that need further analysis. It may not be easy for non-professionals to judge, so you must go to the hospital for relevant examinations.

[0003] As we all know, blood routine examinations require blood to be drawn for testing. The amount of blood drawn is generally about 3 ml. The blood is diluted and dripped onto a special calculation plate, which is then placed under a microscope to count the number of blood cells. This method is cumbersome, time-consuming and labor-intensive, and also brings pain and inconvenience to patients, while increasing the chance of infection and preventing self-testing anytime and anywhere.

[0004] Therefore, there is an urgent need for a method that can identify the type of infection without drawing blood. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a system, method, electronic device and storage medium for distinguishing infection categories based on dynamic spectroscopy technology, so as to solve the problem that blood drawing is required in the prior art to accurately distinguish infection categories.

[0006] To achieve the above object, an embodiment of the present invention provides a method for identifying infection categories based on dynamic spectroscopy technology, and the method specifically includes:

[0007] Collecting a certain number of infrared spectra, performing spectral processing on the infrared spectra to obtain preprocessed data;

[0008] A PLS-DA discriminant model is constructed based on partial least squares method, and the preprocessed data is input into the PLS-DA discriminant model for training to obtain an optimal PLS-DA discriminant model;

[0009] The infrared spectrum to be identified is input into the optimal PLS-DA discrimination model to obtain an infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection.

[0010] On the basis of the above technical solution, the present invention can also be improved as follows:

[0011] Furthermore, the collecting of a certain number of infrared spectra and performing spectral processing on the infrared spectra to obtain preprocessed sample spectra include:

[0012] Extract several original feature variables;

[0013] The original characteristic variables are corrected by using the standard normal variable transformation method, and the indicators of abnormal points are eliminated to obtain the final characteristic variables, and the preprocessed data are obtained based on the final characteristic variables.

[0014] Furthermore, the PLS-DA discriminant model is constructed based on the partial least squares method, and the preprocessed data is input into the PLS-DA discriminant model for training to obtain the optimal PLS-DA discriminant model, including:

[0015] When there is potential multicollinearity and the number of observations is less than the number of variables, the threshold is set after the latent variable is selected based on the cross-validation results. If the predicted value is greater than the threshold, it belongs to the current category. When the predicted value is less than the threshold, it does not belong to the current category.

[0016] Furthermore, the PLS-DA discriminant model is constructed based on the partial least squares method, and the preprocessed data is input into the PLS-DA discriminant model for training to obtain the optimal PLS-DA discriminant model, which also includes:

[0017] The optimal number of latent variables was selected to construct the PLS-DA discriminant model.

[0018] Furthermore, the PLS-DA discriminant model is constructed based on the partial least squares method, and the preprocessed data is input into the PLS-DA discriminant model for training to obtain the optimal PLS-DA discriminant model, including:

[0019] Dividing the preprocessed data into a training set, a validation set, and a test set;

[0020] Training the PLS-DA discriminant model based on the training set;

[0021] Performing a performance evaluation on the trained PLS-DA discriminant model based on the validation set to obtain a PLS-DA discriminant model that meets the performance requirements;

[0022] The prediction results of the PLS-DA discriminant model that meets the performance conditions are evaluated based on the test set, and an evaluation index corresponding to the PLS-DA discriminant model is obtained.

[0023] Furthermore, the infrared spectrum to be identified is input into the optimal PLS-DA discrimination model to obtain the infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection, including:

[0024] Calculate the categorical variable value Ypre of the test set using formula (1);

[0025] Y pre =T pre BQ formula (1);

[0026] Where Tpre is the score of the test set spectral matrix Xpre, Q is the load matrix of the spectral matrix Y of the optimal spectral interval of the validation set, B = (T T T) -1 T T Y, T is the score matrix of the spectral matrix X of the optimal spectral interval of the validation set.

[0027] Furthermore, the infrared spectrum to be identified is input into the optimal PLS-DA discrimination model to obtain an infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection, and further includes:

[0028] When Ypre>0.5, the infrared spectrum to be identified is determined to be bacterial infection;

[0029] When Ypre<0.5, the infrared spectrum to be identified is determined to be virus-infected.

[0030] A system for identifying infection categories based on dynamic spectral technology, comprising:

[0031] A preprocessing module is used to collect a certain number of infrared spectra, perform spectral processing on the infrared spectra, and obtain preprocessing data;

[0032] A construction module is used to construct a PLS-DA discriminant model based on partial least squares method, input the preprocessed data into the PLS-DA discriminant model for training, and obtain an optimal PLS-DA discriminant model;

[0033] The discrimination module is used to input the infrared spectrum to be discriminated into the optimal PLS-DA discrimination model to obtain the infection category discrimination result corresponding to the infrared spectrum to be discriminated, wherein the infection category discrimination result includes bacterial infection or viral infection.

[0034] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the steps of the method are implemented when the processor executes the computer program.

[0035] A non-transitory computer-readable storage medium stores a computer program, which implements the steps of the method when executed by a processor.

[0036] The embodiments of the present invention have the following advantages:

[0037] The method for distinguishing the infection category based on dynamic spectroscopy technology in the present invention uses near-infrared dynamic spectroscopy technology to perform infrared spectroscopy on parts such as the human face or fingers, obtains all spectral information of blood samples under the human skin at infrared wavelengths, and realizes the determination and identification of bacterial and viral infections through chemometric algorithms. It has the advantages of simple and convenient operation, greatly shortened detection time, and is non-destructive and non-invasive. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0039] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0040] Figure 1 A flow chart of a method for identifying infection categories based on dynamic spectroscopy technology according to the present invention;

[0041] Figure 2 The present invention is a system architecture diagram for identifying infection categories based on dynamic spectroscopy technology;

[0042] Figure 3 This is a schematic diagram of the physical structure of the electronic device provided by the present invention.

[0043] The accompanying drawings are denoted as follows:

[0044] Preprocessing module 10 , construction module 20 , determination module 30 , electronic device 40 , processor 401 , memory 402 , bus 403 . DETAILED DESCRIPTION

[0045] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] Figure 1 The flowchart of the method for identifying infection categories based on dynamic spectroscopy technology according to the present invention is as follows: Figure 1 As shown, a method for identifying infection categories based on dynamic spectroscopy technology provided by an embodiment of the present invention includes the following steps:

[0047] S101, collecting a certain number of infrared spectra, performing spectral processing on the infrared spectra, and obtaining preprocessed data;

[0048] Specifically: Use a Fourier transform infrared spectrometer to perform infrared spectrum scanning on the face or fingers of the human body to obtain all the spectral information of the blood sample under the human skin at the infrared wavelength;

[0049] Choose the appropriate spectral range: within the range of 400 to 900 cm-1;

[0050] Extract several original feature variables;

[0051] The original characteristic variables are corrected by using the standard normal variate transformation (SNV), which is used to reduce the influence of uneven particle size and particle surface scattering, thereby reducing the systematic error. Another method commonly used in spectroscopy analysis to improve the apparent resolution of the spectrum, resolve overlapping peaks, and eliminate baselines and other background interferences is derivative processing. The Q-residuals and leverage values ​​of the sample are commonly used indicators for removing outliers. The Q-residual reflects the quality of the corresponding sample's prediction ability, while the leverage value reflects the importance of the sample's influence on the model. When both of the Q-residuals of a certain sample are relatively high, the sample has a high risk of being an outlier and can be removed. Finally, no sample is determined as an outlier and is removed from the model. The indicator of the outlier is removed to obtain the final characteristic variable, and the preprocessed data is obtained based on the final characteristic variable.

[0052] S102, constructing a PLS-DA discriminant model based on partial least squares method, inputting the preprocessed data into the PLS-DA discriminant model for training, and obtaining an optimal PLS-DA discriminant model;

[0053] Specifically, the preprocessed data is divided into a training set, a validation set and a test set;

[0054] Training the PLS-DA discriminant model based on the training set;

[0055] Performing a performance evaluation on the trained PLS-DA discriminant model based on the validation set to obtain a PLS-DA discriminant model that meets the performance requirements;

[0056] The prediction results of the PLS-DA discriminant model that meets the performance conditions are evaluated based on the test set, and an evaluation index corresponding to the PLS-DA discriminant model is obtained.

[0057] Based on the validation set, the trained PLS-DA discriminant model is evaluated for performance, and a PLS-DA discriminant model that meets the performance conditions is obtained; based on the test set, the similarity calculation results of the PLS-DA discriminant model that meets the performance conditions are evaluated, and the evaluation index corresponding to the PLS-DA discriminant model is obtained. The performance of the PLS-DA discriminant model is evaluated, and a percentage score is obtained (i.e., the highest score is 100 points and the lowest score is 0 points). Based on the percentage score, a PLS-DA discriminant model with a score greater than a set value is determined. For example, a PLS-DA discriminant model with a score greater than 90 points is a PLS-DA discriminant model that meets the performance conditions.

[0058] The PLS-DA discriminant model that meets the performance conditions is evaluated and the evaluation index of the PLS-DA discriminant model is obtained. The evaluation value corresponding to each evaluation index is calculated and the evaluation value is used to represent the ability value of the PLS-DA discriminant model on the evaluation index.

[0059] A PLS-DA discriminant model of partial least squares discriminant analysis was established to determine the type of bacteria or virus that the sample was infected with at this time. At the same time, a quantitative detection model was established using partial least squares PLS to determine the indicators of bacteria and viruses that the sample was infected with at this time, thereby confirming whether the sample was infected with bacteria or viruses.

[0060] The categorical variable is set, where the categorical variable of the bacterial infection sample is -1, and the categorical variable of the viral infection sample is 1;

[0061] Select the most suitable spectral interval, perform partial least squares PLS regression on the most suitable spectral interval of the validation set samples and the categorical variables corresponding to the samples, and establish a PLS-DA model of the categorical variables and spectral features of the validation set samples. Generally speaking, patients with bacterial infections will show increased white blood cell counts and increased neutrophil ratios in blood routine examinations. Patients with viral infections generally have normal or decreased white blood cell counts, and may also have increased lymphocytes. Here, at least several indicators are involved: increased white blood cell counts, increased neutrophil ratios, increased lymphocytes, etc.

[0062] Partial Least Squares Discriminant Analysis: Partial Least Squares Discriminant Analysis (PLS-DA) is a commonly used supervised statistical pattern recognition method for classifying and identifying samples based on the PLS regression method. When there is potential multicollinearity and the number of observations is less than the number of variables, PLS-DA is one of the best chemometric methods for qualitative prediction. The threshold is set after selecting the latent variables (LVs, LatentVariables) based on the cross-validation results. If the predicted value is judged to be greater than the threshold, the sample belongs to the current category, otherwise the sample does not belong to the current category. In establishing the PLS-DA model, determining LVs is a key step, and cross-validation (CV) with leave-one-out method is also required. In terms of the correct classification rate of CV, the optimal number of LVs is selected here to build the final prediction model.

[0063] S103, inputting the infrared spectrum to be identified into the optimal PLS-DA discrimination model to obtain the infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection;

[0064] Specifically, in addition, the test set is loaded into the PLS-DA model to externally verify the classification ability of the model in more general and complex situations.

[0065] The specific steps are as follows:

[0066] 1) The spectral matrices X and Y of the optimal spectral interval of the validation set are decomposed with the set classification variable values, and the model is: X = TP + E; Y = UQ + F.

[0067] Where, T and U are the score matrices of matrix X and Y respectively; P and Q are the loading matrices of matrix X and Y respectively; E and F are the PLS fitting residual matrices of matrix X and Y respectively;

[0068] 2) Perform linear regression on T and U to obtain the PLS-DA model of the validation set. The regression equation is:

[0069] U=TB

[0070] 3) According to the decomposition model in the above steps and the obtained P value, the score Tpre of the sample spectrum matrix Xpre of the prediction set is calculated, and then the classification variable value Ypre of the prediction set is calculated.

[0071] The specific calculation formula is: V pre =T pre BQ;

[0072] Where Tpre is the score of the test set spectral matrix Xpre, Q is the load matrix of the spectral matrix Y of the optimal spectral interval of the validation set, B = (T T T) -1 T T Y, T is the score matrix of the spectral matrix X of the optimal spectral interval of the validation set.

[0073] When Ypre>0.5, the infrared spectrum to be identified is determined to be bacterial infection;

[0074] When Ypre<0.5, the infrared spectrum to be identified is determined to be virus-infected.

[0075] The method for distinguishing infection categories based on dynamic spectroscopy technology collects a certain number of infrared spectra, performs spectral processing on the infrared spectra to obtain preprocessed data; constructs a PLS-DA discrimination model based on partial least squares method, inputs the preprocessed data into the PLS-DA discrimination model for training, and obtains the optimal PLS-DA discrimination model; inputs the infrared spectra to be distinguished into the optimal PLS-DA discrimination model to obtain the infection category discrimination result corresponding to the infrared spectra to be distinguished, wherein the infection category discrimination result includes bacterial infection or viral infection. The problem that blood drawing is required to accurately distinguish the infection category in the prior art is solved.

[0076] Figure 2 FIG. 1 is a flow chart of a system embodiment of the present invention for distinguishing infection categories based on dynamic spectroscopy technology; Figure 2 As shown, a system for distinguishing infection categories based on dynamic spectroscopy technology provided by an embodiment of the present invention includes the following steps:

[0077] The preprocessing module 10 is used to collect a certain number of infrared spectra and perform spectral processing on the infrared spectra to obtain preprocessing data;

[0078] The pre-processing module 10 is also used for:

[0079] Extract several original feature variables;

[0080] The original characteristic variables are corrected by using the standard normal variable transformation method, and the indicators of abnormal points are eliminated to obtain the final characteristic variables, and the preprocessed data are obtained based on the final characteristic variables.

[0081] A construction module 20 is used to construct a PLS-DA discriminant model based on partial least squares method, input the preprocessed data into the PLS-DA discriminant model for training, and obtain an optimal PLS-DA discriminant model;

[0082] The building block 20 is also used for:

[0083] When there is potential multicollinearity and the number of observations is less than the number of variables, the threshold is set after the latent variable is selected based on the cross-validation results. If the predicted value is greater than the threshold, it belongs to the current category. When the predicted value is less than the threshold, it does not belong to the current category.

[0084] The optimal number of latent variables was selected to construct the PLS-DA discriminant model.

[0085] Dividing the preprocessed data into a training set, a validation set, and a test set;

[0086] Training the PLS-DA discriminant model based on the training set;

[0087] Performing a performance evaluation on the trained PLS-DA discriminant model based on the validation set to obtain a PLS-DA discriminant model that meets the performance requirements;

[0088] The prediction result of the PLS-DA discriminant model that meets the performance condition is evaluated based on the test set, and an evaluation index corresponding to the PLS-DA discriminant model is obtained.

[0089] The discrimination module 30 is used to input the infrared spectrum to be discriminated into the optimal PLS-DA discrimination model to obtain the infection category discrimination result corresponding to the infrared spectrum to be discriminated, wherein the infection category discrimination result includes bacterial infection or viral infection.

[0090] The determination module 30 is also used for:

[0091] Calculate the categorical variable value Ypre of the test set using formula (1);

[0092] Y pre =T pre BQ formula (1);

[0093] Where Tpre is the score of the test set spectral matrix Xpre, Q is the load matrix of the spectral matrix Y of the optimal spectral interval of the validation set, B = (T T T) -1 T T Y, T is the score matrix of the spectral matrix X of the optimal spectral interval of the validation set.

[0094] When Ypre>0.5, the infrared spectrum to be identified is determined to be bacterial infection;

[0095] When Ypre<0.5, the infrared spectrum to be identified is determined to be virus-infected.

[0096] The present invention discloses a system for distinguishing infection categories based on dynamic spectral technology. The system collects a certain number of infrared spectra through a preprocessing module 10, performs spectral processing on the infrared spectra, and obtains preprocessed data. The system constructs a PLS-DA discrimination model based on the partial least squares method through a construction module 20, inputs the preprocessed data into the PLS-DA discrimination model for training, and obtains an optimal PLS-DA discrimination model. The system inputs the infrared spectra to be distinguished into the optimal PLS-DA discrimination model through a discrimination module 30, and obtains an infection category discrimination result corresponding to the infrared spectra to be distinguished, wherein the infection category discrimination result includes bacterial infection or viral infection. The method for distinguishing infection categories based on dynamic spectral technology solves the problem that blood drawing is required in the prior art to accurately distinguish infection categories.

[0097] Figure 3 A schematic diagram of the physical structure of an electronic device provided in an embodiment of the present invention, such as Figure 3 As shown, the electronic device 40 includes: a processor 401 (processor), a memory 402 (memory) and a bus 403;

[0098] The processor 401 and the memory 402 communicate with each other via the bus 403;

[0099] The processor 401 is used to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: collecting a certain number of infrared spectra, performing spectral processing on the infrared spectra, and obtaining preprocessed data; constructing a PLS-DA discriminant model based on the partial least squares method, inputting the preprocessed data into the PLS-DA discriminant model for training, and obtaining an optimal PLS-DA discriminant model; inputting the infrared spectra to be discriminated into the optimal PLS-DA discriminant model to obtain an infection category discrimination result corresponding to the infrared spectra to be discriminated, wherein the infection category discrimination result includes bacterial infection or viral infection.

[0100] The present embodiment provides a non-transitory computer-readable storage medium, which stores computer instructions. The computer instructions enable a computer to execute the methods provided by the above-mentioned method embodiments, for example, including: collecting a certain number of infrared spectra, performing spectral processing on the infrared spectra, and obtaining preprocessed data; constructing a PLS-DA discriminant model based on partial least squares method, inputting the preprocessed data into the PLS-DA discriminant model for training, and obtaining an optimal PLS-DA discriminant model; inputting the infrared spectra to be discriminated into the optimal PLS-DA discriminant model to obtain an infection category discrimination result corresponding to the infrared spectra to be discriminated, wherein the infection category discrimination result includes bacterial infection or viral infection.

[0101] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various storage media that can store program codes.

[0102] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0104] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A method for identifying infection categories based on dynamic spectroscopy technology, characterized in that: The method for identifying infection categories based on dynamic spectroscopy technology specifically includes: Collecting a certain number of infrared spectra, performing spectral processing on the infrared spectra to obtain preprocessed data; A PLS-DA discriminant model is constructed based on partial least squares method, and the preprocessed data is input into the PLS-DA discriminant model for training to obtain an optimal PLS-DA discriminant model; The infrared spectrum to be identified is input into the optimal PLS-DA discrimination model to obtain an infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection.

2. The method for identifying infection categories based on dynamic spectroscopy technology according to claim 1 is characterized in that: The collecting of a certain number of infrared spectra and performing spectral processing on the infrared spectra to obtain preprocessed sample spectra include: Extract several original feature variables; The original characteristic variables are corrected by using the standard normal variable transformation method, and the indicators of abnormal points are eliminated to obtain the final characteristic variables, and the preprocessed data are obtained based on the final characteristic variables.

3. The method for identifying infection categories based on dynamic spectroscopy technology according to claim 1 is characterized in that: The method of constructing a PLS-DA discriminant model based on partial least squares method, inputting the preprocessed data into the PLS-DA discriminant model for training, and obtaining an optimal PLS-DA discriminant model comprises: When there is potential multicollinearity and the number of observations is less than the number of variables, the threshold is set after the latent variable is selected based on the cross-validation results. If the predicted value is greater than the threshold, it belongs to the current category. When the predicted value is less than the threshold, it does not belong to the current category.

4. The method for identifying infection categories based on dynamic spectroscopy technology according to claim 3 is characterized in that: The method of constructing a PLS-DA discriminant model based on partial least squares method, inputting the preprocessed data into the PLS-DA discriminant model for training, and obtaining an optimal PLS-DA discriminant model further includes: The optimal number of latent variables was selected to construct the PLS-DA discriminant model.

5. The method for identifying infection categories based on dynamic spectroscopy technology according to claim 1 is characterized in that: The method of constructing a PLS-DA discriminant model based on partial least squares method, inputting the preprocessed data into the PLS-DA discriminant model for training, and obtaining an optimal PLS-DA discriminant model comprises: Dividing the preprocessed data into a training set, a validation set and a test set; Training the PLS-DA discriminant model based on the training set; Performing a performance evaluation on the trained PLS-DA discriminant model based on the validation set to obtain a PLS-DA discriminant model that meets the performance requirements; The prediction results of the PLS-DA discriminant model that meets the performance conditions are evaluated based on the test set, and an evaluation index corresponding to the PLS-DA discriminant model is obtained.

6. The method for identifying infection categories based on dynamic spectroscopy technology according to claim 5 is characterized in that: The step of inputting the infrared spectrum to be identified into the optimal PLS-DA discrimination model to obtain an infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection, including: Calculate the categorical variable value Ypre of the test set using formula (1); Y pre =T pre BQ formula (1); Where Tpre is the score of the test set spectral matrix Xpre, Q is the load matrix of the spectral matrix Y of the optimal spectral interval of the validation set, B = (T T T) -1 T T Y, T is the score matrix of the spectral matrix X of the optimal spectral interval of the validation set.

7. The method for identifying infection categories based on dynamic spectroscopy technology according to claim 6 is characterized in that: The infrared spectrum to be identified is input into the optimal PLS-DA discrimination model to obtain an infection category discrimination result corresponding to the infrared spectrum to be identified, wherein the infection category discrimination result includes bacterial infection or viral infection, and further includes: When Ypre>0.5, the infrared spectrum to be identified is determined to be bacterial infection; When Ypre<0.5, the infrared spectrum to be identified is determined to be virus-infected.

8. A system for identifying infection categories based on dynamic spectroscopy technology, characterized in that: include: A preprocessing module is used to collect a certain number of infrared spectra and perform spectral processing on the infrared spectra to obtain preprocessing data; A construction module is used to construct a PLS-DA discriminant model based on partial least squares method, input the preprocessed data into the PLS-DA discriminant model for training, and obtain an optimal PLS-DA discriminant model; The discrimination module is used to input the infrared spectrum to be discriminated into the optimal PLS-DA discrimination model to obtain the infection category discrimination result corresponding to the infrared spectrum to be discriminated, wherein the infection category discrimination result includes bacterial infection or viral infection.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A non-transitory computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Spectrum-based method for detecting infection markers in respiratory tract secretions

    CN121384916A