Dairy cow mastitis detection method, device and equipment based on mixed tube milk sample and storage medium
Through the detection method based on mixed tube milk samples, the LASSO regression model is used to initially screen for mastitis in dairy cows, which solves the problems of high detection cost and low efficiency in the existing technology, and achieves efficient and accurate mastitis detection.
Patent Information
- Application Number
- CN202410777830.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-17
AI Technical Summary
Existing methods for detecting dairy cow mastitis are costly and inefficient. Single-tube detection requires sampling for each cow, resulting in increased labor costs and reduced work efficiency.
Using a detection method based on mixed tube milk samples, multiple RNA-based classifiers are generated by constructing a training set and LASSO regression model, and the milk to be detected is initially screened, and a single tube test is only performed when the mixed tube test result is positive, reducing the Monitor costs and improve efficiency.
It effectively reduces the cost of detecting dairy cow mastitis, improves detection efficiency, and improves detection accuracy through the LASSO regression model, reducing the false positive rate.
Smart Images

Figure CN118652968A
Abstract
Description
Technical Field
[0001] The present application relates to the field of gene detection technology, and in particular to a method, device, equipment and storage medium for detecting bovine mastitis based on mixed tube milk samples. Background Art
[0002] Cow mastitis is an infectious disease caused by common pathogenic bacteria (such as Staphylococcus, Streptococcus, Escherichia coli, necrotic bacillus and spoilage bacteria, etc.), which can lead to a decrease or cessation of milk secretion, adversely affect the growth and development of the fetus, affect the production and lactation ability of dairy cows, and in severe cases may increase the risk of cancer, posing a great threat to the health of the population, leading to a decrease in dairy production and economic benefits. Therefore, timely detection and treatment of cow mastitis is of great significance to ensure the health and production benefits of dairy cows.
[0003] At present, the detection of bovine mastitis is mainly carried out by sampling and testing the milk produced by each cow (milk refers to milk that has just been squeezed out of the cow's body and has not been processed in any way). Although the efficiency of prevention and treatment of bovine mastitis has been improved to a certain extent, the following problems still exist: the cost of a single tube test is generally 25 to 30 yuan, and large dairy farms generally have hundreds or even thousands of cows. Even small dairy farms generally have 20 to 50 cows. It can be seen that the detection cost is relatively high; and in addition to the normal work of the dairy farm, additional sampling of the milk produced by each cow is required, which will undoubtedly increase labor costs and reduce work efficiency. Summary of the invention
[0004] In order to improve the problems of high cost and low efficiency in cow mastitis detection, the present application provides a cow mastitis detection method, device, equipment and storage medium based on mixed tube milk samples.
[0005] In a first aspect, the present application provides a method for detecting bovine mastitis based on mixed tube milk samples, which adopts the following technical solution: A method for detecting bovine mastitis based on mixed tube milk samples, comprising: Constructing a training set based on the first transcriptome sequencing data; wherein the first transcriptome sequencing data is generated based on the first milk somatic cell RNA samples of milk produced by healthy lactating cows and lactating cows suffering from mastitis; Using a LASSO regression model to reduce the dimension and screen the preliminary features in the training set to obtain target features, and constructing multiple RNA-based classifiers based on the target features; Using the training set to train the multiple RNA-based classifiers to obtain trained classifiers; wherein each of the trained classifiers corresponds to a genetic biomarker of bovine mastitis; Inputting the second transcriptome sequencing data into the trained classifier and outputting the classification result; wherein the second transcriptome sequencing data is generated based on the second milk somatic cell RNA sample of the mixed tube milk to be tested; Based on the classification result, it is determined whether there is a lactating cow suffering from mastitis among the lactating cows to be tested corresponding to the mixed-tube milk to be tested.
[0006] Optionally, the step of reducing the dimension and screening the preliminary features in the training set using a LASSO regression model to obtain target cell features, and constructing multiple RNA-based classifiers based on the target cell features includes: The LASSO regression model is used to penalize the initial features in the training set to select the target features; and the optimal value of the penalty parameter λ is determined by ten cross validations; The multiple RNA-based classifiers are constructed using the target features and the optimal value of the penalty parameter λ.
[0007] Optionally, determining the optimal value of the penalty parameter λ by ten cross validations includes: Obtain a verification data set, and divide the verification data set into ten parts; Set multiple candidate penalty parameters λ; For each candidate penalty parameter λ, nine data are selected as training data, and the remaining data is selected as test data, the LASSO regression model is trained on the training data using the selected candidate penalty parameter λ, and the performance of the model is evaluated on the test data, and the partial likelihood deviation is recorded; Find the candidate penalty parameter λ corresponding to the minimum partial likelihood deviation, recorded as λ min ; Calculating λ min The corresponding standard error SE of the partial likelihood deviation; In λ min Find the candidate penalty parameter λ corresponding to the maximum partial likelihood deviation within the range of ±SE, recorded as λ max ,λ max That is the optimal value of the penalty parameter λ.
[0008] Optionally, the first transcriptome sequencing data is generated by the following method: The total RNA in the first milk somatic cell RNA sample is mixed with poly-T oligomer magnetic beads to generate purified mRNA; the purified mRNA is fragmented, and the first-strand cDNA is synthesized using M-MuLV reverse transcriptase and random hexamer primers; the second-strand cDNA is synthesized on the first-strand cDNA using DNA polymerase I and RNase H to form double-stranded cDNA; the ends of the double-stranded cDNA are repaired, and sequencing adapters are connected to both ends of the cDNA fragments; Purify the cDNA fragments connected to the sequencing adapter and construct a library; Performing PCR amplification on the constructed library to generate PCR products, and purifying the PCR products; The library amplified by PCR is loaded onto a sequencing platform for sequencing to generate the first transcriptome sequencing data.
[0009] Optionally, the second milk somatic cell RNA sample is generated by the following method: Collect a pooled milk sample from a milk tank containing milk from all lactating cows to be tested; Adding the mixed milk sample into a plurality of EDTA tubes for a first centrifugation to obtain a first precipitate; adding a buffer to the first precipitate for a first resuspension treatment to obtain a first suspension; Transfer all the first suspension to an EDTA tube for a second centrifugation to obtain a second precipitate; performing a second resuspension treatment on the second precipitate to obtain a second suspension; The second suspension and Trizol reagent are added to a cryovial to generate the second milk somatic cell RNA sample, and the cryovial is stored in liquid nitrogen.
[0010] In a second aspect, the present application provides a cow mastitis detection device based on a mixed tube milk sample, which adopts the following technical solution: A cow mastitis detection device based on mixed tube milk sample, comprising: A training set construction module, used to construct a training set based on first transcriptome sequencing data; wherein the first transcriptome sequencing data is generated based on first mammary somatic cell RNA samples of milk produced by healthy lactating cows and lactating cows suffering from mastitis; a classifier construction module, used to reduce the dimension and screen the preliminary features in the training set using a LASSO regression model to obtain target features, and construct multiple RNA-based classifiers based on the target features; A classifier training module, used to train the multiple RNA-based classifiers using the training set to obtain trained classifiers; wherein each of the trained classifiers corresponds to a genetic biomarker of bovine mastitis; A classification result output module, used for inputting the second transcriptome sequencing data into the trained classifier and outputting the classification result; wherein the second transcriptome sequencing data is generated based on the second milk somatic cell RNA sample of the mixed tube milk to be tested; The detection result determination module is used to determine whether there is a lactating cow suffering from mastitis among the lactating cows to be detected corresponding to the mixed-tube milk to be detected based on the classification result.
[0011] Optionally, the classifier building module includes: A target feature selection submodule, used to penalize the initial features in the training set using the LASSO regression model to select the target feature; A ten-fold cross validation submodule is used to determine the optimal value of the penalty parameter λ through ten-fold cross validation; The classifier construction submodule is used to construct the multiple RNA-based classifiers using the target features and the optimal value of the penalty parameter λ.
[0012] Optionally, the ten-fold cross-validation submodule is specifically used to obtain a validation data set and divide the validation data set into ten data sets; set multiple candidate penalty parameters λ; for each candidate penalty parameter λ, select nine data sets in the validation data set as training data and the remaining data set as test data, train the LASSO regression model on the training data using the selected candidate penalty parameter λ, evaluate the performance of the model on the test data, and record the partial likelihood deviation; find the candidate penalty parameter λ corresponding to the minimum partial likelihood deviation, and record it as λ min ; Calculate λ min The corresponding standard error SE of the partial likelihood deviation; in λ min Find the candidate penalty parameter λ corresponding to the maximum partial likelihood deviation within the range of ±SE, recorded as λ max ,λ max That is the optimal value of the penalty parameter λ.
[0013] In a third aspect, the present application provides an electronic device, which adopts the following technical solution: An electronic device comprises a memory and a processor; the memory stores a computer program that can be loaded by the processor and executes the method described in any one of the first aspect or the second aspect.
[0014] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium stores a computer program that can be loaded by a processor and execute the method described in any one of the first aspect or the second aspect.
[0015] By adopting the above technical scheme, milk produced by mixed lactating cows to be tested is sampled, and a mixed-tube method for detecting bovine mastitis is formed through the LASSO regression model, so that all lactating cows to be tested are initially screened for mastitis. Only when the mixed-tube test result is yes, a single-tube test is performed on each lactating cow to be tested. When the mixed-tube test result is no, it means that none of the lactating cows to be tested suffers from mastitis, and there is no need to perform single-tube testing at this time, which can reduce the detection cost of bovine mastitis and improve the detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flow chart of a method for detecting bovine mastitis based on mixed tube milk samples according to an embodiment of the present application.
[0017] Figure 2 It is an embodiment of the present application in which the specific gene expression profiles of representative cell types (CD4 T cells, Macrophage, Endothelial cells) are separated from mammary somatic cells or mammary tissue sequencing data by digital purification.
[0018] Figure 3 , Figure 4 They are respectively adaptive noise filters based on the distribution of transcriptome-wide coefficient of variation (CV) values of representative cell types for identifying noise in transcriptome data of breast cell and breast tissue sequencing data in the embodiments of the present application.
[0019] Figure 5 , Figure 6 They are correlation matrix diagrams between the gene expression data of mammary cell and mammary tissue sequencing data obtained by digital purification and FACS purification methods in the embodiments of the present application.
[0020] Figure 7 It is a scatter plot of the whole genome expression profile of the digitally purified and FACS purified cells or cell lines of the embodiments of the present application.
[0021] Figure 8 It is a schematic diagram of the application of the cow mastitis detection method based on mixed tube milk samples in the embodiment of the present application to the phenotypic identification of various stages of mastitis.
[0022] Fig. 9 It is a schematic diagram of the application of the mixed tube milk sample-based bovine mastitis detection method of the embodiment of the present application to phenotypic identification at various stages of lactation.
[0023] Fig.10It is a schematic diagram of the application of the mixed tube milk sample-based method for detecting bovine mastitis in an embodiment of the present application to phenotypic identification of lactation age.
[0024] Fig.11 It is a schematic diagram of an embodiment of the present application in which 10 RNA-based classifiers obtained by machine learning of the milk somatic cell transcriptome perform comprehensive scoring on each sample in the training set.
[0025] Fig.12 It is a schematic diagram of the comprehensive scoring diagnostic accuracy of the 10 RNA-based classifiers of the embodiment of the present application for the training set and the test set.
[0026] Fig.13 It is a schematic diagram of an embodiment of the present application for comprehensively scoring each sample in the training set based on 19 cell type-specific RNA-based classifiers obtained by deconvolution of mammary somatic cell subpopulation transcriptome machine learning.
[0027] Fig.14 It is a schematic diagram of the comprehensive scoring diagnostic accuracy of the 19 RNA-based classifiers of the embodiment of the present application for the training set and the test set.
[0028] Fig.15 It is a structural block diagram of a cow mastitis detection device based on mixed tube milk sample in an embodiment of the present application.
[0029] Fig.16 It is a structural block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0031] At present, the main technology for determining mastitis in dairy cows still relies on the number of somatic cells in milk. Somatic cells mainly refer to somatic cells in milk, which are mainly derived from the following two aspects: on the one hand, epithelial cells from the secretory tissue of the mammary gland, also known as glandular cells, are the products eliminated during the metabolism of the mammary gland of dairy cows and are normal somatic cells; on the other hand, somatic cells also include white blood cells that die in the process of resisting inflammation, viruses, etc. These white blood cells are the main immune and defensive cells in animals. When the udder of a dairy cow is infected with a disease or mechanically traumatized, a large number of white blood cells will be released from the blood and eventually discharged from the mammary gland and milk.
[0032] However, there are several problems with the above method: 1) Studies have found that although most cows suffering from mastitis have high somatic cell counts, some high-somatic cell cows still have no obvious symptoms of mastitis. Therefore, there is a certain false positive rate in detecting mastitis by the number of milk somatic cells; 2) Single-tube testing requires sampling and measurement with the help of milking equipment, which is time-consuming and labor-intensive.
[0033] Therefore, the present application provides a method for quickly detecting individuals with mastitis in a large group of dairy cows. The detection method can first determine the presence of mastitis in a large group of dairy cows, and if it exists, the next round of individual detection is carried out. If it does not exist, there is no need for subsequent detection, and the detection cost is effectively reduced.
[0034] Figure 1 A flow chart of a method for detecting bovine mastitis based on mixed tube milk samples provided in this embodiment. The method can be applied to a server or a terminal device. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services; the terminal device can be a smart phone, a tablet computer, a desktop computer, etc., which is not specifically limited in this embodiment.
[0035] like Figure 1 As shown, the main process of the method is described as follows (steps S101 to S105): Step S101, constructing a training set based on first transcriptome sequencing data; wherein the first transcriptome sequencing data is generated based on first milk somatic cell RNA samples of milk produced by healthy lactating cows and lactating cows suffering from mastitis; Step S102, using the LASSO regression model to reduce the dimension and screen the preliminary features in the training set to obtain target features, and construct multiple RNA-based classifiers based on the target features; Step S103, using the training set to train multiple RNA-based classifiers to obtain trained classifiers; wherein each trained classifier corresponds to a genetic biomarker of bovine mastitis; Step S104, inputting the second transcriptome sequencing data into the trained classifier, and outputting the classification result; wherein the second transcriptome sequencing data is generated based on the second milk somatic cell RNA sample of the mixed tube milk to be tested; Step S105, based on the classification result, determining whether there is a lactating cow suffering from mastitis among the lactating cows to be detected corresponding to the mixed-tube milk to be detected.
[0036] In this embodiment, mixed-tube sampling is performed on the milk produced by all lactating cows to be tested to generate second transcriptome sequencing data, and a training set is formed based on the first mammary somatic cell RNA samples of the milk produced by healthy lactating cows and lactating cows suffering from mastitis, and multiple RNA-based classifiers are trained by the LASSO regression model. The classifiers are used to perform a preliminary screening on whether all lactating cows to be tested have mastitis. Only when the mixed-tube test result is yes, a single-tube test is performed on each lactating cow to be tested. When the mixed-tube test result is no, it means that the lactating cows to be tested do not suffer from mastitis, and there is no need to perform single-tube testing at this time, which can reduce the detection cost of cow mastitis and improve the detection efficiency.
[0037] In addition, compared with the method of detecting mastitis based on the number of milk cells, the embodiment of the present application adopts the LASSO regression model to construct multiple RNA-based classifiers, which can improve the accuracy of detection.
[0038] In some embodiments, for step S102, the LASSO regression model can be used to penalize the initial features in the training set to select the target features; the optimal value of the penalty parameter λ is determined by ten cross-validations; and multiple RNA-based classifiers are constructed using the target features and the optimal values of the penalty parameter λ.
[0039] In this embodiment, for these high-dimensional sequencing data in the training set, as a powerful method for regression using high-dimensional predictor variables, the least absolute shrinkage and selection operator (LASSO) uses L1 penalty to shrink certain regression coefficients to exactly zero, realizing feature selection, that is, being able to automatically select the features with the strongest correlation with the target variable from a large number of features. LASSO can be used for the best selection of genes with strong prognostic value and low correlation with each other in high-dimensional sequencing data. Although in RNA classification tasks, the data may contain a large amount of noise and redundant information, because L1 regularization encourages the model to use fewer features, it can reduce overfitting of noisy data and significantly improve the generalization ability of the model.
[0040] In addition, the selection process of the LASSO regression model is relatively transparent, and you can clearly see which features are selected as target features and how much they contribute to the model prediction. This makes the model results easier to interpret and understand, and helps to conduct further analysis and verification in the biological field.
[0041] Using the selected target features and the optimal penalty parameter λ to construct multiple RNA-based classifiers can increase the diversity and robustness of the model. This helps to cope with classification tasks under different data distributions and noise levels and improve the overall classification performance. By integrating the prediction results of multiple classifiers, the prediction error can be further reduced and the classification accuracy can be improved.
[0042] Furthermore, the specific method for determining the optimal value of the penalty parameter λ through ten cross validations is as follows: First, obtain the validation data set, divide the validation data set into ten parts, and set multiple candidate penalty parameters λ. Since these candidate penalty parameters λ are the candidate optimal penalty parameters, the range of the candidate penalty parameters λ should be determined according to the characteristics of the data, the complexity of the model and experience.
[0043] It should be noted that the split of the validation data set is random, the size of each piece of data should be as close as possible, and each piece of data should represent the characteristics of the entire validation data set as much as possible.
[0044] Then, for each candidate penalty parameter λ, nine data sets are selected as training data, and the remaining data set is used as test data. The LASSO regression model is trained on the training data using the selected candidate penalty parameter λ, and the performance of the model is evaluated on the test data, and the partial likelihood deviation is recorded.
[0045] After cross-validation for all candidate penalty parameters λ and calculation of partial likelihood deviation, find the candidate penalty parameter λ corresponding to the minimum partial likelihood deviation and record it as λ min , calculate λ min The corresponding standard error SE of the partial likelihood deviation, in λ min Find the candidate penalty parameter λ corresponding to the maximum partial likelihood deviation within the range of ±SE, recorded as λ max ,λ max This is the optimal value of the penalty parameter λ.
[0046] Through ten-fold cross validation and partial likelihood bias, different λ values can be systematically tested and the λ value that optimizes model performance can be found, which may have better versatility and robustness on different data sets, effectively improving the accuracy of model evaluation. Since a good balance is found between maintaining model complexity and data fitting, this helps to make the model neither too complex (reducing overfitting) nor too simple (reducing underfitting), thus having better generalization ability in practical applications.
[0047] In some embodiments, the first transcriptome sequencing data may be generated according to the following method steps: First, the total RNA (including mRNA and non-coding RNA) in the first milk somatic cell RNA sample is mixed with poly-T oligomer magnetic beads to generate purified mRNA.
[0048] In this embodiment, the first mammary somatic cell RNA sample is extracted from milk samples produced by healthy lactating cows and lactating cows suffering from mastitis by an existing RNA extraction method, and the total RNA content of each first mammary somatic cell RNA sample is 1 μg. The RNA extraction method includes but is not limited to Trizol extraction method, RNeasy column extraction method, magnetic bead extraction method, and column-free centrifugation method.
[0049] It should be noted that after obtaining the first milk somatic cell RNA sample, the extracted RNA needs to be evaluated for quality, for example, by measuring RNA integrity using the RNA Nano 6000 assay kit of the Bioanalyzer 2100 system, so as to make it suitable for subsequent reverse transcription and sequencing.
[0050] Then, the purified mRNA was fragmented, and the first-strand cDNA was synthesized using M-MuLV reverse transcriptase (RNase H-) and random hexamer primers; the second-strand cDNA was synthesized on the first-strand cDNA using DNA polymerase I and RNase H to form double-stranded cDNA.
[0051] Optionally, to provide a stable reaction environment to promote efficient reverse transcription, fragmentation can be performed by divalent cations at high temperature in the first-strand synthesis reaction buffer (5×).
[0052] In order to construct a library suitable for the sequencing platform, it is necessary to repair the ends of the double-stranded cDNA, connect sequencing adapters to both ends of the cDNA fragments, and purify the cDNA fragments connected to the sequencing adapters.
[0053] Among them, for end repair, the remaining overhang is converted into a blunt end by exonuclease / polymerase activity, that is, the overhang is removed by exonuclease, and the polymerase may fill the resulting vacancy to make the cDNA end smooth.
[0054] For linking sequencing adapters, an adapter with a hairpin loop structure is connected to prepare for hybridization after the 3' end of the DNA fragment is adenylated, that is, the 3' end of the DNA fragment is modified by adenylation to provide a uniform terminal structure, and then the adenylated DNA fragment is hybridized with the adapter with a hairpin loop structure, and the two are connected using DNA ligase to form a stable complex.
[0055] For the purification of cDNA fragments, the cDNA fragments with a length of 370 to 420 bp are preferred, and the specific purification method can adopt the AMPure XP system.
[0056] In order to have enough material for high-throughput sequencing, the constructed library needs to be PCR amplified to generate PCR products. Optionally, PCR amplification is performed using Phusion high-fidelity DNA polymerase, universal PCR primers and Index (X) primers.
[0057] In addition to the target DNA fragment, the PCR product may also contain primers, dNTPs (deoxyribonucleoside triphosphates), enzymes and other impurities. These impurities may affect subsequent high-throughput sequencing analysis, so the PCR product needs to be purified. For example, the AMPure XP system is used to purify the PCR product, which is easy to operate and has high purification efficiency.
[0058] In addition, since the quality of the library directly affects the results of subsequent experiments, such as sequencing accuracy and coverage, the quality of the library needs to be evaluated after the library is constructed. Optionally, the Agilent Bioanalyzer 2100 system can be used to evaluate the quality of the library. The system uses microfluidic chip technology and electrophoresis separation principles to quickly and accurately evaluate the concentration, integrity and purity of nucleic acid samples.
[0059] Finally, the PCR-amplified library is loaded onto the sequencing platform for sequencing to generate the first transcriptome sequencing data. Specifically, a suitable high-throughput sequencing platform, such as Illumina, IonTorrent, PacBio, etc., can be selected according to the experimental purpose and budget. After the sequencing platform generates the raw sequencing data, it needs to undergo quality control to remove low-quality sequence reads, and use alignment tools to align the clean reads to the reference genome or transcriptome to determine the source of the sequence. The aligned reads are quantitatively analyzed to calculate the expression levels of genes or transcripts. Depending on the purpose of the research, differential expression analysis, transcription factor binding site analysis, and identification of alternative splicing events may also be required.
[0060] In some embodiments, the second mammary cell RNA sample can be obtained according to the following method steps: First, a mixed milk sample is collected from a milk tank that contains a mixture of milk produced by all the lactating cows to be tested. The milk tank is a storage container into which the milk squeezed out by all the lactating cows in the dairy farm directly enters, and is an essential device in the entire milk processing flow. Therefore, the embodiment of the present application does not need to collect the milk produced by each lactating cow to be tested individually, but only needs to collect the mixed milk produced by all the lactating cows to be tested from the milk tank. There is no need to add an additional device for sampling the milk of a single lactating cow, thus saving the cost of sampling devices and manpower detection costs.
[0061] Then, the mixed milk sample is added to multiple EDTA tubes (for example, 4 EDTA tubes) for a first centrifugation treatment, the fat layer and the supernatant are removed to obtain a first precipitate, a buffer solution is added to the first precipitate for a first resuspension treatment to obtain a first suspension, all the first suspensions are transferred to an EDTA tube for a second centrifugation treatment, the supernatant is discarded again to obtain a second precipitate, the second precipitate is resuspended for a second time to obtain a second suspension.
[0062] Finally, the second suspension and Trizol reagent were added to a cryovial to generate a second milk somatic cell RNA sample, and the cryovial was stored in liquid nitrogen.
[0063] In this embodiment, the first centrifugal treatment can separate different components such as fat and protein in milk to form cream and skim milk, and remove some mechanical impurities and microorganisms, such as dust, cell debris, white blood cells, etc. Optionally, the conditions of the first centrifugal treatment are centrifugal force 1000g, temperature 4°C, and time 10 minutes.
[0064] The first resuspension treatment can resuspend the first precipitate obtained after the first centrifugation treatment in a liquid to maintain uniformity for subsequent experimental operations or analysis. Optionally, the first resuspension treatment condition is to add 2 mL of 1×PBS (phosphate buffered saline) to the first precipitate to gently resuspend it to reduce excessive physical force that causes sample damage or component denaturation.
[0065] The second centrifugation can further remove residual impurities or microorganisms, improve the purity of the sample, and ensure the quality of the final product. Optionally, the conditions of the second centrifugation are a centrifugal force of 1000g, a temperature of 4°C, and a time of 3 minutes.
[0066] The second resuspension treatment can ensure the uniformity and stability of the sample, providing a reliable basis for subsequent analysis or processing. Optionally, the second resuspension treatment condition is to add 300 μL of 1×PBS (phosphate buffered saline) to the second precipitate and resuspend twice (total amount = 600 μL).
[0067] In short, by centrifuging the mixed milk sample once, resuspending it once, centrifuging it twice, and resuspending it twice, the different components in the milk can be effectively separated, the purity of the sample can be improved, and the accuracy and reliability of subsequent data analysis can be guaranteed.
[0068] It should be noted that the method for generating the second transcriptome sequencing data based on the second mammary somatic cell RNA sample can refer to the method for generating the first transcriptome sequencing data, and this embodiment does not specifically limit it.
[0069] Figure 2A method is given for isolating specific gene expression profiles of representative cell types (CD4 T cells, Macrophage, Endothelial cells) from mammary somatic cells or breast tissue sequencing data by digital purification, and verifying the accuracy of the specific gene expression profiles by FACS purification (fluorescence activated cell sorting).
[0070] Figure 3 , Figure 4 Adaptive noise filters based on the distribution of coefficient of variation (CV) values of the transcriptome range of representative cell types are given respectively. The threshold is set by the distribution of CV values of representative cell types (CD4 T cells, Macrophage, Endothelial cells), so as to identify and remove abnormal expression values that may be caused by noise in the transcriptome data of breast cell and breast tissue sequencing data. Among them, the coefficient of variation (CV, i.e. the ratio of standard deviation to mean) is an indicator to measure the degree of data dispersion, which is used to quantify the degree of expression variation of the same gene in different samples or conditions to evaluate the variability of data.
[0071] Figure 5 , Figure 6 The correlation matrix diagrams between the gene expression data of mammary cells and mammary tissue sequencing data obtained by digital purification and FACS purification methods are respectively shown. The correlation matrix diagram is used to show the correlation between the whole genome expression profiles of cells or cell lines obtained by the two purification methods.
[0072] Figure 7 A scatter plot of the whole genome expression profile of digitally purified and FACS purified cells or cell lines is shown. The scatter plot graphically displays the expression level of each gene under the two purification methods, and determines the consistency between the two purification methods by calculating statistics such as Pearson correlation (R), Spearman correlation (sρ) and linear regression (diagonal line), which can help researchers evaluate the effect and reliability of different purification methods.
[0073] Figures 8 to 10 The application of the mixed tube milk sample-based bovine mastitis detection method of the embodiment of the present application in phenotypic identification including various stages of mastitis (early mastitis, mid-stage mastitis, late mastitis, etc.), various stages of lactation (early lactation, mid-stage lactation, late lactation), and lactation age (young, old) is demonstrated in turn.
[0074] Taking the training set containing 195 samples as an example, 10 RNA-based classifiers were obtained by machine learning based on the transcriptome data of mammary somatic cells, and each sample in the training set was comprehensively scored. The scoring results are shown in the figure below. Fig.11 As shown in Figure 2, the diagnostic accuracy of the comprehensive scores of the training set and the test set are as follows: Fig.12 shown.
[0075] Taking the training set containing 195 samples as an example, a comprehensive score was given to each sample in the training set based on 19 cell type-specific RNA-based classifiers obtained by deconvolution of the transcriptome of mammary somatic cell subsets. The scoring results are shown in Figure 2. Fig.13 As shown in Figure 2, the diagnostic accuracy of the comprehensive scores of the training set and the test set are as follows: Fig.14 shown.
[0076] Depend on Fig.12 and Fig.14 It can be seen that from the diagnostic accuracy of the comprehensive scores of the training set and the test set, 19 RNA-based classifiers are better than 10 RNA-based classifiers. Therefore, 19 genes such as CREB3L1 were identified as genetic biomarkers for the detection of mixed-tube mastitis. See Table 1 for details.
[0077] Table 1 In addition, Table 2 shows the differences in detection cost and detection accuracy between the mammary cell number detection method and the mammary cell transcriptome detection method of the embodiment of the present application. The results show that the mammary cell transcriptome detection method of the embodiment of the present application performs mixed tube judgment on mastitis with an accuracy rate of up to 93% and a low detection cost.
[0078] Table 2 It should be noted that the test set, like the training set, can also be constructed through the first transcriptome sequencing data, that is, the first transcriptome sequencing data is divided into a training set and a test set.
[0079] Fig.15 This is a structural block diagram of a cow mastitis detection device 1500 based on mixed tube milk sample provided in an embodiment of the present application. Fig.15 As shown, the cow mastitis detection device 1500 based on mixed tube milk sample mainly includes: The training set construction module 1501 is used to construct a training set based on the first transcriptome sequencing data; wherein the first transcriptome sequencing data is generated based on the first milk somatic cell RNA samples of milk produced by healthy lactating cows and lactating cows suffering from mastitis; A classifier construction module 1502 is used to reduce the dimension and screen the preliminary features in the training set using the LASSO regression model to obtain target features, and to construct multiple RNA-based classifiers based on the target features; A classifier training module 1503 is used to train multiple RNA-based classifiers using a training set to obtain trained classifiers; wherein each trained classifier corresponds to a gene biomarker of bovine mastitis; The classification result output module 1504 is used to input the second transcriptome sequencing data into the trained classifier and output the classification result; wherein the second transcriptome sequencing data is generated based on the second milk somatic cell RNA sample of the mixed-tube milk to be tested; the test result determination module 1505 is used to determine whether there is a lactating cow suffering from mastitis among the lactating cows to be tested corresponding to the mixed-tube milk to be tested based on the classification result.
[0080] In some embodiments, the classifier construction module 1502 includes: The target feature selection submodule is used to penalize the initial features in the training set using the LASSO regression model to select the target features; A ten-fold cross validation submodule is used to determine the optimal value of the penalty parameter λ through ten-fold cross validation; The classifier building submodule is used to build multiple RNA-based classifiers using the target features and the optimal value of the penalty parameter λ.
[0081] In some embodiments, the ten-fold cross-validation submodule is specifically used to obtain a validation data set and divide the validation data set into ten data sets; set multiple candidate penalty parameters λ; for each candidate penalty parameter λ, select nine data sets in the validation data set as training data and the remaining data set as test data, train the LASSO regression model on the training data using the selected candidate penalty parameter λ, evaluate the performance of the model on the test data, and record the partial likelihood deviation; find the candidate penalty parameter λ corresponding to the minimum partial likelihood deviation, and record it as λ min ; Calculate λ min The corresponding standard error SE of the partial likelihood deviation; in λ min Find the candidate penalty parameter λ corresponding to the maximum partial likelihood deviation within the range of ±SE, recorded as λ max ,λ max This is the optimal value of the penalty parameter λ.
[0082] In some embodiments, the first transcriptome sequencing data is generated by the following method: The total RNA in the first milk somatic cell RNA sample was mixed with poly-T oligo magnetic beads to generate purified mRNA; The purified mRNA was fragmented, and the first-strand cDNA was synthesized using M-MuLV reverse transcriptase and random hexamer primers; DNA polymerase I and RNase H are used to synthesize the second-strand cDNA on the first-strand cDNA to form double-stranded cDNA; Repair the ends of the double-stranded cDNA and connect sequencing adapters to both ends of the cDNA fragment; Purify the cDNA fragments connected to the sequencing adapter and construct a library; The constructed library was amplified by PCR using Phusion high-fidelity DNA polymerase, universal PCR primers and Index (X) primers to generate PCR products, which were then purified. The PCR-amplified library is loaded onto a sequencing platform for sequencing to generate the first transcriptome sequencing data.
[0083] In some embodiments, the second breast somatic cell RNA sample is generated by the following method: Collect a pooled milk sample from a milk tank containing milk from all lactating cows to be tested; Adding the mixed milk sample into a plurality of EDTA tubes for a first centrifugation to obtain a first precipitate; adding a buffer to the first precipitate for a first resuspension treatment to obtain a first suspension; Transfer all the first suspension to an EDTA tube for a second centrifugation to obtain a second precipitate; performing a second resuspension treatment on the second precipitate to obtain a second suspension; The second suspension and Trizol reagent were added to a cryovial to generate a second milk somatic cell RNA sample, and the cryovial was stored in liquid nitrogen.
[0084] It should be noted that the functional modules in the embodiments of the present application can be integrated together to form an independent unit, for example, integrated in a processing unit, or each module can exist physically alone, or two or more modules can be integrated to form an independent unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, a server or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a disk or an optical disk.
[0085] The various variations and specific examples of the method provided in the embodiment of the present application are also applicable to a cow mastitis detection device based on a mixed tube milk sample provided in the present embodiment. Through the above detailed description of the cow mastitis detection method based on a mixed tube milk sample, those skilled in the art can clearly know the implementation method of the cow mastitis detection device based on a mixed tube milk sample in the present embodiment. For the sake of brevity of the specification, it will not be described in detail here.
[0086] Fig.16 1 is a structural block diagram of an electronic device 1600 provided in an embodiment of the present application. Fig.16 As shown, the electronic device 1600 includes a memory 1601 , a processor 1602 , and a communication bus 1603 ; the memory 1601 and the processor 1602 are connected via the communication bus 1603 .
[0087] The memory 1601 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1601 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the method for detecting mastitis in a cow based on a mixed tube milk sample provided in the above embodiment, etc.; the data storage area may store data involved in the method for detecting mastitis in a cow based on a mixed tube milk sample provided in the above embodiment, etc.
[0088] Processor 1602 may include one or more processing cores. Processor 1602 calls data stored in memory 1601 by running or executing instructions, programs, code sets or instruction sets stored in memory 1601, and performs various functions and processes data of the present application. Processor 1602 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiments of the present application are not specifically limited.
[0089] The communication bus 1603 may include a path to transmit information between the above components. The communication bus 1603 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 1603 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one double arrow is used in the diagram, but it does not mean that there is only one bus or one type of bus. Fig.16 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0090] An embodiment of the present application provides a computer-readable storage medium storing a computer program that can be loaded by a processor and executes a method for detecting bovine mastitis based on mixed tube milk samples as provided in the above embodiment.
[0091] In this embodiment, the computer-readable storage medium may be a tangible device that holds and stores instructions used by the instruction execution device. The computer-readable storage medium may be, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof. Specifically, the computer-readable storage medium may be a portable computer disk, a hard disk, a USB flash drive, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a podium random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, an optical disk, a magnetic disk, a mechanical encoding device, and any combination thereof.
[0092] The computer program in this embodiment includes a computer program for executing Figure 1 The program code of the method shown may include instructions corresponding to the steps of the method provided in the above embodiments. The computer program may be downloaded from a computer-readable storage medium to various computing / processing devices, or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The computer program may be executed entirely on a user's computer or as an independent software package.
[0093] In the embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0094] In addition, it is to be understood that relational terms such as first and second are used only 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. The terms "comprises," "comprising," or any other variation thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device that includes 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.
[0095] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting bovine mastitis based on mixed tube milk samples, It is characterized in that include: Constructing a training set based on the first transcriptome sequencing data; wherein the first transcriptome sequencing data is generated based on the first milk somatic cell RNA samples of milk produced by healthy lactating cows and lactating cows suffering from mastitis; Using a LASSO regression model to reduce the dimension and screen the preliminary features in the training set to obtain target features, and constructing multiple RNA-based classifiers based on the target features; Using the training set to train the multiple RNA-based classifiers to obtain trained classifiers; wherein each of the trained classifiers corresponds to a genetic biomarker of bovine mastitis; Inputting the second transcriptome sequencing data into the trained classifier and outputting the classification result; wherein the second transcriptome sequencing data is generated based on the second milk somatic cell RNA sample of the mixed tube milk to be tested; Based on the classification result, it is determined whether there is a lactating cow suffering from mastitis among the lactating cows to be tested corresponding to the mixed-tube milk to be tested.
2. The method according to claim 1, It is characterized in that The method of using the LASSO regression model to reduce the dimension and screen the preliminary features in the training set to obtain target cell features, and constructing multiple RNA-based classifiers based on the target cell features includes: Using the LASSO regression model to penalize the initial features in the training set to select the target features; The optimal value of the penalty parameter λ was determined by ten cross-validations; The multiple RNA-based classifiers are constructed using the target features and the optimal value of the penalty parameter λ.
3. The method according to claim 2, It is characterized in that Determining the optimal value of the penalty parameter λ by ten cross validations includes: Obtain a verification data set, and divide the verification data set into ten parts; Set multiple candidate penalty parameters λ; For each candidate penalty parameter λ, nine data are selected as training data, and the remaining data is selected as test data, the LASSO regression model is trained on the training data using the selected candidate penalty parameter λ, and the performance of the model is evaluated on the test data, and the partial likelihood deviation is recorded; Find the candidate penalty parameter λ corresponding to the minimum partial likelihood deviation, recorded as λ min ; Calculating λ min The corresponding standard error SE of the partial likelihood deviation; In λ min ± SE, find the candidate penalty parameter λ corresponding to the maximum partial likelihood deviation, recorded as λ max ,λ max That is the optimal value of the penalty parameter λ.
4. The method according to any one of claims 1 to 3, It is characterized in that The first transcriptome sequencing data is generated by the following method: Mixing the total RNA in the first milk somatic cell RNA sample with poly-T oligomer magnetic beads to generate purified mRNA; The purified mRNA is fragmented, and the first-strand cDNA is synthesized using M-MuLV reverse transcriptase and random hexamer primers; synthesizing the second-strand cDNA on the first-strand cDNA using DNA polymerase I and RNase H to form a double-stranded cDNA; Repairing the ends of the double-stranded cDNA and connecting sequencing adapters to both ends of the cDNA fragment; Purify the cDNA fragments connected to the sequencing adapter and construct a library; Performing PCR amplification on the constructed library to generate PCR products, and purifying the PCR products; The library amplified by PCR is loaded onto a sequencing platform for sequencing to generate the first transcriptome sequencing data.
5. The method according to any one of claims 1 to 3, It is characterized in that The second milk somatic cell RNA sample was generated by the following method: Collect a pooled milk sample from a milk tank containing milk from all lactating cows to be tested; Adding the mixed milk sample into a plurality of EDTA tubes for a first centrifugation to obtain a first precipitate; adding a buffer to the first precipitate for a first resuspension treatment to obtain a first suspension; Transfer all the first suspension to an EDTA tube for a second centrifugation to obtain a second precipitate; performing a second resuspension treatment on the second precipitate to obtain a second suspension; The second suspension and Trizol reagent are added to a cryovial to generate the second milk somatic cell RNA sample, and the cryovial is stored in liquid nitrogen.
6. A cow mastitis detection device based on mixed tube milk sample, It is characterized in that include: A training set construction module, used to construct a training set based on first transcriptome sequencing data; wherein the first transcriptome sequencing data is generated based on first milk somatic cell RNA samples of milk produced by healthy lactating cows and lactating cows suffering from mastitis; A classifier construction module, used to reduce the dimension and screen the preliminary features in the training set using a LASSO regression model to obtain target features, and to construct multiple RNA-based classifiers based on the target features; A classifier training module, used to train the multiple RNA-based classifiers using the training set to obtain trained classifiers; wherein each of the trained classifiers corresponds to a genetic biomarker of bovine mastitis; A classification result output module, used for inputting the second transcriptome sequencing data into the trained classifier and outputting the classification result; wherein the second transcriptome sequencing data is generated based on the second milk somatic cell RNA sample of the mixed tube milk to be tested; The detection result determination module is used to determine whether there is a lactating cow suffering from mastitis among the lactating cows to be detected corresponding to the mixed-tube milk to be detected based on the classification result.
7. The device according to claim 6, It is characterized in that The classifier building block includes: A target feature selection submodule, used to penalize the initial features in the training set using the LASSO regression model to select the target feature; A ten-fold cross validation submodule is used to determine the optimal value of the penalty parameter λ through ten-fold cross validation; The classifier construction submodule is used to construct the multiple RNA-based classifiers using the target features and the optimal value of the penalty parameter λ.
8. The device according to claim 6, It is characterized in that The ten-fold cross-validation submodule is specifically used to obtain a validation data set and divide the validation data set into ten data sets; set multiple candidate penalty parameters λ; for each candidate penalty parameter λ, select nine data sets in the validation data set as training data and the remaining data set as test data; train the LASSO regression model on the training data using the selected candidate penalty parameter λ, evaluate the performance of the model on the test data, and record the partial likelihood deviation; find the candidate penalty parameter λ corresponding to the minimum partial likelihood deviation and record it as λ min ; Calculate λ min The corresponding standard error SE of the partial likelihood deviation; in λ min ± SE, find the candidate penalty parameter λ corresponding to the maximum partial likelihood deviation, recorded as λ max ,λ max That is the optimal value of the penalty parameter λ.
9. An electronic device, It is characterized in that The method comprises a memory and a processor; the memory stores a computer program which can be loaded by the processor and executes the method according to any one of claims 1 to 5.
10. A computer-readable storage medium, It is characterized in that A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 5.
