Machine learning based method and system for quantification of antibiotic resistance gene inactivation
By combining machine learning with data from qPCR and resistance transformation activity tests, a prediction model for degradation rate and inactivation rate was established. This solved the problems of inaccurate and time-consuming assessment of resistance gene inactivation effects in existing technologies, and enabled rapid and accurate assessment of resistance gene removal effects.
Patent Information
- Application Number
- CN202410169756.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2044-02-06
AI Technical Summary
In existing technologies, qPCR technology cannot fully and accurately reflect the biochemical characteristics of resistance genes, and the resistance transformation activity test is time-consuming, resulting in insufficient speed and accuracy in assessing the inactivation effect of resistance genes.
Using machine learning methods and combining data from qPCR and resistance transformation activity tests, a prediction model for degradation rate and inactivation rate was established. Through a tandem model and the development of a web-based prediction platform, a rapid and accurate assessment of the resistance gene removal effect was achieved.
This method improves the efficiency and accuracy of evaluating the removal effect of resistance genes in homogeneous sterilization processes, overcomes the limitations of qPCR length and the time-consuming nature of resistance transformation activity testing, and provides a rapid and accurate method for quantifying inactivation.
Smart Images

Figure HDA0004700696620000011 
Figure HDA0004700696620000012 
Figure HDA0004700696620000021
Abstract
Description
Technical Field
[0001] This application relates to the field of quantitative detection technology of antibiotic resistance genes, and in particular to a machine learning-based method and system for quantifying resistance genes. Background Technology
[0002] Since the 1940s, antibiotics have been widely used in disease treatment, livestock and aquaculture, safeguarding the health of countless people, saving hundreds of millions of lives, and greatly promoting socio-economic development. However, with the large-scale use and even abuse of antibiotics, antibiotic resistance is posing new risks to public health. Antibiotic resistance is generated and spread by antibiotic resistance genes, which are naturally occurring and selectively spread under antibiotic environmental pressure. After antibiotic resistance genes are expressed in their host microorganisms, the host microorganisms develop resistance to antibiotics, thereby reducing or even eliminating the efficacy of antibiotics against some pathogens.
[0003] Therefore, inactivating antibiotic resistance genes in the environment—the vectors of antibiotic resistance—is crucial for safeguarding human health and safety. Currently, several disinfection processes, such as ultraviolet, free chlorine, ozone, and hydrogen peroxide disinfection, are used to degrade and inactivate resistance genes in the aquatic environment. In these disinfection applications, quantitative polymerase chain reaction (qPCR) is often used to quantitatively detect the concentration of resistance genes. qPCR replicates and amplifies the target gene fragment using amplicons to increase the target gene concentration to the detection limit, and then calculates the target gene concentration using a known amplification factor. However, the length of amplicons is generally only a few hundred to a thousand bp, replicating only a small fragment of the entire resistance gene chain, which is thousands or even tens of thousands of bp long and possesses resistance capabilities. This leads to inaccuracies in resistance gene detection using qPCR. Furthermore, some resistance gene fragments may still remain after disinfection. Therefore, to more accurately determine the inactivation of resistance genes after disinfection, resistance transformation activity testing has been widely used in recent years for evaluating resistance gene removal. In the resistance transformation activity assay, a sterilized resistance gene is inoculated into recipient cells, which are then cultured in a selective medium containing antibiotics. If the resistance gene retains its resistance transformation activity, the recipient cells will survive in the selective medium; otherwise, no cell proliferation will be observed. By comparing the cell counts in both cases, the loss of resistance gene activity after sterilization can be quantitatively assessed. Because the resistance transformation activity assay most closely resembles the process of resistance genes infecting microorganisms and expressing resistance, it is considered the gold standard for assessing resistance gene inactivation. However, due to the involvement of microbial culture, the resistance transformation activity assay requires significant economic and time costs. In contrast, the qPCR assay is relatively gradual and less time-consuming.
[0004] Therefore, there is an urgent need for a non-experimental method and tool that can combine rapid qPCR with accurate resistance transformation activity testing to quantify resistance gene inactivation. Summary of the Invention
[0005] The purpose of this invention is to provide a machine learning-based method for quantifying the inactivation of antibiotic resistance genes, in order to overcome the shortcomings of existing technologies.
[0006] A machine learning-based method for quantifying antibiotic resistance gene inactivation includes,
[0007] S10, obtaining the optimal model for predicting the degradation rate includes the following steps:
[0008] S11: A study on the determination of resistance gene degradation rate under homogeneous sterilization process using qPCR technology, collected from published literature;
[0009] S12: Collect known or hypothesized parameters related to the degradation process of resistance genes from the literature and use them as input features to predict the degradation rate of resistance genes;
[0010] S13: Clean the dataset, divide the dataset, select multiple algorithms to train the model, optimize the model parameters, and remove unimportant features;
[0011] S14: Selecting regression coefficients R on the validation set under different hyperparameter combinations of the same algorithm 2 The combination of hyperparameters that yields the highest value and minimizes the root mean square error (RMSE) is selected as the optimal model for this algorithm. For the optimal model of different algorithms, the R-value on the test set is chosen. 2 The model with the highest RMSE and the smallest RMSE is selected as the optimal model for predicting degradation rate.
[0012] S20, obtaining the optimal model for inactivation rate prediction includes the following steps:
[0013] S21: Collect research from published literature on the determination of resistance gene inactivation rate under homogeneous disinfection process using resistance transformation activity test;
[0014] S22: Collect known or hypothesized parameters related to the resistance gene inactivation process from the literature and use them as input features to predict the resistance gene inactivation rate;
[0015] S23: Clean the dataset, divide the dataset, and select multiple algorithms to train the model;
[0016] S24: Under different hyperparameter combinations of the same algorithm, select R on the validation set. 2 The combination of hyperparameters that yields the highest value and the smallest RMSE is selected as the optimal model for the algorithm. For the optimal model of different algorithms, the R-value on the test set is chosen. 2 The model with the highest RMSE and the smallest RMSE is selected as the optimal model for predicting inactivation rate.
[0017] S30, the stage of combining the degradation rate prediction model and the inactivation rate prediction model to predict the inactivation rate includes the following steps:
[0018] S31: Select the best degradation rate prediction model in S14 and the best inactivation rate prediction model in S24. Use the output of the degradation rate prediction model, i.e. the predicted value of the degradation rate, as the degradation rate value required as the input variable of the inactivation rate prediction model to predict the inactivation rate of the resistant gene, thereby realizing the tandem connection of the degradation rate prediction model and the inactivation rate prediction model.
[0019] S32: Connect and encapsulate the optimal degradation rate prediction model in S14 and the optimal inactivation rate prediction model in S24, and rewrite them into a web-based prediction platform.
[0020] In one possible design, in step S32, the optimal degradation rate prediction model in S14 and the optimal inactivation rate prediction model in S24 are connected in series. This means that the output of the optimal degradation rate prediction model, i.e., the degradation rate of the resistance gene, is passed to the corresponding resistance gene degradation rate as an input feature variable in the optimal inactivation rate prediction model. Rewriting the encapsulated model into a web-based prediction platform means using languages including but not limited to Python, PHP, and Java to write the Python-based model into a web-based operation page. Users can choose to calculate the degradation rate or inactivation rate of the resistance gene separately, and the model collects the feature variables required by the user through a question-and-answer method. Then, the model directly provides the prediction results required by the user through internal calculation.
[0021] In one possible design, in steps S13 and S23, the dataset is divided into a training set and a test set in a 9:1 ratio, and then the model is trained on the training set data using a nine-fold cross-validation method; the machine learning algorithm includes, but is not limited to, random forest, gradient boosting decision tree, extreme gradient boosting, light gradient boosting machine, and artificial neural network algorithm; the methods for optimizing model parameters and removing unimportant features include, but are not limited to, GridSearchCV and RFECV.
[0022] In one possible design, the parameters related to the degradation process of the resistance gene in step S12 include, but are not limited to, chemical parameters such as disinfectant consumption, temperature, and pH, biological parameters such as the location of the resistance gene in the host cell, and gene parameters such as the length of the resistance gene and its gene sequence information, wherein the gene sequence information is the relative content of different bases, dimers, and trimers.
[0023] In one possible design, the evaluation metrics for model performance in steps S14 and S24 include, but are not limited to, root mean square error, regression coefficient, and correlation coefficient.
[0024] In one possible design, the parameters related to the inactivation process of the resistance gene in step S22 include, but are not limited to, chemical parameters such as the amount of disinfectant consumed, temperature, pH, and the concentration of antibiotics added to the selective culture medium; biological parameters such as the location of the resistance gene in the host cell and whether the recipient bacteria have DNA repair capabilities in the resistance transformation activity test; and gene parameters such as the length of the resistance gene and its gene sequence information, wherein the gene sequence information is the relative content of different bases, dimers, and trimers.
[0025] In one possible design, the homogeneous disinfection process in step S11 includes, but is not limited to, homogeneous disinfection methods such as ultraviolet light, free chlorine, ozone, and hydrogen peroxide.
[0026] The present invention also provides an antibiotic resistance gene inactivation quantification device, comprising a memory, a control processor, and a computer program stored in the memory and executable on the control processor, wherein the control processor executes the program to implement the aforementioned antibiotic resistance gene inactivation quantification method.
[0027] The present invention also provides a control system, including the aforementioned antibiotic resistance gene inactivation quantification device.
[0028] The present invention also provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the aforementioned method for quantifying the inactivation of antibiotic resistance genes.
[0029] Compared with the prior art, the advantages and beneficial effects of the present invention are:
[0030] (1) This invention overcomes the defect in qPCR technology that cannot fully and accurately reflect all the biochemical characteristics of the detected gene due to the limitation of amplicon length;
[0031] (2) This invention improves the defect of excessively long culture time for resistance genes and recipient bacteria in the resistance transformation activity test;
[0032] (3) This invention accelerates the evaluation process of the removal effect of resistance genes in homogeneous disinfection processes. By combining disinfection process parameters and machine learning methods, this invention can improve the efficiency and accuracy of evaluating the removal effect of resistance genes in homogeneous disinfection processes.
[0033] In summary, this method utilizes machine learning to fit the relationship between the sequence information of the resistance gene, disinfection conditions, degradation rate measured by quantitative polymerase chain reaction, and inactivation rate measured by resistance transformation activity test, thus achieving rapid prediction of the degradation and inactivation rates of the resistance gene in homogeneous disinfection processes. Furthermore, the degradation rate of the resistance gene predicted by the degradation rate prediction model is used as input to the inactivation rate prediction model, realizing the cascading of the two-stage models. A web-based prediction platform is provided, developing a practical tool for rapidly predicting the removal effect of resistance genes. This enables rapid and accurate assessment of the removal effect of resistance genes under known resistance gene sequence information and given disinfection conditions. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1This is a schematic diagram of the main steps in the embodiments of this application;
[0036] Figure 2 This is a graph showing the predicted degradation rate of the resistance gene in the homogeneous sterilization process in the examples.
[0037] Figure 3 The inactivation rate of the resistance gene in the homogeneous sterilization process is the predicted result in the example.
[0038] Figure 4 The results of the prediction of the inactivation rate of the antagonistic gene in the homogeneous disinfection process are shown in the examples of the optimal degradation rate prediction model and the optimal inactivation rate prediction model.
[0039] Figure 5 This is the user interface of the web-based prediction platform in the embodiment. Detailed Implementation
[0040] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0041] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0042] To further illustrate the various embodiments, the present invention provides accompanying drawings, which are part of the disclosure of the present invention. These drawings are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these drawings, those skilled in the art should be able to understand other possible implementation methods and the advantages of the present invention. The components in the drawings are not drawn to scale, and similar component symbols are generally used to represent similar components.
[0043] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0044] It should be noted that, where there is no conflict, the features in the embodiments of the present invention can be combined with each other.
[0045] The present invention provides a machine learning-based method and system for quantifying antibiotic resistance gene inactivation. In at least one embodiment, the method mainly includes steps such as predicting resistance gene degradation, predicting resistance gene inactivation, and predicting inactivation based on degradation prediction results. The main methods are as follows:
[0046] The first step is to obtain a predictive model for resistant gene degradation:
[0047] 1) Collect studies on the determination of resistance gene degradation rate under homogeneous sterilization process using qPCR technology from published literature, collect known or hypothesized parameters related to the resistance gene degradation process, and use them as input features to predict the output variable, i.e. the degradation rate of resistance gene;
[0048] 2) Perform data cleaning on the collected data to remove outliers, errors, and null values; and divide the dataset into training, validation, and test sets.
[0049] 3) Select commonly used machine learning algorithms to train the model, prevent overfitting during training, optimize model parameters, and screen feature variables;
[0050] 4) Compare the best models of each algorithm to determine the best model for predicting the degradation rate of resistance genes in homogeneous sterilization process, and call these models the optimal degradation prediction model M1.
[0051] The second step is to obtain a predictive model for antagonistic gene inactivation:
[0052] 1) Collect studies from published literature on the determination of resistance gene inactivation rate under homogeneous disinfection process using resistance transformation activity, and collect known or hypothesized parameters related to the resistance gene inactivation process as input features to predict the output variable, i.e., the inactivation rate of resistance gene;
[0053] 2) The partitioning of the dataset is similar to that in step 1, but it should be noted that the data containing the inactivated part in the training set of step 1, 2) is extracted as the training set for this step.
[0054] 3) The selection, training, and optimization of the model are consistent with step 3).
[0055] 4) The evaluation and comparison of the models are consistent with step 4) to determine the best model for predicting the inactivation rate of resistance genes in homogeneous sterilization processes, and these models are called the optimal inactivation prediction models M2.
[0056] The third step involves quantitatively predicting the inactivation of antagonistic genes based on prediction models for antagonistic gene degradation and inactivation:
[0057] 1) Use the output of model M1 as one of the input feature variables of model M2, namely the degradation rate of the resistance gene, and combine it with other necessary feature variables to output the predicted value of the resistance gene inactivation rate;
[0058] 2) Connect and encapsulate the code of model M1 and model M2, and rewrite it into a web-based prediction platform.
[0059] Compared with the prior art, the advantages and beneficial effects of the present invention are:
[0060] (1) This invention overcomes the defect in qPCR technology that cannot fully and accurately reflect all the biochemical characteristics of the detected gene due to the limitation of amplicon length;
[0061] (2) This invention improves the defect of excessively long culture time for resistance genes and recipient bacteria in the resistance transformation activity test;
[0062] (3) This invention accelerates the evaluation process of the removal effect of resistance genes in homogeneous disinfection processes. By combining disinfection process parameters and machine learning methods, this invention can improve the efficiency and accuracy of evaluating the removal effect of resistance genes in homogeneous disinfection processes.
[0063] In at least one embodiment, such as Figure 1 As shown, the method of the present invention includes the following steps:
[0064] 1. Anti-resistance gene degradation rate prediction stage:
[0065] Step S11: Collect data from published literature on the determination of homogeneous disinfection processes using qPCR, including the degradation of antibiotic resistance genes by ultraviolet light, free chlorine, ozone, and hydrogen peroxide. The data includes known or hypothesized parameters related to the degradation process of resistance genes, such as chemical parameters like disinfectant consumption, temperature, and pH; biological parameters such as whether the resistance gene is located on a plasmid or chromosome, intracellular or extracellular, and whether the host bacteria are Gram-negative or Gram-positive; and genetic parameters such as the length of the resistance gene and its sequence information. Specifically, the One-Hot technique was used to convert the binary problem in biological parameters into "0 / 1" values; the relative contents of four bases (A, T, C, G), sixteen dimers (such as TC), and sixty-four trimers (such as TCG) in each resistance gene sequence were calculated (using an automatic calculation program written in Python 3.7: https: / / github.com / ruixinghuang / Automatic-calculation-of-gene-sequence-information). This quantified the genetic information of the resistance gene, and together with chemical and biological parameters, it was used as input features to predict the output variable, namely the degradation rate of the resistance gene.
[0066] Step S12: Clean the collected data to remove outliers, erroneous values, and null values; remove samples containing outliers and erroneous values, and use the mean method to fill in the null values;
[0067] Step S13: Split the dataset. Since the different subsets categorized according to disinfection processes contain varying amounts of data, to ensure balanced model performance across each process-based subset, data is randomly extracted from the four subsets in a 9:1 ratio to serve as a sub-training set and a sub-test set. These two subsets are then combined into the model's training and test sets. It's important to note that because the datasets corresponding to different types of resistance genes vary in size, some smaller datasets of resistance genes (such as blt, ampC, and blaTEM-1) are separated and added to the test set. In this way, these resistance gene types are not involved in the model training, allowing the model's predictive ability for unfamiliar resistance gene types to be evaluated during the model testing phase.
[0068] Step S14: Select commonly used machine learning algorithms, such as Random Forest (RF), Gradient Boosting Decision Tree (GBDT), Extreme Gradient Boosting (XGBoost), and Light Gradient Boosting Machine (LightGBM), to train the model. To ensure the robustness of the results and the stability of the model, the training process uses nine-fold cross-validation based on the training set; GridSearchCV is used to permutate and combine model parameters to obtain the best model for the given input features; RFECV is used to remove unimportant feature variables and reduce the dimensionality of input features to ensure the simplicity of model input and the convenience of data collection.
[0069] Step S15: Using the coefficient of determination (R²) and root mean square error (RMSE) as indicators, the optimal model for each algorithm is compared to determine the best model for predicting the degradation rate of resistance genes in homogeneous sterilization processes. In this example, the optimal degradation prediction model is XGBoost, and its prediction effect on the degradation rate of resistance genes is as follows: Figure 2 As shown.
[0070] 2. Anti-resistance gene inactivation rate prediction stage:
[0071] Step S21: To ensure consistency between the prediction of antibiotic resistance gene degradation and inactivation, data on the inactivation of antibiotic resistance genes using homogeneous disinfection processes, including UV, free chlorine, ozone, and hydrogen peroxide, were collected from the literature screened in Step S11. In these studies, resistance gene degradation was first performed and the degradation rate was measured using qPCR. Then, resistance conversion activity was used to assess the inactivation of resistance genes during disinfection. The chemical, biological, and genetic parameters in this data section include all parameters from the degradation prediction in Step S11. In addition, the chemical parameters include the degradation rate of the resistance gene, as well as the incubation time, temperature, and antibiotic concentration in the selective medium of the recipient bacteria during the resistance conversion activity test. The biological parameters include the DNA repair capacity of the recipient bacteria infected with the resistance gene after disinfection (i.e., the presence or absence of three DNA-repairing gene fragments recA, uvrA, and endA), and these binary questions are converted to "0 / 1" values using One-Hot technology. The genetic parameters are consistent with those in Step S11.
[0072] Step S22: Clean the dataset and perform a similar partitioning process to step S13. Note that the data containing the inactivated portion from the test set in step S13 will be used as the training set for this step. In this way, the validation set for the entire prediction system comes from the same batch of experiments, logically ensuring coherence and scientific rigor, as well as the comprehensiveness of the model's adversarial gene degradation and inactivation prediction validation.
[0073] Step S23: The selection, training and optimization of the model are similar to those in step S14. It should be noted that since the dataset for inactivation prediction is smaller than that for degradation prediction, when training the model for inactivation prediction, algorithms such as RF and GBDT should be selected. Algorithms such as XGBoost and LightGBM, which are suitable for processing large-scale data, are relatively unsuitable at the technical principle level.
[0074] Step S24: The evaluation and comparison of the models are consistent with step S15 to determine the optimal model for predicting the inactivation rate of resistance genes in homogeneous sterilization processes. In this example, the optimal inactivation prediction model finally determined is GBDT, and its predictive effect on the inactivation rate of resistance genes is as follows: Figure 3 As shown
[0075] 3. Based on the degradation prediction results, the prediction of its inactivation is as follows:
[0076] Step S31: Select the optimal degradation rate prediction model from S14 and the optimal inactivation rate prediction model from S24. Use the output of the degradation rate prediction model, i.e., the predicted value of the degradation rate, as the required degradation rate value for the input variable of the inactivation rate prediction model to predict the inactivation rate of the resistant gene. This achieves the cascade prediction of the degradation rate prediction model and the inactivation rate prediction model. Since the output of the degradation rate prediction model is the degradation rate of the resistant gene, and the degradation rate of the resistant gene is one of the input feature variables of the inactivation prediction model, the training set data is used to use the predicted output value of the optimal degradation rate prediction model XGBoost as the input value of the optimal inactivation rate prediction model GBDT, along with other necessary input feature variables to predict the inactivation rate of the resistant gene. This forms a cascade prediction system for the inactivation rate of the resistant gene, and its prediction effect is as follows: Figure 4 As shown;
[0077] Step S32: The code of the optimal degradation prediction model XGBoost and the optimal inactivation prediction model GBDT are concatenated and encapsulated, and then rewritten into a web-based prediction platform using Java. This enables direct evaluation of the resistance gene removal effect under known resistance gene types and disinfection parameters; and establishes third-party open tools for evaluating the resistance gene removal effect, such as... Figure 5 As shown.
[0078] The present invention also provides an antibiotic resistance gene inactivation quantification device, comprising a memory, a control processor, and a computer program stored in the memory and executable on the control processor, wherein the control processor executes the program to implement the aforementioned antibiotic resistance gene inactivation quantification method.
[0079] The present invention also provides a control system, including the aforementioned antibiotic resistance gene inactivation quantification device.
[0080] The present invention also provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the aforementioned method for quantifying the inactivation of antibiotic resistance genes.
[0081] The modulation method according to embodiments of the present disclosure can be programmed into a computer program and stored on a computer-readable storage medium. When the computer program is executed by a processor, the machine learning-based method for quantifying antibiotic resistance gene inactivation as described above can be implemented.
[0082] Examples of computer-readable storage media include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-RLTH, etc. BD-RE, Blu-ray or optical disc storage, hard disk drive (HDD), solid-state drive (SSD), card storage (such as multimedia cards, secure digital (SD) cards, or ultra-fast digital (XD) cards), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid-state drive, and any other device configured to store a computer program and any associated data, data files, and data structures in a non-transitory manner and to provide the computer program and any associated data, data files, and data structures to a processor or computer so that the processor or computer can execute the computer program. In one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system, such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed manner through one or more processors or computers.
[0083] Although the methods described above are illustrated and depicted as a series of actions for the sake of simplicity, it should be understood and appreciated that these methods are not limited by the order of the actions, as some actions may occur in a different order and / or concurrently with other actions from the illustrations and descriptions herein or not illustrated and described herein but which may be understood by those skilled in the art, according to one or more embodiments. Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability between hardware and software, the various illustrative components, blocks, modules, circuits, and steps are described above in a generalized form in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art may implement the described functionality in different ways for each particular application, but such implementation decisions should not be construed as departing from the scope of the invention. The various illustrative logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein may be implemented or performed using a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. The general-purpose processor may be a microprocessor, but in alternatives, it may be any conventional processor, battery compartment control board, micro battery compartment control board, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors cooperating with a DSP core, or any other such configuration. The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of both. The software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from and write information to the storage medium. In an alternative, the storage medium may be integrated into the processor. The processor and storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and storage medium may reside as discrete components in the user terminal. In one or more exemplary embodiments, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software as a computer program product, the functionality may be stored or transmitted therefrom as one or more instructions or code on a computer-readable medium.Computer-readable media includes both computer storage media and communication media, encompassing any medium that facilitates the transfer of a computer program from one location to another. Storage media can be any available medium accessible to a computer. By way of example and not limitation, such computer-readable media may include RAM, ROM, EEPROM, CD-ROM or other optical disc storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and is accessible to a computer. Any connection is also legitimately referred to as computer-readable media. For example, if software is transmitted from a website, a central control computer, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then that coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used in this article, disk and disc include compact discs (CDs), laser discs, optical discs, digital multi-purpose discs (DVDs), floppy disks, and Blu-ray discs. Disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Combinations of these should also be included within the scope of computer-readable media.
[0084] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any person skilled in the art can make many possible variations and modifications to the technical solutions of the present invention using the methods and techniques described above, or modify them into equivalent embodiments with equivalent changes, without departing from the scope of the present invention. Therefore, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the present invention's technical solutions shall still fall within the protection scope of the present invention's technical solutions.
Claims
1. A machine learning-based method for quantifying the inactivation of antibiotic resistance genes, characterized in that, include, S10, obtaining the optimal model for predicting the degradation rate includes the following steps: S11: A study on the determination of resistance gene degradation rate under homogeneous sterilization process using qPCR technology, collected from published literature; S12: Collect known or hypothesized parameters related to the degradation process of resistance genes from the literature and use them as input features to predict the degradation rate of resistance genes; S13: Clean the dataset, divide the dataset, select multiple algorithms to train the model, optimize the model parameters, and remove unimportant features; S14: Selecting regression coefficients R on the validation set under different hyperparameter combinations of the same algorithm 2 The combination of hyperparameters that yields the highest value and minimizes the root mean square error (RMSE) is selected as the optimal model for this algorithm. For the optimal model of different algorithms, the R-value on the test set is chosen. 2 The model with the highest RMSE and the smallest RMSE is selected as the optimal model for predicting degradation rate. S20, obtaining the optimal model for inactivation rate prediction includes the following steps: S21: Collect research from published literature on the determination of resistance gene inactivation rate under homogeneous disinfection process using resistance transformation activity test; S22: Collect known or hypothesized parameters related to the resistance gene inactivation process from the literature and use them as input features to predict the resistance gene inactivation rate; S23: Clean the dataset, divide the dataset, and select multiple algorithms to train the model; S24: Under different hyperparameter combinations of the same algorithm, select R on the validation set. 2 The combination of hyperparameters with the highest RMSE is selected as the optimal model for the algorithm; for the optimal model of different algorithms, the R-value on the test set is selected. 2 The model with the highest RMSE and the smallest RMSE is selected as the optimal model for predicting inactivation rate. S30, the stage of combining the degradation rate prediction model and the inactivation rate prediction model to predict the inactivation rate, includes the following steps: S31: Select the best degradation rate prediction model in S14 and the best inactivation rate prediction model in S24. Use the output of the degradation rate prediction model, i.e. the predicted value of the degradation rate, as the degradation rate value required as the input variable of the inactivation rate prediction model to predict the inactivation rate of the resistant gene, thereby realizing the tandem connection of the degradation rate prediction model and the inactivation rate prediction model. S32: Connect and encapsulate the optimal degradation rate prediction model in S14 and the optimal inactivation rate prediction model in S24, and rewrite them into a web-based prediction platform.
2. The method for quantifying antibiotic resistance gene inactivation based on machine learning as described in claim 1, characterized in that, In step S32, the optimal degradation rate prediction model in S14 and the optimal inactivation rate prediction model in S24 are connected in series. This means that the output of the optimal degradation rate prediction model, i.e., the degradation rate of the resistance gene, is passed to the corresponding resistance gene degradation rate as the input feature variable in the optimal inactivation rate prediction model. Rewriting the encapsulated model into a web-based prediction platform means using languages such as Python, PHP, and Java to write the Python-based model into a web-based operation page. Users can choose to calculate the degradation rate or inactivation rate of the resistance gene separately, and the model collects the feature variables required by the user through a question-and-answer method. Then, the model directly provides the prediction results required by the user through internal calculation.
3. The method for quantifying antibiotic resistance gene inactivation based on machine learning as described in claim 1 or 2, characterized in that, In steps S13 and S23, the dataset is divided into a training set and a test set in a 9:1 ratio, and then the model is trained based on the training set data using the nine-fold cross-validation method. The machine learning algorithms include random forest, gradient boosting decision tree, extreme gradient boosting, light gradient boosting machine, and artificial neural network algorithms. The methods for optimizing model parameters and removing unimportant features include GridSearchCV and RFECV.
4. The method for quantifying antibiotic resistance gene inactivation based on machine learning as described in claim 3, characterized in that, In step S12, the parameters related to the degradation process of the resistance gene include chemical parameters such as disinfectant consumption, temperature, and pH, biological parameters such as the location of the resistance gene in the host cell, and gene parameters such as the length of the resistance gene and its gene sequence information, wherein the gene sequence information is the relative content of different bases, dimers, and trimers.
5. The method for quantifying antibiotic resistance gene inactivation based on machine learning as described in any one of claims 1, 2, or 4, characterized in that, In steps S14 and S24, the evaluation metrics for model performance include root mean square error, regression coefficient, and correlation coefficient.
6. The method for quantifying antibiotic resistance gene inactivation based on machine learning as described in claim 5, characterized in that, In step S22, the parameters related to the inactivation process of the resistance gene include chemical parameters such as disinfectant consumption, temperature, pH, and the concentration of antibiotics added to the selective culture medium; biological parameters such as the location of the resistance gene in the host cell and whether the recipient bacteria have DNA repair capabilities in the resistance transformation activity test; and gene parameters such as the length of the resistance gene and its gene sequence information, wherein the gene sequence information is the relative content of different bases, dimers, and trimers.
7. The method for quantifying antibiotic resistance gene inactivation based on machine learning as described in any one of claims 1, 2, 4, or 6, characterized in that, In step S11, the homogeneous disinfection process includes homogeneous disinfection methods such as ultraviolet light, free chlorine, ozone, and hydrogen peroxide.
8. A device for quantifying the inactivation of antibiotic resistance genes, characterized in that, The method includes a memory, a control processor, and a computer program stored in the memory and executable on the control processor, the control processor executing the program to implement the method for quantifying the inactivation of antibiotic resistance genes as described in any one of claims 1-7.
9. A control system, characterized in that, Includes the antibiotic resistance gene inactivation quantification device as described in claim 8.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions for causing a computer to perform the method for quantifying the inactivation of antibiotic resistance genes as described in any one of claims 1-7.
