A method and device for detecting fermentation time of tea leaves
By extracting tea protein liquid, measuring compound content and establishing a fermentation time identification model, the problem of tea fermentation time judgment was solved, and accurate prediction of tea fermentation time and effective utilization of tea protein were achieved.
Patent Information
- Application Number
- CN202310274346.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-03-20
AI Technical Summary
The existing technology lacks an effective method to judge the fermentation time of tea, resulting in a lack of supervision during the fermentation process, which affects the utilization of the compound content in the tea and the absorption of tea protein.
By extracting the protein liquid of freeze-dried tea leaves with different fermentation times, using high-performance liquid chromatography technology to measure the fingerprint of the protein liquid, calculating the degree of dispersion of compounds, screening target compounds, and establishing a fermentation time discrimination model through sub-model cross-training to achieve identification Accurate prediction of tea fermentation time.
By using the content characteristics of compounds in tea, we can accurately predict the fermentation time of tea, improve the supervision of the fermentation process and the utilization efficiency of tea protein.
Smart Images

Figure CN117191962B
Abstract
Description
Technical Field
[0001] The invention relates to the field of tea detection, and in particular to a method and device for detecting the fermentation time of tea. Background Art
[0002] The main nutritional elements of tea come from tea protein, which accounts for about 20%-30% of tea. However, more than 90% of tea protein is non-water-soluble protein and is not easily absorbed and utilized by the human body. Although the content of various compounds after fermentation can be collected, due to the lack of effective supervision of fermentation time during the fermentation process, the utilization of content characteristics is relatively simple, and there is a lack of effective solutions for judging fermentation time. Summary of the invention
[0003] The main purpose of the present invention is to provide a method and device for detecting the fermentation time of tea leaves, aiming to solve the problem of lack of a solution for effectively judging the fermentation time.
[0004] The present invention provides a method for detecting the fermentation time of tea leaves, comprising:
[0005] S1: performing an extraction operation, grinding freeze-dried tea leaves of different fermentation times in liquid nitrogen, adding 10 times the volume of lysis solution, fully mixing, ultrasonically operating in an ice water bath for 15 minutes, and then centrifuging to obtain a supernatant, adding acetone to the supernatant to precipitate tea protein, and then adding the obtained protein precipitate to a solvent for dissolution to obtain a protein liquid of each freeze-dried tea leaf;
[0006] S2: performing a measurement operation, measuring each of the protein liquids by high performance liquid chromatography technology to obtain a fingerprint of each of the protein liquids;
[0007] S3: performing an acquisition operation to acquire the content of each designated compound in each of the protein liquids according to the fingerprint spectrum;
[0008] S4: performing an aggregation operation to aggregate the contents of each designated compound in each of the protein liquids according to the type of the designated compound to obtain a data set of the content of each designated compound;
[0009] S5: Calculate the degree of dispersion of each specified compound;
[0010] S6: screening out target compounds from the designated compounds according to the discreteness; wherein the number of the target compounds includes at least two;
[0011] S7: dividing the target compound into two groups of compounds according to a preset method, and performing vectorization processing on the two groups of compounds according to a comprehensive method to obtain a first vector and a second vector;
[0012] S8: inputting the first vector into a preset first sub-model, and inputting the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as outputs of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain a final fermentation time discrimination model;
[0013] S9: performing extraction operation, measurement operation, acquisition operation, and aggregation operation on the tea leaves to be tested in sequence to obtain the target content of the target compound of the tea leaves to be tested;
[0014] S10: inputting the target content of the target compound of the tea leaves to be tested into the fermentation time discrimination model to obtain the fermentation time of the tea leaves to be tested.
[0015] Furthermore, the step S5 of calculating the discreteness of each designated compound comprises:
[0016] S501: extracting the maximum value and the minimum value of the elements in each content data set from the content data set of each specified compound;
[0017] S502: According to the formula Calculate the standard value for each content data set; where x ij represents the i-th specified compound of the j-th protein liquid, min(x ij ) and max(x ij ) respectively represent the minimum and maximum values of the elements in the content data set corresponding to the i-th specified compound;
[0018] S503: According to the formula Calculate the dispersion of each specified compound, where Among them, E i represents the discrete degree of the i-th specified compound. When p ij = 0, define p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ij represents the standard value corresponding to the i-th specified compound data of the j-th protein liquid, and n represents the number of protein liquids.
[0019] Further, the step S8 of inputting the first vector into a preset first sub-model, and the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain the final fermentation time discrimination model includes:
[0020] S801: Input the first vector v1 into the first sub-model to obtain a temporary prediction value r i , and the corresponding fermentation time r true Enter the first sub-model through the formula The first sub-model is preliminarily trained to obtain a first intermediate model, and then the first vector v1 is input into the first intermediate model to obtain a target prediction value r j ;
[0021] S802: The temporary prediction value r j And the second vector v2 is input into the second sub-model, through the formula The second sub-model is preliminarily trained and the formula is:
[0022]
[0023] The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model; wherein, θ represents the parameter set of the first sub-model, represents the parameter set of the second sub-model, It means taking the minimum value of θ under the premise of satisfying the above formula and The maximum value of O G,D Represents the indicator function.
[0024] Furthermore, the step S7 of dividing the target compound into two groups of compounds according to a preset method comprises:
[0025] S701: sorting the target compounds corresponding to the different protein liquids according to fermentation time to obtain the change rules of each target compound;
[0026] S702: Divide each target compound into a monotonically changing group and a complex changing group according to the changing rule, wherein the target compound in the monotonically changing group increases or decreases monotonically with the fermentation time, while the target compound in the complex changing group does not change monotonically with the fermentation time.
[0027] Further, after the step S8 of inputting the first vector into a preset first sub-model, and the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain the final fermentation time discrimination model, the method further includes:
[0028] S901: Acquire a test set, wherein the test set includes the actual fermentation time of the test tea leaves and the target compound content of the test tea leaves;
[0029] S902: Input the target compound content into the fermentation time discrimination model, and calculate the loss value of the fermentation time discrimination model according to a preset loss function formula; wherein the loss function formula is:
[0030]
[0031] y j represents the actual fermentation time of the jth test tea, h w (x ij ) represents the predicted fermentation time of the jth test tea leaves according to the corresponding target compound content, n represents the test, Indicates the preset parameter value. represents the loss value of the fermentation time discrimination model;
[0032] S903: Determine whether the loss value is less than a preset loss value;
[0033] S904: If it is less than the preset loss value, it is determined that the training of the fermentation time discrimination model is completed.
[0034] The present invention also provides a tea fermentation time detection device, comprising:
[0035] The protein liquid extraction module is used to instruct the implementation of step S1: perform the extraction operation, grind the freeze-dried tea leaves of different fermentation times in liquid nitrogen, add 10 times the volume of lysis solution, mix them thoroughly and evenly, perform ultrasonic operation in an ice water bath for 15 minutes, and then centrifuge to obtain a supernatant, add acetone to the supernatant to precipitate tea protein, and then add the obtained protein precipitate to a solvent for dissolution to obtain a protein liquid of each freeze-dried tea leaf;
[0036] The fingerprint spectrum measurement module is used to instruct the implementation of step S2: performing a measurement operation to measure each of the protein liquids by high performance liquid chromatography technology to obtain a fingerprint spectrum of each protein liquid;
[0037] The content acquisition module is used to instruct the implementation of step S3: executing the acquisition operation to acquire the content of each designated compound in each of the protein liquids according to the fingerprint spectrum;
[0038] The designated compound aggregation module is used to instruct the implementation of step S4: performing an aggregation operation to aggregate the contents of each designated compound in each of the protein liquids according to the type of the designated compound to obtain a content data set of each designated compound;
[0039] A calculation module, used to instruct the implementation of step S5: calculating the discrete degree of each designated compound;
[0040] A screening module, used to instruct the implementation of step S6: screening out target compounds from the designated compounds according to the discrete degree; wherein the number of the target compounds includes at least two;
[0041] A grouping module, used for instructing to implement step S7: dividing the target compound into two groups of compounds according to a preset method, and performing vector processing on the two groups of compounds according to a comprehensive method to obtain a first vector and a second vector;
[0042] An input module, used to instruct the implementation of step S8: input the first vector into a preset first sub-model, and input the second vector into a preset second sub-model, and use the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and perform cross-training in sequence to obtain a final fermentation time discrimination model;
[0043] The tea leaf extraction module to be tested is used to instruct the implementation of step S9: sequentially performing extraction operation, measurement operation, acquisition operation, and aggregation operation on the tea leaf to be tested to obtain the target content of the target compound of the tea leaf to be tested;
[0044] The fermentation time acquisition module is used to instruct the implementation of step S10: inputting the target content of the target compound of the tea to be tested into the fermentation time discrimination model to obtain the fermentation time of the tea to be tested.
[0045] Furthermore, the calculation module includes:
[0046] The maximum value extraction submodule is used to instruct the implementation of step S501: extracting the maximum value and the minimum value of the elements in each content data set from the content data set of each specified compound;
[0047] The standard value calculation submodule is used to instruct the implementation of step S502: according to the formula Calculate the standard value for each content data set; where x ij represents the i-th specified compound of the j-th protein liquid, min(x ij ) and max(x ij ) respectively represent the minimum and maximum values of the elements in the content data set corresponding to the i-th specified compound;
[0048] The discrete degree calculation submodule is used to instruct the implementation of step S503: according to the formula Calculate the dispersion of each specified compound, where Among them, E i represents the discrete degree of the i-th specified compound. 0, definition p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ij represents the standard value corresponding to the i-th specified compound data of the j-th protein liquid, and n represents the number of protein liquids.
[0049] Furthermore, the input module comprises:
[0050] The first input submodule is used to instruct the implementation of step S801: input the first vector v1 into the first submodel to obtain a temporary prediction value r i , and the corresponding fermentation time r true Enter the first sub-model through the formula The first sub-model is preliminarily trained to obtain a first intermediate model, and then the first vector v1 is input into the first intermediate model to obtain a target prediction value r j ;
[0051] The second input submodule is used to instruct the implementation of step S802: converting the temporary prediction value r j And the second vector v2 is input into the second sub-model, through the formula The second sub-model is preliminarily trained and the formula is:
[0052] The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model; wherein, θ represents the parameter set of the first sub-model, represents the parameter set of the second sub-model, It means taking the minimum value of θ under the premise of satisfying the above formula and The maximum value of O G,D Represents the indicator function.
[0053] Furthermore, the grouping module includes:
[0054] The sorting submodule is used to instruct the implementation of step S701: sorting the target compounds corresponding to the different protein liquids according to the fermentation time to obtain the change rule of each target compound;
[0055] The grouping submodule is used to instruct the implementation step S702: each target compound is divided into a monotonically changing group and a complex changing group according to the change rule, wherein the target compound in the monotonically changing group increases or decreases monotonically with the fermentation time, while the target compound in the complex changing group does not change monotonically with the fermentation time.
[0056] Furthermore, the fermentation time detection device further comprises:
[0057] The test set acquisition module is used to instruct the implementation of step S901: acquiring a test set, wherein the test set includes the actual fermentation time of the test tea leaves and the target compound content of the test tea leaves;
[0058] The content input module is used to instruct the implementation of step S902: inputting the target compound content into the fermentation time discrimination model, and calculating the loss value of the fermentation time discrimination model according to a preset loss function formula; wherein the loss function formula is:
[0059]
[0060] y j represents the actual fermentation time of the jth test tea, h w (x ij ) represents the predicted fermentation time of the jth test tea leaves according to the corresponding target compound content, n represents the test, Indicates the preset parameter value. represents the loss value of the fermentation time discrimination model;
[0061] The loss value judgment module is used to instruct the implementation of step S903: judging whether the loss value is less than a preset loss value;
[0062] The determination module is used to instruct the implementation of step S904: if the loss is less than the preset loss value, it is determined that the training of the fermentation time discrimination model is completed.
[0063] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0064] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0065] The beneficial effects of the present invention are as follows: by extracting protein liquid, analyzing the content of specified compounds therein, obtaining the target compound according to the content, training the first sub-model and the second sub-model, and finally obtaining a fermentation time discrimination model, thereby utilizing the characteristics of the content of various compounds to achieve accurate prediction of the fermentation time of tea. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 It is a schematic flow chart of a method for detecting the fermentation time of tea leaves according to an embodiment of the present invention;
[0067] Figure 2 It is a schematic block diagram of the structure of a tea fermentation time detection device according to an embodiment of the present invention;
[0068] Figure 3 A schematic block diagram of the structure of a computer device according to an embodiment of the present application.
[0069] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0071] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly. The connection can be a direct connection or an indirect connection.
[0072] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, A and B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone.
[0073] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0074] Reference Figure 1 The present invention provides a method for detecting the fermentation time of tea leaves, comprising:
[0075] S1: performing an extraction operation, grinding freeze-dried tea leaves of different fermentation times in liquid nitrogen, adding 10 times the volume of lysis solution, fully mixing, ultrasonically operating in an ice water bath for 15 minutes, and then centrifuging to obtain a supernatant, adding acetone to the supernatant to precipitate tea protein, and then adding the obtained protein precipitate to a solvent for dissolution to obtain a protein liquid of each freeze-dried tea leaf;
[0076] S2: performing a measurement operation, measuring each of the protein liquids by high performance liquid chromatography technology to obtain a fingerprint of each of the protein liquids;
[0077] S3: performing an acquisition operation to acquire the content of each designated compound in each of the protein liquids according to the fingerprint spectrum;
[0078] S4: performing an aggregation operation to aggregate the contents of each designated compound in each of the protein liquids according to the type of the designated compound to obtain a data set of the content of each designated compound;
[0079] S5: Calculate the degree of dispersion of each specified compound;
[0080] S6: screening out target compounds from the designated compounds according to the discreteness; wherein the number of the target compounds includes at least two;
[0081] S7: dividing the target compound into two groups of compounds according to a preset method, and performing vectorization processing on the two groups of compounds according to a comprehensive method to obtain a first vector and a second vector;
[0082] S8: inputting the first vector into a preset first sub-model, and inputting the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as outputs of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain a final fermentation time discrimination model;
[0083] S9: performing extraction operation, measurement operation, acquisition operation, and aggregation operation on the tea leaves to be tested in sequence to obtain the target content of the target compound of the tea leaves to be tested;
[0084] S10: inputting the target content of the target compound of the tea leaves to be tested into the fermentation time discrimination model to obtain the fermentation time of the tea leaves to be tested.
[0085] As described in the above step S1, the dissolution of tea protein liquid is achieved, wherein the freeze-dried tea leaves are preferably 1 g, the lysis solution is a solution of 2.5% SDS, 100mM Tris-HCl, pH 8.0, and the centrifugation operation can be specifically centrifuged at 4°C and a speed of 12000×g for 15 minutes, and then the precipitate is discarded, and the supernatant is added with 4 times the volume of acetone to precipitate the protein, thereby obtaining a protein precipitate, and a solvent is added for redissolution to obtain a corresponding protein liquid, wherein the solvent is 8M Urea / 100mM Tris-Cl, pH 8.0, thereby obtaining a corresponding protein liquid. Of course, the specific lysis solution and solvent can also be other solvents of different concentrations that can lyse and dissolve proteins. The above are just some specific embodiments.
[0086] As described in the above step S2, during the measurement operation, the measurement can be performed by high performance liquid chromatography technology, and the UPLC chromatographic conditions are set: mobile phase: the mobile phase is 0.1% formic acid aqueous solution and 0.01% formic acid acetonitrile solution, and gradient elution is adopted; chromatographic column: C18 (3μm, 4.6x150mm), 1.8μm; qualitative judgment is made by combining the ultraviolet absorption spectrum scanning diagram, the fluorescence emission spectrum scanning diagram and the chromatographic peak retention time; the quantitative detection wavelength is: 280nm, 330nm, 530nm, 210nm, and the external standard method is used for quantification; the contents of the corresponding multiple compounds are obtained, that is, the fingerprint of the protein liquid (the fingerprint refers to certain complex substances, such as traditional Chinese medicine, the DNA of a certain organism or a certain tissue or cell, and the protein is properly treated, and a certain analytical method is used to obtain a chromatogram or spectrum diagram that can indicate its chemical characteristics). Here, the content of each corresponding specified compound can be obtained according to the fingerprint.
[0087] As described in the above steps S3-S6, screening of each designated compound is achieved. Since many substances do not change with time, for example, some proteins will not decompose under the condition of corresponding microorganisms, or the amount of decomposition is very small, which can hardly reflect the fermentation time. Therefore, it is necessary to calculate the discreteness of each designated compound. The discreteness can be the variance, standard deviation, etc. of each content data set, or other index values that can reflect the discreteness. Then, the target compound is selected according to the discreteness. The selection method can be to set a set value of the discreteness and select according to the set value, or to select a specified number of target compounds according to the index value of each designated compound in order of size.In addition, since the aforementioned fingerprints already contain the contents of various compounds, it is only necessary to extract the contents of designated compounds therefrom, including, for example, hormone binding proteins (auxin-binding protein ABP19a-like; XP_028085976.1, XP_028086746.1), photosystem II proteins D1 and D2 (photosystem II protein D1(chloroplast), photosystem II protein D2(chloroplast); YP_007317228.1, YP_007317243.1), aquaporin (probable aquaporinTIP1-1, XP_028125451.1) and uncharacterized protein(XP_028096441.1), histone family(histone; XP_028124032.1, XP_028059636.1, XP_028079573.1, XP_028079570.1), ribulose-1,5-bisphosphate carboxylase / oxygenase largesubunit(chloroplast, YP_007317256.1), fructose-bisphosphate aldolase 1,chloroplastic, XP_028105242.1), ATP synthase(ATP synthase CF1 alphasubunit(chloroplast, YP_007317233.1), oxygen-evolving enhancer protein 3,chloroplastic-like, XP_028098182.1), ubiquitin (XP_028124311.1) or more thereof.
[0088] As described in the above steps S7-S8, the output of the first sub-model needs to be input into the second sub-model for training, which is cross-training, so that the fermentation time output by the first sub-model is the same as the fermentation time output by the second sub-model, and is constantly close to the actual fermentation time, thereby completing the training of the first sub-model and the second sub-model, and obtaining the final fermentation time discrimination model. The specific calculation method and model will be described in detail later, and will not be repeated here.
[0089] As described in the above steps S9-S10, the tea leaves to be tested are sequentially subjected to extraction operation, measurement operation, acquisition operation, and aggregation operation to obtain the target content of the target compound of the tea leaves to be tested; the target content of the target compound of the tea leaves to be tested is input into the fermentation time discrimination model to obtain the fermentation time of the tea leaves to be tested. It should be noted that the extraction operation, measurement operation, acquisition operation, and aggregation operation performed on the tea leaves to be tested, except for the difference in tea samples, other extraction methods need to be consistent with the execution operations of steps S1-S4, thereby improving the accuracy of the detection.
[0090] In one embodiment, the step S5 of calculating the discreteness of each designated compound comprises:
[0091] S501: extracting the maximum value and the minimum value of the elements in each content data set from the content data set of each specified compound;
[0092] S502: According to the formula Calculate the standard value for each content data set; where x ij represents the i-th specified compound of the j-th protein liquid, min(x ij ) and max(x ij ) respectively represent the minimum and maximum values of the elements in the content data set corresponding to the i-th specified compound;
[0093] S503: According to the formula Calculate the dispersion of each specified compound, where Among them, E i represents the discrete degree of the i-th specified compound. When p ij = 0, define p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ij represents the standard value corresponding to the i-th specified compound data of the j-th protein liquid, and n represents the number of protein liquids.
[0094] As described in the above steps S501-S503, the calculation of the discrete degree is realized. The standardization process is to reflect the difference between each designated compound data and the whole, so as to evaluate the variation degree of the designated compound data. Generally speaking, the higher the variation degree, the more information the designated compound data can provide. Therefore, it is necessary to standardize all the designated compound data, that is, according to the formula Calculate the standard value for each content data set. The standard value after standardization cannot show the overall difference of each specified compound data, so it is necessary to use the formula Calculate the degree of dispersion for each specified compound, where E i represents the discrete degree of the i-th specified compound. When p ij = 0, define p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ij Indicates the standard value corresponding to the data of the i-th designated compound of the j-th protein liquid, and n represents the number of protein liquids; specifically, if the discreteness of a designated compound is smaller, it indicates that the variation of the designated compound is smaller and the amount of information provided is less. On the contrary, if the discreteness of a designated compound is larger, it indicates that the variation of the designated compound is larger and the amount of information provided is more, so it needs to be marked as a target compound for the next step of calculation.
[0095] In one embodiment, the step S8 of inputting the first vector into a preset first sub-model, and the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain the final fermentation time discrimination model includes:
[0096] S801: Input the first vector v1 into the first sub-model to obtain a temporary prediction value r i , and the corresponding fermentation time r true Enter the first sub-model through the formula The first sub-model is preliminarily trained to obtain a first intermediate model, and then the first vector v1 is input into the first intermediate model to obtain a target prediction value r j ;
[0097] S802: The temporary prediction value r j And the second vector v2 is input into the second sub-model, through the formula The second sub-model is preliminarily trained and the formula is:
[0098] The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model; wherein, θ represents the parameter set of the first sub-model, represents the parameter set of the second sub-model, It means taking the minimum value of θ under the premise of satisfying the above formula and The maximum value of O G,D Represents the indicator function.
[0099] As described in the above steps S801-S802, the training of the first sub-model and the second sub-model is realized, the purpose of which is to make the outputs of the two identical and close to the actual fermentation time. The first sub-model is initially trained in the following manner: It needs to obtain the corresponding temporary predicted fermentation time and the corresponding actual fermentation time, and input the first vector v1 into the first intermediate model to obtain the target predicted value r j , where, since the first sub-model has completed the first step of training, its corresponding target prediction value should be used as a parameter in the training process to achieve the cross-training process, The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model. After the training is completed, the corresponding target compound data needs to be input into the corresponding sub-models (the first sub-model and the second sub-model) respectively, and the two are mutually corrected until the predicted fermentation time output by the first sub-model and the second sub-model is the same, and then the prediction result is output externally.
[0100] In one embodiment, the step S7 of dividing the target compound into two groups of compounds according to a preset method comprises:
[0101] S701: sorting the target compounds corresponding to the different protein liquids according to fermentation time to obtain the change rules of each target compound;
[0102] S702: Divide each target compound into a monotonically changing group and a complex changing group according to the changing rule, wherein the target compound in the monotonically changing group increases or decreases monotonically with the fermentation time, while the target compound in the complex changing group does not change monotonically with the fermentation time.
[0103] Among them, the change rules of each target compound are obtained by sorting according to the fermentation time. Of course, the change rules of the compound are nothing more than getting bigger first and then getting smaller, or getting bigger all the time, getting smaller all the time, getting smaller and then getting bigger, getting bigger and then stopping, getting smaller and then stopping. Since some compound data with a smaller degree of change have been deleted above, the change rules of the target compounds here are relatively obvious. In addition, since the monotonically changing data are generally synergistic, they need to be divided into a group to train the same sub-model, and the complex change group is trained with another sub-model. The sub-model mentioned here is the first sub-model or the second sub-model. If the former is the first sub-model, the latter is the second sub-model, so that the data distribution can be more reasonable. Training the same sub-model for the same type of data can make the training accuracy better, thereby improving the accuracy of the model.
[0104] In one embodiment, after the step S8 of inputting the first vector into a preset first sub-model, and the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain the final fermentation time discrimination model, the method further includes:
[0105] S901: Acquire a test set, wherein the test set includes the actual fermentation time of the test tea leaves and the target compound content of the test tea leaves;
[0106] S902: Input the target compound content into the fermentation time discrimination model, and calculate the loss value of the fermentation time discrimination model according to a preset loss function formula; wherein the loss function formula is:
[0107]
[0108] y j represents the actual fermentation time of the jth test tea, h w (x ij ) represents the predicted fermentation time of the jth test tea leaves according to the corresponding target compound content, n represents the test, Indicates the preset parameter value. represents the loss value of the fermentation time discrimination model;
[0109] S903: Determine whether the loss value is less than a preset loss value;
[0110] S904: If it is less than the preset loss value, it is determined that the training of the fermentation time discrimination model is completed.
[0111] As described in the above steps S901-S904, the detection of the fermentation time discrimination model is realized, which can be specifically expressed by the formula
[0112]
[0113] It should be noted that w iIt is the weight parameter value corresponding to the i-th target compound in the fermentation time discrimination model, rather than an uncertain parameter value. It can be a parameter value pre-defined by the user. For example, if the user needs to make a more accurate judgment on the fermentation time between 2 and 3 years, the weight parameter is increased for the parameter within the fermentation time, so that the accuracy of the fermentation time discrimination model continues to approach this fermentation time, that is, the judgment result within the fermentation time is more accurate. Determine whether the loss value is less than the preset loss value; if it is less than the preset loss value, determine that the fermentation time discrimination model training is completed. If it is not less than the preset loss value, the model needs to be further trained until it is less than the preset loss value.
[0114] Reference Figure 2 The present invention also provides a tea fermentation time detection device, comprising:
[0115] The protein liquid extraction module 10 is used to instruct the implementation of step S1: perform the extraction operation, grind the freeze-dried tea leaves of different fermentation times in liquid nitrogen, add 10 times the volume of lysis solution, mix them thoroughly and evenly, perform ultrasonic operation in an ice water bath for 15 minutes, and then centrifuge to obtain a supernatant, add acetone to the supernatant to precipitate tea protein, and then add the obtained protein precipitate to a solvent for dissolution to obtain a protein liquid of each freeze-dried tea leaf;
[0116] The fingerprint spectrum measurement module 20 is used to instruct the implementation of step S2: performing a measurement operation, measuring each of the protein liquids by high performance liquid chromatography technology to obtain a fingerprint spectrum of each protein liquid;
[0117] The content acquisition module 30 is used to instruct the implementation of step S3: performing an acquisition operation to acquire the content of each designated compound in each of the protein liquids according to the fingerprint spectrum;
[0118] The designated compound aggregation module 40 is used to instruct the implementation of step S4: performing an aggregation operation to aggregate the contents of each designated compound in each of the protein liquids according to the type of the designated compound to obtain a content data set of each designated compound;
[0119] The calculation module 50 is used to instruct the implementation of step S5: calculating the discrete degree of each designated compound;
[0120] The screening module 60 is used to instruct the implementation of step S6: screening out target compounds from the designated compounds according to the discreteness; wherein the number of the target compounds includes at least two;
[0121] The grouping module 70 is used to instruct the implementation of step S7: dividing the target compound into two groups of compounds according to a preset method, and performing vector processing on the two groups of compounds according to a comprehensive method to obtain a first vector and a second vector;
[0122] An input module 80 is used to instruct the implementation of step S8: inputting the first vector into a preset first sub-model, and inputting the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain a final fermentation time discrimination model;
[0123] The tea extracting module 90 is used to instruct the implementation of step S9: sequentially performing extraction operation, measurement operation, acquisition operation and aggregation operation on the tea to be tested to obtain the target content of the target compound of the tea to be tested;
[0124] The fermentation time acquisition module 100 is used to instruct the implementation of step S10: inputting the target content of the target compound of the tea to be tested into the fermentation time discrimination model to obtain the fermentation time of the tea to be tested.
[0125] In one embodiment, the calculation module 50 includes:
[0126] The maximum value extraction submodule is used to instruct the implementation of step S501: extracting the maximum value and the minimum value of the elements in each content data set from the content data set of each specified compound;
[0127] The standard value calculation submodule is used to instruct the implementation of step S502: according to the formula Calculate the standard value for each content data set; where x ij represents the i-th specified compound of the j-th protein liquid, min(x ij ) and max(x ij ) respectively represent the minimum and maximum values of the elements in the content data set corresponding to the i-th specified compound;
[0128] The discrete degree calculation submodule is used to instruct the implementation of step S503: according to the formula Calculate the dispersion of each specified compound, where Among them, E i represents the discrete degree of the i-th specified compound. When p ij = 0, define p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ijrepresents the standard value corresponding to the i-th specified compound data of the j-th protein liquid, and n represents the number of protein liquids.
[0129] In one embodiment, the input module 80 includes:
[0130] The first input submodule is used to instruct the implementation of step S801: input the first vector v1 into the first submodel to obtain a temporary prediction value r i , and the corresponding fermentation time r true Enter the first sub-model through the formula The first sub-model is preliminarily trained to obtain a first intermediate model, and then the first vector v1 is input into the first intermediate model to obtain a target prediction value r j ;
[0131] The second input submodule is used to instruct the implementation of step S802: converting the temporary prediction value r j And the second vector v2 is input into the second sub-model, through the formula The second sub-model is preliminarily trained and the formula is:
[0132] The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model; wherein, θ represents the parameter set of the first sub-model, represents the parameter set of the second sub-model, It means taking the minimum value of θ under the premise of satisfying the above formula and The maximum value of O G,D Represents the indicator function.
[0133] In one embodiment, the grouping module 70 includes:
[0134] The sorting submodule is used to instruct the implementation of step S701: sorting the target compounds corresponding to the different protein liquids according to the fermentation time to obtain the change rule of each target compound;
[0135] The grouping submodule is used to instruct the implementation step S702: each target compound is divided into a monotonically changing group and a complex changing group according to the change rule, wherein the target compound in the monotonically changing group increases or decreases monotonically with the fermentation time, while the target compound in the complex changing group does not change monotonically with the fermentation time.
[0136] In one embodiment, the fermentation time detection device further includes:
[0137] The test set acquisition module is used to instruct the implementation of step S901: acquiring a test set, wherein the test set includes the actual fermentation time of the test tea leaves and the target compound content of the test tea leaves;
[0138] The content input module is used to instruct the implementation of step S902: inputting the target compound content into the fermentation time discrimination model, and calculating the loss value of the fermentation time discrimination model according to a preset loss function formula; wherein the loss function formula is:
[0139]
[0140] y j represents the actual fermentation time of the jth test tea, h w (x ij ) represents the predicted fermentation time of the jth test tea leaves according to the corresponding target compound content, n represents the test, Indicates the preset parameter value. represents the loss value of the fermentation time discrimination model;
[0141] The loss value judgment module is used to instruct the implementation of step S903: judging whether the loss value is less than a preset loss value;
[0142] The determination module is used to instruct the implementation of step S904: if the loss is less than the preset loss value, it is determined that the training of the fermentation time discrimination model is completed.
[0143] Its beneficial effects are: by extracting protein liquid, analyzing the content of specified compounds therein, obtaining the target compound according to the content, training the first sub-model and the second sub-model, and finally obtaining the fermentation time discrimination model, thereby utilizing the characteristics of the content of various compounds to achieve accurate prediction of the fermentation time of tea.
[0144] Reference Figure 3 In an embodiment of the present application, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the content of various compounds, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the fermentation time detection method of tea leaves described in any of the above embodiments can be implemented.
[0145] Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.
[0146] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for detecting the fermentation time of tea leaves described in any of the above embodiments can be implemented.
[0147] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in the present application and used in the embodiments can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0148] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.
[0149] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the claims of the present invention.
Claims
1. A method for detecting the fermentation time of tea leaves, It is characterized in that include: S1: performing an extraction operation, grinding the freeze-dried tea leaves of different fermentation times in liquid nitrogen, adding 10 times the volume of lysis solution, fully mixing, ultrasonically operating in an ice water bath for 15 minutes, and then centrifuging to obtain a supernatant, adding acetone to the supernatant to precipitate tea protein, and then adding the obtained protein precipitate to a solvent for dissolution to obtain a protein liquid of each freeze-dried tea leaf; the lysis solution is a solution of 2.5% SDS, 100mM Tris-HCl, pH8.0, and the solvent is a solution of 8M Urea, 100mM Tris-Cl, pH8.0; S2: Performing a measurement operation, measuring each of the protein liquids by high performance liquid chromatography technology to obtain a fingerprint of each protein liquid; setting chromatographic conditions: mobile phase: the mobile phase is 0.1% formic acid aqueous solution and 0.01% formic acid acetonitrile solution, using gradient elution; Chromatographic column: C18, 3μm, 4.6×150mm, qualitative judgment is made by combining the ultraviolet absorption spectrum scanning diagram, fluorescence emission spectrum scanning diagram and chromatographic peak retention time; quantitative detection wavelengths are: 280nm, 330nm, 530nm, 210nm, and external standard method is used for quantification; S3: performing an acquisition operation to acquire the content of each designated compound in each of the protein liquids according to the fingerprint spectrum; S4: performing an aggregation operation to aggregate the contents of each designated compound in each of the protein liquids according to the type of the designated compound to obtain a data set of the content of each designated compound; S5: Calculate the degree of dispersion of each specified compound; S6: screening out target compounds from the designated compounds according to the discreteness; wherein the number of the target compounds includes at least two; S7: dividing the target compound into two groups of compounds according to a preset method, and performing vectorization processing on the two groups of compounds to obtain a first vector and a second vector; The step S7 of dividing the target compound into two groups of compounds according to a preset method comprises: S701: sorting the target compounds corresponding to the different protein liquids according to fermentation time to obtain the change rules of each target compound; S702: Dividing each target compound into a monotonically changing group and a complexly changing group according to a change rule, wherein the target compound in the monotonically changing group increases or decreases monotonically with the fermentation time, while the target compound in the complexly changing group does not change monotonically with the fermentation time; S8: inputting the first vector into a preset first sub-model, and inputting the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as outputs of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain a final fermentation time discrimination model; The step S8 of inputting the first vector into a preset first sub-model, and the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain the final fermentation time discrimination model includes: S801: transform the first vector v 1 Input into the first sub-model to obtain the temporary prediction value r i The corresponding fermentation time r true Enter the first sub-model through the formula The first sub-model is preliminarily trained to obtain a first intermediate model, and then the first vector v 1 Input into the first intermediate model to obtain the target prediction value r j ; S802: The temporary prediction value r i and the second vector v 2 Input into the second sub-model, through the formula The second sub-model is preliminarily trained and the formula is: The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model; wherein, θ represents the parameter set of the first sub-model, represents the parameter set of the second sub-model, It means taking the minimum value of θ under the premise of satisfying the above formula and The maximum value of O G , D represents the indicator function; S9: performing extraction operation, measurement operation, acquisition operation, and aggregation operation on the tea leaves to be tested in sequence to obtain the target content of the target compound of the tea leaves to be tested; S10: inputting the target content of the target compound of the tea leaves to be tested into the fermentation time discrimination model to obtain the fermentation time of the tea leaves to be tested.
2. The method for detecting the fermentation time of tea leaves according to claim 1, It is characterized in that The step S5 of calculating the discreteness of each designated compound comprises: S501: extracting the maximum value and the minimum value of the elements in each content data set from the content data set of each specified compound; S502: According to the formula Calculate the standard value for each content data set; where x ij represents the content of the i-th specified compound in the j-th protein liquid, min(x ij ) and max(x ij ) respectively represent the minimum and maximum values of the elements in the content data set corresponding to the i-th specified compound; S503: According to the formula Calculate the dispersion of each specified compound, where Among them, E i represents the discrete degree of the i-th specified compound. When p ij = 0, define p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ij represents the standard value corresponding to the i-th specified compound data of the j-th protein liquid, and n represents the number of protein liquids.
3. The method for detecting the fermentation time of tea leaves according to claim 1, It is characterized in that After the step S8 of inputting the first vector into a preset first sub-model, and the second vector into a preset second sub-model, and taking the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and performing cross-training in sequence to obtain the final fermentation time discrimination model, the method further includes: S901: Acquire a test set, wherein the test set includes the actual fermentation time of the test tea leaves and the target compound content of the test tea leaves; S902: Input the target compound content into the fermentation time discrimination model, and calculate the loss value of the fermentation time discrimination model according to a preset loss function formula; wherein the loss function formula is: y k represents the actual fermentation time of the kth test tea, h w (x k ) represents the predicted fermentation time of the kth test tea according to the corresponding target compound content, n' represents the number of the test tea, Indicates the preset parameter value. represents the loss value of the fermentation time discrimination model, w k is the weight parameter value corresponding to the kth test tea in the fermentation time discrimination model; S903: Determine whether the loss value is less than a preset loss value; S904: If it is less than the preset loss value, it is determined that the training of the fermentation time discrimination model is completed.
4. A tea fermentation time detection device, It is characterized in that include: The protein liquid extraction module is used to instruct the implementation of step S1: perform the extraction operation, grind the freeze-dried tea leaves of different fermentation times in liquid nitrogen, add 10 times the volume of lysis solution, mix them thoroughly and evenly, perform ultrasonic operation in an ice water bath for 15 minutes, and then centrifuge to obtain a supernatant, add acetone to the supernatant to precipitate tea protein, and then add the obtained protein precipitate to a solvent for dissolution to obtain the protein liquid of each freeze-dried tea leaf; the lysis solution is a solution of 2.5% SDS, 100mM Tris-HCl, pH8.0, and the solvent is a solution of 8M Urea, 100mM Tris-Cl, pH8.0; The fingerprint spectrum measurement module is used to instruct the implementation of step S2: perform a measurement operation, measure each of the protein liquids by high performance liquid chromatography technology, and obtain a fingerprint spectrum of each protein liquid; set the chromatographic conditions: mobile phase: the mobile phase is 0.1% formic acid aqueous solution and 0.01% formic acid acetonitrile solution, and gradient elution is used; Chromatographic column: C18, 3μm, 4.6×150mm, qualitative judgment is made by combining the ultraviolet absorption spectrum scanning diagram, fluorescence emission spectrum scanning diagram and chromatographic peak retention time; quantitative detection wavelengths are: 280nm, 330nm, 530nm, 210nm, and external standard method is used for quantification; The content acquisition module is used to instruct the implementation of step S3: executing the acquisition operation to acquire the content of each designated compound in each of the protein liquids according to the fingerprint spectrum; The designated compound aggregation module is used to instruct the implementation of step S4: performing an aggregation operation to aggregate the contents of each designated compound in each of the protein liquids according to the type of the designated compound to obtain a content data set of each designated compound; A calculation module, used to instruct the implementation of step S5: calculating the discrete degree of each designated compound; A screening module, used to instruct the implementation of step S6: screening out target compounds from the designated compounds according to the discrete degree; wherein the number of the target compounds includes at least two; A grouping module, used for instructing to implement step S7: dividing the target compound into two groups of compounds according to a preset method, and performing vector processing on the two groups of compounds to obtain a first vector and a second vector; The grouping module comprises: The sorting submodule is used to instruct the implementation of step S701: sorting the target compounds corresponding to the different protein liquids according to the fermentation time to obtain the change rule of each target compound; The grouping submodule is used to instruct the implementation of step S702: each target compound is divided into a monotonically changing group and a complex changing group according to the change rule, wherein the target compound in the monotonically changing group increases or decreases monotonically with the change of fermentation time, while the target compound in the complex changing group does not change monotonically with the change of fermentation time; An input module, used to instruct the implementation of step S8: input the first vector into a preset first sub-model, and input the second vector into a preset second sub-model, and use the corresponding fermentation time of freeze-dried tea leaves as the output of the first sub-model and the second sub-model, and perform cross-training in sequence to obtain a final fermentation time discrimination model; The input module comprises: The first input submodule is used to instruct the implementation of step S801: convert the first vector v 1 Input into the first sub-model to obtain the temporary prediction value r i The corresponding fermentation time r true Enter the first sub-model through the formula The first sub-model is preliminarily trained to obtain a first intermediate model, and then the first vector v 1 Input into the first intermediate model to obtain the target prediction value r j ; The second input submodule is used to instruct the implementation of step S802: converting the temporary prediction value r i and the second vector v 2 Input into the second sub-model, through the formula The second sub-model is preliminarily trained and the formula is: The first intermediate model and the second sub-model are cross-trained to obtain the fermentation time discrimination model; wherein, θ represents the parameter set of the first sub-model, represents the parameter set of the second sub-model, It means taking the minimum value of θ under the premise of satisfying the above formula and The maximum value of O G,D represents the indicator function; The tea leaf extraction module to be tested is used to instruct the implementation of step S9: sequentially performing extraction operation, measurement operation, acquisition operation, and aggregation operation on the tea leaf to be tested to obtain the target content of the target compound of the tea leaf to be tested; The fermentation time acquisition module is used to instruct the implementation of step S10: inputting the target content of the target compound of the tea to be tested into the fermentation time discrimination model to obtain the fermentation time of the tea to be tested.
5. The tea fermentation time detection device according to claim 4, It is characterized in that The computing module comprises: The maximum value extraction submodule is used to instruct the implementation of step S501: extracting the maximum value and the minimum value of the elements in each content data set from the content data set of each specified compound; The standard value calculation submodule is used to instruct the implementation of step S502: according to the formula Calculate the standard value for each content data set; where x ij represents the content of the i-th specified compound in the j-th protein liquid, min(x ij ) and max(x ij ) respectively represent the minimum and maximum values of the elements in the content data set corresponding to the i-th specified compound; The discrete degree calculation submodule is used to instruct the implementation of step S503: according to the formula Calculate the dispersion of each specified compound, where Among them, E i represents the discrete degree of the i-th specified compound. When p ij = 0, define p ij represents the median value corresponding to the data of the i-th specified compound of the j-th protein liquid, Y ij represents the standard value corresponding to the i-th specified compound data of the j-th protein liquid, and n represents the number of protein liquids.
6. The tea fermentation time detection device according to claim 4, It is characterized in that The fermentation time detection device further comprises: The test set acquisition module is used to instruct the implementation of step S901: acquiring a test set, wherein the test set includes the actual fermentation time of the test tea leaves and the target compound content of the test tea leaves; The content input module is used to instruct the implementation of step S902: inputting the target compound content into the fermentation time discrimination model, and calculating the loss value of the fermentation time discrimination model according to a preset loss function formula; wherein the loss function formula is: y k represents the actual fermentation time of the kth test tea, h w (x k ) represents the predicted fermentation time of the kth test tea according to the corresponding target compound content, n' represents the number of the test tea, Indicates the preset parameter value. represents the loss value of the fermentation time discrimination model, w k is the weight parameter value corresponding to the kth test tea in the fermentation time discrimination model: The loss value judgment module is used to instruct the implementation of step S903: judging whether the loss value is less than a preset loss value: The determination module is used to instruct the implementation of step S904: if the loss is less than the preset loss value, it is determined that the training of the fermentation time discrimination model is completed.
