A temperature compensation method for moisture content measurement
By collecting moisture content signal values at different equipment temperatures and establishing a temperature compensation neural network model, the problem of measurement result drift caused by temperature changes in the existing technology is solved, high-precision temperature compensation is achieved, and the accuracy of moisture content measurement is ensured. .
Patent Information
- Application Number
- CN202210762212.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-06-29
AI Technical Summary
Existing moisture content detection equipment and technology fail to effectively consider the nonlinear impact of temperature changes on measurement results, resulting in low temperature compensation accuracy.
By collecting moisture content signal values at different equipment temperatures, recording the sample temperature, and performing data processing to establish and optimize the temperature compensation neural network model, temperature compensation of the sample to be measured is achieved.
The temperature compensation accuracy is improved, errors caused by human operating factors are avoided, and the accuracy of the measurement results is ensured.
Smart Images

Figure CN115144539B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of water content measurement, and in particular to a temperature compensation method for water content measurement. Background Art
[0002] Moisture content measurement has a wide range of uses in all walks of life. For example, in the agricultural field, by measuring soil moisture content, the relationship between moisture content and plant growth can be further studied. In industries such as wood processing, food processing, and grain storage, moisture content measurement and control are very important measures. In the field of cultural relics protection, water is one of the main factors causing the deterioration of masonry cultural relics. Finding out its distribution and migration laws within cultural relics is an important basis for carrying out protection research. Accurate measurement of moisture content is also a prerequisite for protection intervention.
[0003] Existing moisture content detection equipment and technologies generally do not compensate for temperature, or increase or decrease the moisture content measurement results by a fixed value according to the size of the temperature change. This does not take into account that when the moisture content of the object being measured is different, the measurement result drift caused by the same temperature change will have nonlinear characteristics, so the temperature compensation accuracy is not high.
[0004] Therefore, it is necessary to provide a new technical solution to improve one or more problems existing in the above solutions.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a temperature compensation method for moisture content measurement, thereby overcoming one or more problems caused by limitations and defects of related technologies at least to a certain extent.
[0007] Collecting the moisture content signal value of the sample to be tested at different device temperatures, and recording each sampling time and each sample temperature of the sample to be tested at the different device temperatures;
[0008] Compensating the moisture content signal value at each sampling time to obtain a compensated moisture content signal value;
[0009] and performing data processing on the compensated moisture content signal value, the device temperature and the sample temperature to obtain a relationship group among the device temperature, the sample temperature and the compensated moisture content signal value;
[0010] Based on the obtained relationship group, a temperature compensation neural network model is established and optimized, and temperature compensation is performed on the sample to be tested based on the optimized temperature compensation neural network model.
[0011] In an embodiment of the present disclosure, the step of placing the sample to be tested into a sampling device, collecting the moisture content signal value of the sample to be tested at different device temperatures, and respectively recording each sampling time and each sample temperature of the sample to be tested at different device temperatures includes:
[0012] The initial moisture content of the sample to be tested is obtained.
[0013] In an embodiment of the present disclosure, the step of compensating the moisture content signal value at each sampling time to obtain the compensated moisture content signal value includes:
[0014] After sampling is completed, the final moisture content of the sample to be tested is obtained, and the loss moisture content during the entire sampling process is calculated based on the initial moisture content, and the loss moisture content is converted into the moisture content signal loss value at each sampling time.
[0015] In an embodiment of the present disclosure, the step of compensating the moisture content signal value at each sampling time to obtain the compensated moisture content signal value includes:
[0016] Based on the moisture content signal loss value of the sample to be tested during the entire sampling process, the moisture content signal value at each sampling time is compensated to obtain the compensated moisture content signal value.
[0017] In an embodiment of the present disclosure, the relationship group among the device temperature, the sample temperature, and the compensated moisture content signal value includes:
[0018] A first relationship between the sample temperature and the device temperature, and a second relationship between the compensated moisture content signal value and the device temperature.
[0019] In an embodiment of the present disclosure, the first relationship between the temperature of the sample to be measured and the temperature of the device is shown in formula (1):
[0020] T b =e1×T i- d1 (1)
[0021] Among them, T b represents the sample temperature, T i represents the device temperature, e1 represents the coefficient of the first relational expression, and d1 represents the constant of the first relational expression.
[0022] In the embodiment of the present disclosure, the second relationship between the compensated moisture content signal value and the device temperature is shown in formula (2):
[0023] ADCc=e2×T i +d2 Formula (2)
[0024] Wherein, ADCC represents the water content signal value after compensation, e2 represents the coefficient, and d2 represents the constant of the second relational expression.
[0025] In an embodiment of the present disclosure, based on the obtained relationship group, a temperature compensation neural network model is established and optimized, and the steps based on the optimized temperature compensation neural network model include:
[0026] Based on the first relationship between the sample temperature and the device temperature, and the second relationship between the compensated moisture content signal value and the sample temperature, a plurality of the device temperatures, a plurality of the sample temperatures, and a plurality of compensated moisture content signal values are constructed respectively.
[0027] In an embodiment of the present disclosure, the steps of establishing and optimizing a temperature compensation neural network model based on the obtained relationship group, and performing temperature compensation on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model include:
[0028] Based on the constructed several equipment temperatures, several sample temperatures and several compensated moisture content signal values, the temperature compensation neural network model is established and optimized.
[0029] In an embodiment of the present disclosure, the steps of establishing and optimizing a temperature compensation neural network model based on the obtained relationship group, and performing temperature compensation on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model include:
[0030] Based on the measured device temperature, sample temperature and compensated moisture content signal value, the moisture content of the sample to be tested after temperature compensation is output through the optimized temperature compensation neural network model.
[0031] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0032] In one embodiment of the present disclosure, through the above method, the moisture content signal value of the sample to be tested is collected at different device temperature values, and is compensated to obtain the compensated moisture content signal value, and data analysis and processing are performed on the compensated moisture content signal value, device temperature and sample temperature, a temperature compensation neural network model is established, and the temperature compensation neural network model is optimized. Based on the optimized temperature compensation neural network model, temperature compensation of the moisture content of the sample to be tested is achieved. The temperature compensation method has high temperature compensation accuracy and avoids errors introduced by human operation factors during the entire sampling process.
[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0035] Figure 1 A flowchart schematically showing the steps of a temperature compensation method for measuring water content in an exemplary embodiment of the present disclosure;
[0036] Figure 2 A schematic diagram schematically showing various devices used in Example 1 in an exemplary embodiment of the present disclosure;
[0037] Figure 3 A schematic diagram schematically illustrates the first relationship corresponding to the exemplary embodiment of the present disclosure when the sample to be tested is masonry;
[0038] Figure 4 A schematic diagram schematically illustrates the second relationship corresponding to a case where the sample to be tested is masonry in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0039] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0040] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0041] This example embodiment provides a temperature compensation method for water content measurement. Figure 1 As shown in , the method may include:
[0042] Step S101: collecting the moisture content signal value of the sample to be tested at different equipment temperatures, and recording each sampling time and each sample temperature of the sample to be tested at the different equipment temperatures.
[0043] Step S102: compensating the moisture content signal value at each sampling time to obtain a compensated moisture content signal value.
[0044] Step S103: performing data processing on the compensated moisture content signal value, the device temperature and the sample temperature to obtain a relationship group among the device temperature, the sample temperature and the compensated moisture content signal value.
[0045] Step S104: Based on the obtained relationship group, a temperature compensation neural network model is established and optimized, and temperature compensation is performed on the sample to be tested based on the optimized temperature compensation neural network model.
[0046] Through the above method, the moisture content signal value of the sample to be tested is collected at different equipment temperature values, and is compensated to obtain the compensated moisture content signal value, and the compensated moisture content signal value, equipment temperature and sample temperature are subjected to data analysis and processing, a temperature compensation neural network model is established, and the temperature compensation neural network model is optimized. Based on the optimized temperature compensation neural network model, temperature compensation of the moisture content of the sample to be tested is achieved. The temperature compensation method has high temperature compensation accuracy and avoids errors introduced by human operation factors in the entire sampling process.
[0047] Next, we will refer to Figures 1 to 4 Each step of the above method in this example implementation is described in more detail.
[0048] In step S101, the moisture content signal value of the sample to be tested is collected at different device temperatures, and each sampling time and each sample temperature of the sample to be tested at the different device temperatures are recorded respectively. Specifically, the moisture content measuring device can set several different device temperatures in sequence, for example, the device temperature of the sampling device can be set to 5°C, 10°C, 20°C or 25°C in sequence, and this embodiment does not impose any restrictions on this. By setting several different device temperatures in sequence in the moisture content measuring device, the weighing method can be avoided to calculate the moisture content of the sample to be tested, and the error introduced by the operation factor can be eliminated. The moisture content signal value of the sample to be tested is collected at several different device temperatures set in sequence by the sampling device, and the sampling times when the moisture content signal value of the sample to be tested is collected at different device temperatures are recorded at the same time, and the sample temperatures of the sample to be tested at different device temperatures are synchronously recorded. Among them, the sample temperature can be obtained by an infrared temperature measuring device. The device temperature and sample temperature of the moisture content measuring device are measured at the same time, which are used for moisture content temperature compensation of the sample to be tested. The sample to be tested can be masonry, wood, soil or organism, and this embodiment does not impose any restrictions on this.
[0049] In one embodiment, the sample to be tested may include multiple samples to be tested, wherein, when performing a temperature drift experiment on the sample to be tested, firstly, when selecting samples to be tested with different moisture contents, the samples to be tested with different moisture contents are selected evenly within the moisture content range of dry (lowest moisture content) and saturated wet samples to be tested (highest moisture content), and moisture content temperature drift experiments are performed within different equipment temperature ranges, and the equipment temperature is evenly selected.
[0050] In step S102, the moisture content signal value at each sampling time is compensated to obtain the compensated moisture content signal value. Specifically, when the moisture content signal value is collected by the sampling device at different device temperatures, the collected moisture content signal value needs to be compensated. Specifically, by compensating the moisture content signal value at each sampling time, the compensated moisture content signal value can be obtained.
[0051] In step S103, the compensated moisture content signal value, the device temperature and the sample temperature are subjected to data processing to obtain a relationship group among the device temperature, the sample temperature and the compensated moisture content signal value. Specifically, the compensated moisture content signal value, the device temperature and the sample temperature are subjected to data processing and analysis to obtain a relationship group among the device temperature, the sample temperature and the compensated moisture content signal value. This relationship group facilitates the subsequent establishment of a temperature compensation neural network model.
[0052] In step S104, a temperature compensation neural network model is established and optimized based on the obtained relationship group, and temperature compensation is performed on the sample to be tested based on the optimized temperature compensation neural network model. Specifically, a temperature compensation neural network model for the sample to be tested is established by establishing a relationship group between the device temperature, the sample temperature, and the compensated moisture content signal value, and then the temperature compensation neural network model is optimized to obtain an optimized temperature compensation neural network model, which can achieve accurate temperature compensation for the moisture content of the sample to be tested.
[0053] Optionally, in some embodiments, the step of collecting the moisture content signal value of the sample to be tested at different device temperatures and respectively recording each sampling time and each sample temperature of the sample to be tested at different device temperatures includes:
[0054] Obtaining the initial moisture content of the sample to be tested. Specifically, before collecting the moisture content signal value of the sample to be tested, measure the initial moisture content m1 of the sample to be tested and record it so as to subsequently calculate the final moisture content m2 of the sample to be tested after the entire sampling process is completed.
[0055] Optionally, in some embodiments, the step of compensating the moisture content signal value at each sampling time to obtain the compensated moisture content signal value includes:
[0056] After sampling is completed, the terminal moisture content of the sample to be tested is obtained, and the loss moisture content in the entire sampling process is calculated based on the initial moisture content, and the loss moisture content is converted into the moisture content signal loss value at each sampling time. Specifically, after completing the sampling process of collecting the moisture content signal value of the sample to be tested at different equipment temperatures, the terminal moisture content of the sample to be tested is obtained by weighing. Based on the initial moisture content, the loss moisture content Δm in the entire sampling process is calculated, and then the loss moisture content is converted into the moisture content signal loss value ΔADC. Among them, the formulas for the loss moisture content and the moisture content signal loss value are respectively as follows:
[0057] Δm=m1-m2 (3)
[0058] ΔADC=Δm / k (4)
[0059] Wherein, k in formula (4) represents the moisture content standard coefficient. Optionally, in some embodiments, the step of compensating the moisture content signal value at each sampling time to obtain the compensated moisture content signal value includes:
[0060] Based on the moisture content signal loss value of the sample to be tested during the entire sampling process, the moisture content signal value at each sampling time is compensated to obtain the compensated moisture content signal value. Specifically, the moisture content signal loss value of the sample to be tested during the entire sampling process is compensated to the corresponding moisture content signal value at each sampling time to obtain the supplemented moisture content signal value at each sampling time, thereby eliminating the error caused by the moisture content loss introduced during the moisture content temperature drift experiment. The formula for compensating the moisture content signal value is as follows:
[0061] ΔADCc i =ADC i +ΔADC×t i / t (5)
[0062] In formula (5), ADC i represents the moisture content signal value at the i-th sampling time,
[0063] ΔADC represents the total moisture content signal loss value of the sample to be tested during the entire sampling process, ΔADCc i represents the water content signal value after compensation at the i-th sampling time, t i represents the i-th sampling time, t represents the entire sampling time, and the entire sampling time t is the sum of each sampling time, that is, t = t1 + t2 + ... + t i , i is a positive integer.
[0064] Optionally, in some embodiments, the relationship group among the device temperature, the sample temperature, and the compensated moisture content signal value includes:
[0065] The first relationship between the sample temperature and the device temperature, and the second relationship between the compensated moisture content signal value and the device temperature. Specifically, by performing data analysis and processing on the device temperature, the sample temperature, and the compensated moisture content signal value, the first relationship between the sample temperature and the device temperature, and the second relationship between the compensated moisture content signal value and the device temperature are obtained, respectively. This facilitates the subsequent establishment of a temperature compensation neural network model.
[0066] Optionally, in some embodiments, the first relationship between the sample temperature and the device temperature is as shown in formula (1):
[0067] T b =e1×T i- d1 (1)
[0068] Among them, T b represents the sample temperature, T irepresents the device temperature, e1 represents the coefficient of the first relational expression, and d1 represents the constant of the first relational expression. Specifically, by processing and analyzing the data of each device temperature and the corresponding sample temperature, the first relational expression between the sample temperature and the device temperature is obtained. The closer the correlation coefficient e1 is to 1, the higher the correlation between the device temperature and the sample temperature.
[0069] Optionally, in some embodiments, the second relationship between the compensated moisture content signal value and the device temperature is as shown in formula (2):
[0070] ADCc=e2×T i +d2 Formula (2)
[0071] Among them, ADCC represents the compensated moisture content signal value, e2 represents the coefficient of the second relational expression, and d2 represents the constant of the second relational expression. Specifically, by performing data processing and analysis on the compensated moisture content signal value at each device temperature and the corresponding device temperature, the second relational expression between the compensated moisture content signal value and the device temperature is obtained. The closer the correlation coefficient e2 is to 1, the higher the correlation between the compensated moisture content signal value at each device temperature and the corresponding device temperature.
[0072] Optionally, in some embodiments, the step of establishing and optimizing a temperature compensation neural network model based on the obtained relationship group, and performing temperature compensation on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model includes:
[0073] Based on the first relationship between the sample temperature and the device temperature, the compensated moisture content signal value and the second relationship between the sample temperature, several device temperatures, several sample temperatures and several compensated moisture content signal values are constructed respectively. By using the first relationship between the sample temperature and the device temperature and the second relationship between the compensated moisture content signal value and the sample temperature, several device temperatures, several sample temperatures and several compensated moisture content signal values are constructed respectively, that is, data expansion processing is performed on the device temperature, sample temperature and, so as to obtain more groups of device temperatures, sample temperatures and compensated moisture content signal values, which is convenient for the subsequent construction of a temperature compensation neural network model.
[0074] Optionally, in some embodiments, the step of establishing and optimizing a temperature compensation neural network model based on the obtained relationship group, and performing temperature compensation on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model includes:
[0075] Based on the constructed device temperatures, the sample temperatures and the compensated moisture content signal values, the temperature compensation neural network model is established and optimized. Specifically, based on the constructed device temperatures, the sample temperatures and the compensated moisture content signal values, a temperature compensation neural network model for the moisture content of the sample to be tested is established.
[0076] Optionally, in some embodiments, the step of establishing and optimizing a temperature compensation neural network model based on the obtained relationship group, and performing temperature compensation on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model includes:
[0077] Based on the measured device temperature, sample temperature and compensated moisture content signal value, the optimized temperature compensation neural network model is used to output the moisture content of the sample to be tested after temperature compensation. Specifically, the device temperature, sample temperature and compensated moisture content signal value measured in actual use are used as inputs of the optimized temperature compensation neural network model, that is, the optimized temperature compensation neural network model outputs the moisture content of the sample to be tested after temperature compensation. The optimized temperature compensation neural network model has high accuracy and is used for accurate temperature compensation of the moisture content of the sample to be tested.
[0078] Through the above method, the moisture content signal value of the sample to be tested is collected at different equipment temperature values, and is compensated to obtain the compensated moisture content signal value, and the compensated moisture content signal value, equipment temperature and sample temperature are subjected to data analysis and processing, a temperature compensation neural network model is established, and the temperature compensation neural network model is optimized. Based on the optimized temperature compensation neural network model, temperature compensation of the moisture content of the sample to be tested is achieved. The temperature compensation method has high temperature compensation accuracy and avoids errors introduced by human operation factors in the entire sampling process.
[0079] The present invention is further described below through Example 1, wherein bricks and stones are taken as an example of the sample to be tested in Example 1.
[0080] Embodiment 1:
[0081] 1. Experimental steps and data recording methods
[0082] 1) Prepare the masonry samples to be tested: select masonry samples with moisture contents ranging from dry bricks to saturated wet bricks, and the moisture contents of the masonry samples are evenly distributed from low to high, with a quantity of no less than 4 pieces; for example, the moisture contents of the masonry samples to be tested are 0.7%, 4.2%, 8.5%, and 15.1%, respectively. The samples to be tested may include multiple samples to be tested, wherein when the temperature drift experiment is conducted on the samples to be tested, firstly, when the samples to be tested with different moisture contents are selected, the samples to be tested are selected evenly within the range of dry (lowest moisture content) and saturated wet (highest moisture content) samples to be tested.
[0083] 2) Prepare a device that can measure the temperature of the device. Figure 2 For the moisture content measuring device, record the moisture content calibration formula coefficients k and p values of the moisture content measuring device. The moisture content value calculation formula of the moisture content measuring device is y=k×ADC+p, where y is the moisture content value, and ADC0 is the original value of the moisture content signal measured by the moisture content measuring device.
[0084] 3) Prepare Figure 2 The infrared temperature measuring equipment in the experiment was used to record the temperature of the masonry during the experiment.
[0085] 4) Prepare Figure 2 After placing the masonry sample, moisture content measuring equipment and masonry temperature measuring equipment in the temperature and humidity calibration box, different experimental equipment temperatures can be set; during the experiment, the temperature ranges from 5°C to 40°C, and a total of 5 points are selected. This experiment process selects 5°C, 10°C, 20°C, 25°C and 40°C. The moisture content temperature drift experiment is carried out within different equipment temperature ranges, and the equipment temperature is evenly selected.
[0086] 5) Select a sample brick to be tested, record the initial moisture content as m1, put it into the temperature and humidity calibration box, and place the moisture content measuring equipment and brick temperature measuring equipment.
[0087] 6) Set the temperature of the temperature and humidity calibration box to the first temperature point, start the experiment, and record the start time t s After the device temperature measured by the moisture content measuring device and the masonry temperature measured by the infrared temperature measuring device are both stable, read and record the moisture content signal ADC value measured by the moisture content measuring device and the internal temperature value of the device (i.e., the device temperature) T i , read and record the masonry temperature value T measured by the infrared temperature measuring device b , record the current sampling time.
[0088] 7) Set the temperature of the temperature and humidity calibration box to the next temperature point, return to step 6) and continue until the experiment at all temperature points is completed.
[0089] 8) Calculate the total experimental time as t, and the moisture content experimental time t at each temperature points The durations are t1, t2, t3, t4, and t5 respectively.
[0090] 9) The ADC values of the moisture content signal sampled at each temperature point are ADC1, ADC2, ADC3, ADC4, and ADC5 respectively.
[0091] 10) Weigh the masonry samples to be tested, and calculate the moisture content of the masonry samples to be tested at the end of the experiment as m2. The moisture content lost during the experiment is: △m=m1-m2, which is converted into the moisture content signal loss △ADC during the experiment as: △ADC=△m / k.
[0092] 11) The moisture content signal ADC lost during the experiment is compensated back to the sampling time, and the signal ADC after moisture content loss compensation at each sampling point is c The values are: ADC c1 =ADC1+△ADC×t1 / t,ADC c2 =ADC2+△ADC×t2 / t,ADC c3 =ADC3+△ADC×t3 / t,
[0093] ADC c4 =ADC4+△ADC×t4 / t,ADC c5 =ADC5+△ADC×t5 / t.
[0094] 12) Organize the data of a piece of masonry sample during the test: the moisture content of the masonry sample to be tested is m, a set of equipment temperature values T i , a set of masonry temperature values T b , a set of signal raw value ADC after moisture loss compensation c .
[0095] 13) Select the next masonry sample and repeat the experiment from step 5) until the masonry experiments on all the samples to be tested are completed.
[0096] 2. Data analysis and processing
[0097] 1) Analyze the equipment temperature T in the masonry test data of each sample to be tested by Excel drawing i and the masonry temperature of the sample to be tested T b Experimental data relationships, such as Figure 3 As shown, the masonry temperature T of the tested sample with an initial moisture content of 15.17% b and device temperature T i The first relation is: T b =0.9995×T i -5.6705, correlation coefficient R 2=0.9998, e1=0.9995, d1=5.6705; construct 21 sets of temperature data with equipment temperature ranging from 0℃ to 40℃ and interval of 2℃ in each moisture content temperature experiment, and calculate the corresponding 21 sets of T according to the first relationship b value.
[0098] 2) Analyze the internal temperature T of each brick test data by Excel i The relationship between the compensated moisture content signal value ADCC experimental data is as follows: Figure 4 As shown, the initial moisture content of masonry is 15.17% T i The second relationship between ADCC is: ADCC = 37.732 × Ti + 8644.1, and the correlation coefficient is R 2 =0.999, e2=37.732, d2=8644.1; construct 21 groups of temperature data in which the equipment temperature ranges from 0°C to 40°C with an interval of 2°C in each group of moisture content temperature experiments, and calculate the corresponding 21 groups of ADCC values according to the second relationship.
[0099] 3. Temperature compensation neural network model
[0100] 1) The temperature T of each sample masonry after data expansion processing is calculated by the first and second equations above. b Data, equipment temperature T i data, compensated moisture content signal value ADCC data and the initial moisture content m1 data of the masonry sample to be tested, and the temperature T of each masonry sample to be tested after data expansion processing by mapminmax b Data, equipment temperature T i The data, the compensated moisture content signal value ADCc data and the initial moisture content m1 data of the masonry sample to be tested are normalized, and the normalized data are used as the input data for the temperature compensation neural network model training. The specific process is as follows:
[0101] [T b _in,T b _ps]=mapminmax(T b );
[0102] [T i _in,T i _ps]=mapminmax(T i );
[0103] [ADCc_in,ADCc_ps]=mapminmax(ADCc);
[0104] [m1_in,m1_ps]=mapminmax(m1);
[0105] input=[T b _in;T i _in;ADCc_in].
[0106] 2) Establish the moisture content temperature compensation neural network model moist_net in MATLAB and set the network model parameters. The specific process is as follows:
[0107] moist_net=newff(input,m1_in,10);
[0108] moist_net.trainParam.epochs=1000;
[0109] moist_net.trainParam.lr=0.1;
[0110] moist_net.trainParam.goal=0.00001.
[0111] 3) Conduct temperature compensation neural network model training. The specific process is as follows:
[0112] moist_net=train(moist_net,input,m1_in).
[0113] 4) Test the temperature compensation neural network model, and perform anti-normalization on the output result of the temperature compensation neural network model, and finally output the compensated moisture content Mbp of the temperature compensation neural network model. The specific process is as follows:
[0114] an=sim(moist_net,input);
[0115] Mbp=mapminmax('reverse',an,m1_ps)'.
[0116] Table 1 shows a set of equipment temperature of masonry samples to be tested, masonry temperature of masonry samples to be tested, collected moisture content signal values, and moisture content signal values after compensation.
[0117] Table 1 Equipment temperature of the masonry sample to be tested, masonry temperature of the masonry sample to be tested, collected moisture content signal value, and compensated moisture content signal value
[0118]
[0119] Table 2 is a relationship table showing the change in masonry temperature of the sample to be tested, the moisture content signal value after compensation, the moisture content measured by the equipment, the initial moisture content of the masonry sample to be tested and the moisture content compensated by the temperature compensation neural network model when the equipment temperature changes from 0-40°C.
[0120] Table 2 Relationship between equipment temperature, masonry temperature of the sample to be tested, moisture content signal value after compensation, moisture content measured by the equipment, initial moisture content of the masonry sample to be tested and moisture content compensated by the temperature compensation neural network model
[0121]
[0122]
[0123] It can be seen from Table 2 that the temperature change of the masonry sample to be tested at 0-40℃ causes the equipment to measure the moisture content indication error of about 4%. After using the moisture content temperature compensation neural network model, the moisture content measurement indication error caused by the temperature change of the masonry sample to be tested at 0-40℃ is reduced to about 0.2%, which greatly improves the temperature compensation accuracy.
[0124] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A temperature compensation method for moisture content measurement, characterized in that: The method includes: Obtaining the initial moisture content of the sample to be tested; Collecting moisture content signal values of the sample to be tested at different device temperatures, and recording each sampling time and each sample temperature of the sample to be tested at the different device temperatures; The moisture content signal value at each sampling time is compensated to obtain the compensated moisture content signal value; wherein the step of compensating the moisture content signal value at each sampling time to obtain the compensated moisture content signal value comprises: After the sampling is completed, the final moisture content of the sample to be tested is obtained, and the loss moisture content during the entire sampling process is calculated based on the initial moisture content, and the loss moisture content is converted into the moisture content signal loss value at each sampling time; Based on the moisture content signal loss value of the sample to be tested during the entire sampling process, the moisture content signal value at each sampling time is compensated to obtain the compensated moisture content signal value. The formula of the compensated moisture content signal value is as follows: ΔADCc i =ADC i +ΔADC×t i / t(5) In formula (5), ADC i represents the moisture content signal value at the i-th sampling time, ΔADC represents the total moisture content signal loss value of the sample to be tested during the entire sampling process, and ΔADCc i represents the water content signal value after compensation at the i-th sampling time, t i represents the i-th sampling time, t represents the entire sampling time, and the entire sampling time t is the sum of each sampling time, that is, t=t1+t2+…+t i , i is a positive integer; and performing data processing on the compensated moisture content signal value, the device temperature and the sample temperature to obtain a relationship group among the device temperature, the sample temperature and the compensated moisture content signal value; wherein the relationship group includes a first relationship between the sample temperature and the device temperature, and a second relationship between the compensated moisture content signal value and the device temperature; Based on the obtained relationship group, a temperature compensation neural network model is established and optimized, and temperature compensation is performed on the sample to be tested based on the optimized temperature compensation neural network model; wherein, based on the obtained relationship group, a temperature compensation neural network model is established and optimized, and temperature compensation is performed on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model, the steps include: Based on the first relationship between the sample temperature and the device temperature, and the second relationship between the compensated moisture content signal value and the sample temperature, a plurality of the device temperatures, a plurality of the sample temperatures, and a plurality of the compensated moisture content signal values are respectively constructed; Based on the measured device temperature, sample temperature and compensated moisture content signal value, the moisture content of the sample to be tested after temperature compensation is output through the optimized temperature compensation neural network model.
2. The temperature compensation method for moisture content measurement according to claim 1, characterized in that: The first relationship between the sample temperature and the device temperature is shown in formula (1): T b =e1×T i +d1(1) Among them, T b represents the sample temperature, T i represents the device temperature, e1 represents the coefficient of the first relational expression, and d1 represents the constant of the first relational expression.
3. The temperature compensation method for moisture content measurement according to claim 2, characterized in that: The second relationship between the compensated moisture content signal value and the device temperature is shown in formula (2): ADCc=e2×T i +d2(2) Wherein, ADCC represents the water content signal value after compensation, e2 represents the coefficient of the second relational expression, and d2 represents the constant of the second relational expression.
4. The temperature compensation method for moisture content measurement according to claim 3, characterized in that: The steps of establishing and optimizing a temperature compensation neural network model based on the obtained relationship group, and performing temperature compensation on the moisture content of the sample to be tested based on the optimized temperature compensation neural network model include: Based on the constructed several equipment temperatures, several sample temperatures and several compensated moisture content signal values, the temperature compensation neural network model is established and optimized.
