A rapid microwave moisture detection method for white peony root slices

By constructing a temperature field in the microwave field and using the gradient descent optimization method, the problem of low efficiency and large error in microwave moisture detection of white peony samples was solved, the rapid and accurate detection of the moisture content of white peony samples was achieved, and the accuracy of the detection was improved. and reliability.

CN118010763BActive Publication Date: 2024-09-27SICHUAN JUYUAN CHINESE HERBAL MEDICINE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410220945.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2024-09-27
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

In the prior art, the detection efficiency of white peony samples in microwave moisture detection is not high and measurement errors are prone to occur due to the influence of temperature.

Method used

By constructing a temperature field in the microwave field that can monitor the temperature change of the sample, setting multiple temperature gradient values, applying microwave radiation energy to the white peony sample, monitoring the temperature change and absorption, calculating the most suitable temperature value and evaluating the detection error, use The gradient descent optimization method sets the water absorption threshold range, divides polygon grids for regional temperature monitoring and extends the detection period to reduce errors.

Benefits of technology

This method realizes the rapid, efficient and accurate detection of the moisture content of white peony root samples, reduces the impact of temperature factors on the moisture measurement results, and improves the accuracy and reliability of the detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118010763B
    Figure CN118010763B
Patent Text Reader

Abstract

The present invention discloses a method for rapid microwave moisture detection of white peony slices, the method comprising: step S100: constructing a temperature field with adjustable temperature in a microwave field, placing a white peony sample in the temperature field and setting a plurality of temperature gradient values; step S200: applying a plurality of levels of microwave radiation energy to the white peony sample at each temperature gradient value, and respectively monitoring and recording sample data of the amount of absorption of each level of microwave radiation energy by the sample at each temperature gradient value; step S300: obtaining the most suitable temperature value and microwave implementation parameters based on the sample data; step S400: and calculating the measured water content of the current white peony sample based on the microwave implementation parameters. Through the multi-level evaluation of microwave energy and the real-time monitoring of the sample energy absorption rate, the data accuracy of microwave moisture detection of white peony slices is effectively improved, and the moisture detection efficiency of white peony slices is significantly improved under the premise of detecting a large number of samples and ensuring data accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of microwave processing, and in particular to a method for rapid microwave moisture detection of white peony root slices. Background Art

[0002] As an important Chinese medicinal material, white peony slices are widely used in the field of traditional Chinese medicine, and their water content is one of the important indicators for evaluating their quality. Therefore, it is of great significance to quickly and accurately determine the water content of white peony slices to ensure their quality. The traditional method of detecting the moisture content of white peony slices mainly relies on the drying method, which has the disadvantage of a long measurement time. Under the condition of meeting the same accuracy, a method that can quickly detect the moisture content of white peony slices is needed. At present, microwave moisture detection technology has been applied in many fields. If microwave detection technology is used directly to detect the moisture content of a large number of white peony samples in batches, there may be deviations in the final measured water content due to differences in the movement efficiency of water molecules at different temperatures, resulting in differences in sample temperature changes. Summary of the invention

[0003] The invention provides a method for rapid microwave moisture detection of white peony root slices, which solves the problems of low detection efficiency and measurement error caused by temperature when performing microwave moisture detection on white peony root samples.

[0004] The present invention is achieved through the following technical solutions:

[0005] A rapid microwave moisture detection method for white peony root slices, the method comprising:

[0006] Step S100: constructing a temperature field capable of monitoring the temperature change of the sample in the microwave field, placing the white peony sample in the temperature field, evaluating the ambient temperature required for microwave radiation, and setting a plurality of temperature gradient values ​​for the temperature field based on the evaluation result;

[0007] Step S200: applying microwave radiation energy to the white peony root sample at each temperature gradient value, monitoring the temperature change and absorption of microwave radiation energy of the white peony root sample at each temperature gradient value, and recording them as sample data;

[0008] Step S300: classifying the sample data according to different temperature gradient values, calculating and feeding back the most suitable temperature value of the white peony root sample based on the classified sample data, and recording the microwave implementation parameters of the microwave radiation energy under the most suitable temperature value;

[0009] Step S400: setting the measured water content of the current white peony sample and calculating it based on the microwave implementation parameters, setting the reference water content and calculating it based on the sample data, and comparing the reference water content with the measured water content to evaluate the detection error.

[0010] At present, microwave moisture detection technology has been applied in many fields. If microwave detection technology is directly used to detect moisture in a large number of white peony samples in batches, the difference in sample temperature changes caused by the difference in the motion efficiency of water molecules at different temperatures may also cause deviations in the final measured water content. Based on this, the present invention provides a microwave moisture rapid detection method for white peony slices, which solves the problems of low detection efficiency and measurement errors caused by temperature when performing microwave moisture detection on white peony samples.

[0011] Furthermore, the calculation process of the reference moisture content includes: constructing a spatial coordinate system in a microwave field, recording the microwave radiation energy absorbed by the white peony sample and the total temperature change of the white peony sample in the spatial coordinate system, and monitoring and recording the temperature change of different parts of each white peony sample to calculate the reference moisture content.

[0012] Furthermore, the method for monitoring the temperature change of different parts of each white peony root sample includes:

[0013] Step S410: controlling the temperature of the temperature field at the most suitable temperature value, setting the monitoring sample temperature change form to the infrared thermal image of regional temperature monitoring, and evenly drawing a number of polygonal grids representing spatial positions in the spatial coordinate system;

[0014] Step S420: presetting a detection cycle for a single detection duration, presetting an initial temperature curve for the measured temperature value of the white peony sample, placing the white peony sample in a temperature field, starting microwave radiation, and monitoring the surface temperature of the white peony sample in real time;

[0015] Step S430: draw out temperature-raising blocks composed of all polygonal meshes, record the temperature change in each temperature-raising block as an actual temperature curve, and set a water absorption threshold range for the initial temperature curve to compare with the actual temperature curve;

[0016] Step S440: if there is a temperature rise block whose comparison result exceeds the water absorption threshold range, it is divided and marked as a water absorption difference block, and the detection period is extended by one time to apply microwave radiation energy to the water absorption difference block alone.

[0017] Further, a gradient descent optimization method is used to set the water absorption threshold range, and the setting method includes:

[0018] Step S421: setting an initial threshold value of the water absorption threshold range, starting from the first detection cycle, setting a number of consecutive detection cycles as pre-test cycles, setting the number of pre-test cycles as the number of iterations, and presetting a learning rate value of the gradient descent;

[0019] Step S422: Compare the actual temperature curve of each heating block in the pre-test cycle with the initial threshold value, and obtain the average value of the square of the comparison difference and the absolute value of the comparison difference, both of which are used to define the loss function;

[0020] Step S423: The initial threshold calculates the gradient of the loss function, and updates the parameters of the water absorption threshold range according to the gradient and the set learning rate. If the loss function decreases, the updated parameters are retained, otherwise the previous parameters are used until the number of iterations is reached.

[0021] Further, a regularization term L is constructed to correct the loss function to update the water absorption threshold range; the regularization term includes a regularization coefficient λ, a first model parameter ω for representing the operating characteristics of the initial temperature curve, and a second model parameter Ω for representing the actual temperature curve, and the number and ordinal number of the heating blocks are n and i respectively;

[0022] Then the calculation formula of the regularization term is: L = λ·∑ n i=1 (Ω i -ω i ) 2 ;

[0023] The regularization term is added to the loss function to complete the correction update of the loss function.

[0024] Furthermore, the method for dividing the heating block includes: based on the infrared temperature measurement data of each polygonal grid, calculating the temperature difference between adjacent polygonal grids and setting the heating critical value to determine the boundary points of the heating block; using polygon fitting to collect all boundary points and calculate the polygon shape that meets all boundary points to represent the range of the heating block.

[0025] Furthermore, the calculation method of the most suitable temperature value includes: setting a measurement temperature threshold that limits the average temperature of the white peony sample to indicate the water activity that the water in the white peony sample needs to reach when the reference water content calculation can be completed, and setting the time for the white peony sample to reach the measurement temperature threshold as the reaction period; setting the most suitable temperature value as T, and the reference water content as x 1 The sample measurement temperature is expressed as x 2 , the reaction period is represented by x 3 , then the calculation formula for setting the most suitable temperature value is expressed as: T = α·x 1 +β·x 2 +γ·x 3 , where α, β and γ represent the distribution weight parameters of reference moisture content, sample measurement temperature and reaction period, respectively, and the distribution weight parameter ratio is reduced from high to low in the order of β, γ and α.

[0026] Compared with the prior art, the present invention applies microwave radiation to the white peony sample by constructing a gradient temperature field, and based on obtaining the temperature and absorbed energy of the sample, combines the steps of calculating the most suitable temperature value and evaluating the error, thereby realizing rapid and accurate detection of the water content of the white peony sample. The present invention has the advantages and beneficial effects of being able to realize rapid and efficient measurement and accurate evaluation of the water content of the white peony sample. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0028] Figure 1 It is a flowchart of the present invention. DETAILED DESCRIPTION

[0029] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention. Example

[0030] like Figure 1 As shown, this embodiment is a method for rapid microwave moisture detection of white peony slices, the method comprising:

[0031] Step S100: constructing a temperature field capable of monitoring the temperature change of the sample in the microwave field, placing the white peony sample in the temperature field, evaluating the ambient temperature required for microwave radiation, and setting a plurality of temperature gradient values ​​for the temperature field based on the evaluation result;

[0032] Step S200: applying microwave radiation energy to the white peony root sample at each temperature gradient value, monitoring the temperature change and absorption of microwave radiation energy of the white peony root sample at each temperature gradient value, and recording them as sample data;

[0033] Step S300: classifying the sample data according to different temperature gradient values, calculating and feeding back the most suitable temperature value of the white peony root sample based on the classified sample data, and recording the microwave implementation parameters of the microwave radiation energy under the most suitable temperature value;

[0034] Step S400: setting the measured water content of the current white peony sample and calculating it based on the microwave implementation parameters, setting the reference water content and calculating it based on the sample data, and comparing the reference water content with the measured water content to evaluate the detection error.

[0035] Specifically, based on the required characteristics of the white peony sample heating and the characteristics of the microwave radiation parameters used, the influence of ambient temperature on microwave radiation is considered, including the influence of temperature on microwave transmission, the characteristics of the sample absorbing microwaves, and other factors, and the temperature gradient value is estimated and set, and the set temperature gradient value is monitored and recorded for subsequent analysis and adjustment. The parameters involved in the microwave radiation energy mainly include microwave power and frequency, microwave radiation cycle and the length of time for maintaining different parameters, the selection of continuous or pulsed microwave radiation mode, microwave radiation power density, etc. The sample data mainly includes the monitoring and collection of the absorption rate, absorption amount and absorption spectrum of microwave radiation energy, and may also include the dynamic relationship between temperature change and absorption amount in specific applications. Classification is performed according to the sample data under different temperature gradient values, which helps to identify the characteristics and behaviors of the sample under different temperature conditions. Monitoring the temperature change and microwave radiation absorption during implementation can be achieved by setting sensors, infrared imaging equipment and power meters. After collecting and recording the parameters in the microwave implementation process, including microwave power, microwave frequency, microwave radiation time, etc., the standard sample is subjected to microwave radiation treatment and its water content is measured. The existing detection data scheme of the microwave equipment currently used and the medicinal material reference parameters of the white peony sample are used to establish a relationship model between the current white peony sample water content and the microwave implementation parameters, and between the white peony sample and the sample data. Based on the monitoring data of the microwave implementation parameters and the sample temperature change, the measured water content and the reference water content of the sample to be tested are calculated using two relationship models, and the deviation value of the measured water content is judged based on the reference water content. In the specific implementation, if the deviation value exceeds the conventional value range of the white peony sample, the part of the white peony sample is extracted separately, and the water content is measured by other determination methods to determine whether the deviation of the measured water content is large. For example, the white peony sample can be dried and the mass difference before and after the white peony sample is detected and calculated to evaluate the error size of the moisture detection. By setting the measured moisture content of the current white peony sample and calculating the moisture content of the white peony sample based on the microwave implementation parameters, and setting the reference moisture content and calculating the moisture content based on the sample data, and comparing these two moisture contents, the error size of the microwave detection method under the current most suitable temperature value can be evaluated, which can further verify the accuracy of the detection method.

[0036] Further, as a feasible implementation method, the calculation process of the reference water content includes: constructing a spatial coordinate system in a microwave field, recording the microwave radiation energy absorbed by the white peony sample and the total temperature change of the white peony sample in the spatial coordinate system, and monitoring and recording the temperature change of different parts of each white peony sample to calculate the reference water content. The method for monitoring the temperature change of different parts of each white peony sample includes:

[0037] Step S410: controlling the temperature of the temperature field at the most suitable temperature value, setting the monitoring sample temperature change form to the infrared thermal image of regional temperature monitoring, and evenly drawing a number of polygonal grids representing spatial positions in the spatial coordinate system;

[0038] Step S420: presetting a detection cycle for a single detection duration, presetting an initial temperature curve for the measured temperature value of the white peony sample, placing the white peony sample in a temperature field, starting microwave radiation, and monitoring the surface temperature of the white peony sample in real time;

[0039] Step S430: draw out temperature-raising blocks composed of all polygonal meshes, record the temperature change in each temperature-raising block as an actual temperature curve, and set a water absorption threshold range for the initial temperature curve to compare with the actual temperature curve;

[0040] Step S440: if there is a temperature rise block whose comparison result exceeds the water absorption threshold range, it is divided and marked as a water absorption difference block, and the detection period is extended by one time to apply microwave radiation energy to the water absorption difference block alone.

[0041] Microwave technology has been widely used in the field of moisture determination due to its fast and efficient characteristics. Microwave heating can cause thermal motion of molecules inside the sample, thus achieving rapid moisture determination. The current main microwave moisture rapid detection process is to place the white peony sample in a measurement chamber, and the microwave energy is released and propagated into the sample to interact with the water molecules. The water molecules will cause rapid rotation and friction motion due to their polarity, generating heat energy that causes the sample temperature to rise. The microwave moisture detection instrument will measure the microwave energy absorbed by the sample. By accurately measuring the temperature change of the sample in the microwave field or the change of microwave power, the amount of water in the sample can be determined. At present, in the process of microwave moisture detection of white peony slices by calculating the relationship between temperature change and water content, due to the differences in the characteristics of white peony samples from different batches and origins, when white peony samples with large characteristic differences and large quantities are used for microwave moisture detection at the same time, if the batches and origins are not manually classified and screened in order to save detection time, the temperature change on the surface of the sample in the microwave field may lack uniformity due to the uneven water distribution and water absorption of the white peony samples during the microwave treatment process, making the detected water content less than the actual sample water content, resulting in errors in the water content measured for the white peony samples within the unit detection time, thereby affecting the accurate judgment of the actual water content of the white peony slices. If excessive time and microwave radiation energy are spent on moisture detection of samples, on the one hand, the quality of the white peony samples may be damaged due to additional overheating or excessive microwave radiation, and on the other hand, if the microwave radiation energy is increased too high, it may cause the water in the measured water-containing surface area to evaporate, while increasing energy consumption, resulting in increased measurement errors and increased detection costs. The invention provides a method for rapid microwave moisture detection of white peony slices, which solves the problem that when microwave moisture detection is performed on white peony samples with different characteristics at the same time, local errors are easily generated in temperature difference detection due to the difference in water absorption of different samples.

[0042] Controlling the temperature of the temperature field at the most suitable temperature value can ensure that the sample is under the most suitable heating conditions, which is conducive to making full use of microwave radiation energy and improving the heating efficiency and uniformity of the sample. At the same time, avoid the sample from affecting the change of the surrounding temperature due to the increased temperature caused by the active water molecules, so as to avoid the temperature factor from affecting the activity of water molecules. Keeping the temperature of the temperature field near the most suitable temperature value can effectively control the heating rate and temperature change trend of the sample, which is conducive to reducing the temperature gradient and improving the temperature stability, thereby improving the accuracy and reliability of the detection. The division of polygonal grids can help accurately locate the position of the sample in space. By dividing the space into multiple grids, the sample surface can be divided into different areas, and each area can be independently monitored and recorded for temperature. In the specific implementation, the estimated value of the initial temperature curve can be estimated according to the existing thermal motion law of water molecules in the white peony sample or other sample experimental results of microwave action on water, mainly involving the calculation model of the temperature increase caused by the vibration and rotation of water molecules under the action of microwaves, and the initial temperature curve is constructed based on the existing theoretical and experimental data analysis results. This initial temperature curve can be fitted according to the experimentally measured temperature data, or it can be calculated according to the existing theoretical model; after setting the initial temperature curve, if the final measured water content deviates too much from the reference water content or the water content value under additional verification, it may be necessary to adjust the parameters of the model so that the preset initial temperature curve can better conform to the actual situation. Extending the detection period by one time to apply microwave radiation energy to the water absorption difference block separately can avoid the global application of microwave radiation energy and avoid continuing to apply microwave radiation to the water molecule activity that has reached the calculable microwave moisture, which may cause the water to evaporate due to the increase in energy and the temperature to continue to rise, resulting in additional deviations in the determination of water content. As a preferred method, in a specific implementation, when applying microwave radiation energy to the water absorption difference block separately, since the implementation time is limited to the duration of a detection cycle, a metrological model or temperature difference coefficient can be constructed based on the temperature change value of other temperature-raising blocks and the microwave implementation parameters, which is used to evaluate the size of the microwave implementation parameters required to apply microwave radiation energy to each water absorption difference block within the extended detection period.

[0043] Further, a gradient descent optimization method is used to set the water absorption threshold range, and the setting method includes:

[0044] Step S421: setting an initial threshold value of the water absorption threshold range, starting from the first detection cycle, setting a number of consecutive detection cycles as pre-test cycles, setting the number of pre-test cycles as the number of iterations, and presetting a learning rate value of the gradient descent;

[0045] Step S422: Compare the actual temperature curve of each heating block in the pre-test cycle with the initial threshold value, and obtain the average value of the square of the comparison difference and the absolute value of the comparison difference, both of which are used to define the loss function;

[0046] Step S423: The initial threshold calculates the gradient of the loss function, and updates the parameters of the water absorption threshold range according to the gradient and the set learning rate. If the loss function decreases, the updated parameters are retained, otherwise the previous parameters are used until the number of iterations is reached.

[0047] When setting the initial threshold of the water absorption threshold range, an evaluation and optimization can be performed based on the test data of the white peony sample or the microwave parameter, and a suitable initial threshold can be selected as the starting point. It is also possible to evaluate a feasible initial threshold according to the actual monitoring temperature of the white peony sample while performing microwave detection for several pre-test cycles. Setting the number of pre-test cycles to the number of iterations means setting the number of iterations to the number of pre-test cycles determined in advance. This means that a certain number of iterations will be performed during the optimization process, and each iteration cycle is called a pre-test cycle to gradually adjust the parameters of the water absorption threshold range. The learning rate value of the preset gradient descent refers to a parameter pre-set in the gradient descent optimization algorithm, which is used to control the amplitude of each parameter update. The learning rate determines the size of the parameter update in each iteration. A too large learning rate may cause the algorithm to be unstable, while a too small learning rate may cause the optimization process to converge too slowly. The average value of the sum of squares and the absolute value of the contrast difference can quantify the difference between the actual temperature curve and the initial threshold. The sum of squares reflects the overall size of the difference, while the average value of the absolute value represents the average degree of the difference. Through these two indicators, the degree of difference between the actual temperature curve and the initial threshold can be objectively evaluated. Using the average of the square sum and absolute value of the contrast difference to define the loss function can make the loss function more sensitive and fully reflect the difference between the actual temperature curve and the initial threshold value. The average of the square sum and absolute value of the contrast difference can effectively guide the optimization algorithm to search in the direction of the minimum value of the loss function, thereby improving the convergence speed of the optimization process; by continuously adjusting the parameters, the loss function is gradually reduced, and the optimization process can converge to the optimal solution faster. The design of the loss function should be able to effectively characterize the relationship between the objective function (i.e., the amount to be minimized) and the optimization parameters. Through the definition of the loss function, the gradient descent optimization method can use the average of the square sum and absolute value of the contrast difference to guide the optimization direction and amplitude of the parameters. In each iteration, the gradient descent algorithm adjusts the parameters according to the gradient and learning rate of the loss function to gradually reduce the loss function, thereby achieving the purpose of optimization.

[0048] Further, as a feasible implementation method, in this embodiment, a regularization term L is constructed to correct the loss function to update the water absorption threshold range; the regularization term includes a regularization coefficient λ, a first model parameter ω for representing the operating characteristics of the initial temperature curve, and a second model parameter Ω for representing the actual temperature curve. The number and ordinal number of the heating blocks are n and i, respectively; the calculation formula of the regularization term is: L=λ·∑ n i=1 (Ω i -ω i ) 2 ; Add the regularization term to the loss function to complete the correction and update of the loss function. The model parameters of the initial temperature curve and the actual temperature curve mainly include the average value of the temperature curve, the standard deviation, the time characteristics, the rate of change and the distribution characteristics of the temperature, etc. The regularization term penalizes the convergence of the parameter model of the loss function, which can enhance the stability of the model, reduce the correlation between the parameters, and prevent large changes between the parameters; at the same time, it can effectively avoid the model from overfitting the training data, thereby improving the generalization ability of the model. The model parameters in the regularization term are set to the various difference values ​​between the initial temperature curve and the actual temperature curve, and are penalized by the square difference, and the degree of influence is controlled by the regularization coefficient. In the process of finding the water absorption threshold range, regularization can help the model better adapt to different data sets and avoid the situation where the model performs well on the training data but poorly on the test data. In specific applications, the regularization coefficient λ can be obtained by cross-validation or empirical adjustment. When the regularization coefficient λ is determined by cross-validation, the data set can be divided into a training set and a validation set. Then, the model is trained on the training set and the model performance is evaluated on the validation set. By trying different λ values, the λ value corresponding to the model with the best performance on the validation set is selected as the final choice. In some other cases, the regularization coefficient λ can also be adjusted based on the domain knowledge or experience of white peony samples. Based on previous experimental experience or understanding of the problem, the range of λ can be roughly estimated, and attempts can be made within this range to select a suitable λ value.

[0049] Further, as a feasible implementation, the method for dividing the heating block includes: based on the infrared temperature measurement data of each polygonal grid, calculating the temperature difference between adjacent polygonal grids and setting the heating critical value to determine the boundary points of the heating block; using polygon fitting to collect all boundary points and calculate the polygon shape that meets all boundary points to represent the range of the heating block. The temperature difference can help detect the temperature change between different areas. By comparing the temperature values ​​of adjacent grids, the area with large temperature change can be found. When the temperature difference between adjacent grids exceeds the preset critical value, the boundary points between them can be marked as possible boundary points of the heating block, which helps to more accurately divide the range of the heating block. The heating critical value is used to filter out areas with small temperature differences, reducing the complexity of subsequent data processing. By setting an appropriate critical value, unnecessary boundary points can be eliminated, thereby simplifying the subsequent polygon fitting and area division process, and improving the efficiency and accuracy of the algorithm. The polygon fitting can calculate a polygon shape that meets these points based on the determined boundary points, thereby accurately representing the range of the heating block. Polygon fitting algorithms usually have high computational efficiency and can complete the fitting of boundary points in a short time and give the corresponding polygon shape, which can speed up the area division and improve the efficiency of data processing.

[0050] Further, as a feasible implementation method, the method for calculating the most suitable temperature value includes: setting a measurement temperature threshold that limits the average temperature of the white peony sample to indicate the water activity that the water in the white peony sample needs to reach when the reference water content calculation can be completed, and setting the time for the white peony sample to reach the measurement temperature threshold as the reaction period; setting the most suitable temperature value as T, and the reference water content as x 1 The sample measurement temperature is expressed as x 2 , the reaction period is represented by x 3 , then the calculation formula for setting the most suitable temperature value is expressed as: T = α·x 1 +β·x 2 +γ·x 3 , where α, β and γ represent the distribution weight parameters of reference moisture content, sample measurement temperature and reaction period, respectively, and the distribution weight parameter ratio is reduced from high to low in the order of β, γ and α.

[0051] The measurement temperature threshold can reflect the water activity of the sample, that is, at what temperature the sample begins to show water activity. This helps to evaluate the water content and water state of the sample, and provides a reference for subsequent analysis and processing. The reaction period is the time required for the sample to reach the measurement temperature threshold, which can be used to measure the reaction speed and water activity of the sample. A shorter reaction period usually indicates that the sample has a higher water activity and a faster reaction speed, and vice versa. 2 It reflects the actual temperature of the sample and is an important data obtained by direct measurement. Setting a higher weight for the β parameter can ensure that the actual temperature of the sample plays a leading role in calculating the most suitable temperature value. 3 It is used to measure the water activity and reaction speed of the sample, which indirectly affects the most suitable temperature of the sample. If the weight of the γ parameter is the second highest, the influence of the reaction performance of the sample on the most suitable temperature value can be considered to a certain extent. The reference water content is expressed as x 1 The influence of and the γ weight value are set to be relatively small relative to the actual temperature and reaction period, so that while ensuring that its influence is taken into account, more attention can be paid to the actual temperature and reaction rate of the sample.

[0052] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A microwave moisture rapid detection method for white peony root slices, characterized in that: The method includes: Step S100: constructing a temperature field capable of monitoring the temperature change of the sample in the microwave field, placing the white peony sample in the temperature field, evaluating the ambient temperature required for microwave radiation, and setting a plurality of temperature gradient values ​​for the temperature field based on the evaluation result; Step S200: applying microwave radiation energy to the white peony root sample at each temperature gradient value, monitoring the temperature change and absorption of microwave radiation energy of the white peony root sample at each temperature gradient value, and recording them as sample data; Step S300: classifying the sample data according to different temperature gradient values, calculating and feeding back the most suitable temperature value of the white peony root sample based on the classified sample data, and recording the microwave implementation parameters of the microwave radiation energy under the most suitable temperature value; Step S400: setting the measured water content of the current white peony root sample and calculating it based on the microwave implementation parameters, setting the reference water content and calculating it based on the sample data, and comparing the reference water content with the measured water content to evaluate the detection error; The calculation method of the most suitable temperature value includes: setting a measurement temperature threshold that limits the average temperature of the white peony sample to indicate the moisture activity that the white peony sample needs to reach when the reference moisture content calculation can be completed, and setting the time for the white peony sample to reach the measurement temperature threshold as the reaction period; assuming that the most suitable temperature value is represented by T, the reference moisture content is represented by x1, the sample measurement temperature value is represented by x2, and the reaction period is represented by x3, then setting the most suitable temperature value calculation formula to be expressed as: T=α·x1+β·x2+γ·x3, wherein α, β and γ are respectively represented as the distribution weight parameters of the reference moisture content, the sample measurement temperature value and the reaction period, and the distribution weight parameter ratio is reduced from high to low in the order of β, γ and α.

2. The method for rapid microwave moisture detection of white peony root slices according to claim 1, characterized in that: The calculation process of the reference moisture content includes: constructing a spatial coordinate system in a microwave field, recording the microwave radiation energy absorbed by the white peony sample and the total temperature change of the white peony sample in the spatial coordinate system, and monitoring and recording the temperature change of different parts of each white peony sample to calculate the reference moisture content.

3. The method for rapid microwave moisture detection of white peony root slices according to claim 2, characterized in that: The method for monitoring the temperature variation of different parts of each white peony root sample comprises: Step S410: controlling the temperature of the temperature field at the most suitable temperature value, setting the monitoring sample temperature change form to the infrared thermal image of regional temperature monitoring, and evenly drawing a number of polygonal grids representing spatial positions in the spatial coordinate system; Step S420: presetting a detection cycle for a single detection duration, presetting an initial temperature curve for the measured temperature value of the white peony sample, placing the white peony sample in a temperature field, starting microwave radiation, and monitoring the surface temperature of the white peony sample in real time; Step S430: draw out temperature-raising blocks composed of all polygonal meshes, record the temperature change in each temperature-raising block as an actual temperature curve, and set a water absorption threshold range for the initial temperature curve to compare with the actual temperature curve; Step S440: if there is a temperature rise block whose comparison result exceeds the water absorption threshold range, it is divided and marked as a water absorption difference block, and the detection period is extended by one time to apply microwave radiation energy to the water absorption difference block alone.

4. The method for rapid microwave moisture detection of white peony root slices according to claim 3, characterized in that: A gradient descent optimization method is used to set the water absorption threshold range, which includes: Step S421: setting an initial threshold value of the water absorption threshold range, starting from the first detection cycle, setting a number of consecutive detection cycles as pre-test cycles, setting the number of pre-test cycles as the number of iterations, and presetting a learning rate value of the gradient descent; Step S422: Compare the actual temperature curve of each heating block in the pre-test cycle with the initial threshold value, and obtain the average value of the square of the comparison difference and the absolute value of the comparison difference, both of which are used to define the loss function; Step S423: The initial threshold calculates the gradient of the loss function, and updates the parameters of the water absorption threshold range according to the gradient and the set learning rate. If the loss function decreases, the updated parameters are retained, otherwise the previous parameters are used until the number of iterations is reached.

5. The method for rapid microwave moisture detection of white peony root slices according to claim 4, characterized in that: A regularization term L is constructed to correct the loss function to update the water absorption threshold range; the regularization term includes a regularization coefficient λ, a first model parameter ω for representing the operating characteristics of the initial temperature curve, and a second model parameter Ω for representing the actual temperature curve, and the number and ordinal number of the heating blocks are n and i respectively; Then the calculation formula of the regularization term is: L = λ·∑ n i=1 (Ω i -ω i ) 2 ; The regularization term is added to the loss function to complete the correction update of the loss function.

6. The method for rapid microwave moisture detection of white peony root slices according to claim 3, characterized in that: The method for dividing the heating block includes: based on the infrared temperature measurement data of each polygonal grid, calculating the temperature difference between adjacent polygonal grids and setting the heating critical value to determine the boundary points of the heating block; using polygon fitting to collect all boundary points and calculate the polygon shape that meets all boundary points to represent the range of the heating block.