Next Article in Journal
Estimation of Physiologic Pressures: Invasive and Non-Invasive Techniques, AI Models, and Future Perspectives
Previous Article in Journal
Smart Chemical Sensor and Biosensor Networks for Healthcare 4.0
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Experiment of Capacitive Rice Online Moisture Detection Device

1
Department of Engineering, Heilongjiang Bayi Agricultural University, Daqing 163319, China
2
Heilongjiang Provincial Key Laboratory of Intelligent Agricultural Machinery Equipment, Daqing 163319, China
*
Author to whom correspondence should be addressed.
Sensors 2023, 23(12), 5753; https://doi.org/10.3390/s23125753
Submission received: 12 April 2023 / Revised: 7 May 2023 / Accepted: 9 May 2023 / Published: 20 June 2023
(This article belongs to the Section Smart Agriculture)

Abstract

:
To solve the problems of poor stability and low monitoring precision in the online detection of rice moisture in the drying tower, we designed an online detection device for rice moisture at the outlet of the drying tower. The structure of a tri-plate capacitor was adopted, and the electrostatic field of the tri-plate capacitor was simulated using COMSOL software. A central composite design of three factors and five levels was carried out with the thickness, spacing, and area of the plates as the influencing factors and the capacitance-specific sensitivity as the test index. This device was composed of a dynamic acquisition device and a detection system. The dynamic sampling device was found to achieve dynamic continuous sampling and static intermittent measurements of rice using a ten-shaped leaf plate structure. The hardware circuit of the inspection system with STM32F407ZGT6 as the main control chip was designed to realize stable communication between the master and slave computers. Additionally, an optimized BP neural network prediction model based on the genetic algorithm was established using the MATLAB software. Indoor static and dynamic verification tests were also carried out. The results showed that the optimal plate structure parameter combination includes a plate thickness of 1 mm, plate spacing of 100 mm, and relative area of 18,000.069 mm2 while satisfying the mechanical design and practical application needs of the device. The structure of the BP neural network was 2-90-1, the length of individual code in the genetic algorithm was 361, and the prediction model was trained 765 times to obtain a minimum MSE value of 1.9683 × 10−5, which was lower than that of the unoptimized BP neural network with an MSE of 7.1215 × 10−4. The mean relative error of the device was 1.44% under the static test and 2.103% under the dynamic test, which met the accuracy requirements for the design of the device.

1. Introduction

Rice is one of the most important food crops in the world. In China, rice growing areas are mainly distributed in the northern producing areas represented by Heilongjiang Province and the southern producing areas represented by Jiangsu and Anhui Province [1,2,3,4]. Grain drying is an important step to ensure safe food storage. After harvest, rice generally has a moisture content (MC) of 17~25% and needs to be dried using specialized equipment to reach a safe value (standard storage moisture of 14.5%) before storage [5,6]. Bound water and free water are the two physical states of water in rice [7,8]. Generally speaking, free water refers to water that can flow freely in rice and acts as a solvent. Bound water is an important part of the cell structure in rice. In the drying process, if the rice moisture at the outlet of the drying tower cannot be accurately and stably detected, the rice becomes over-dried, and evaporation of bound water in the rice will affect the edible quality of the rice. A lack of drying leaves excess free water in the rice, which will lead to mildew, insects, and other phenomena in the storage of rice [9,10]. These phenomena, in turn, lead to a waste of food and drying energy. Therefore, it is of great importance to design a detection device to improve the online detection accuracy and stability of rice moisture content at the outlet of the drying tower.
At present, grain moisture detection methods are divided into offline detection and online detection methods [11]. Offline detection [12] involves removing the water in grain after the test sample is taken from production and processing and calculating the moisture content of the grain through drying or chemical methods, such as the 105 constant weight method [13] and Karl Fischer method [14]. This type of detection is generally used as the comparison standard for detection accuracy but is not practical in the actual production process. Online detection directly uses equipment in the process of grain production, harvesting, and processing for real-time grain moisture detection. This type of detection is convenient, time-saving, and can meet the needs of actual production. The most widely used online detection methods are the capacitance method and resistance method. The resistance method generally requires the sample to be ground before detection and is a type of lossy detection [15,16,17].
The capacitance method has simple structure, high reliability, good dynamic response, and is economical and simple; this method can easily realize the rapid detection of material moisture [18,19]. Wang et al. [20] designed an online detection system for rice moisture content in a combine harvester by using the capacitance method. The accuracy and stability of rice sample detection were improved by building a sampling platform with the function of secondary screening and impurity removal. Wan et al. [21] took parallel plate capacitors as their research subject, adopted the finned double plate detection method to optimize the rice moisture content detection device, and verified that the detection performance of the device met the actual requirements of rice drying production. Using an impedance analyzer and self-made coaxial cylindrical capacitor, Zhang et al. [22] measured the relative dielectric constant and dielectric loss factor of rice with different water contents at a frequency of 1 kHz~1 MHz. Chen et al. [23] developed a high frequency capacitive online monitoring device for grain moisture content. This device can monitor grain moisture content online and display and store it in real time. Zhang et al. [24] designed a concentric circle plane capacitance moisture measuring instrument for corn grain combines based on dielectric properties. This instrument was found to satisfy the accuracy of grain moisture measurement and shorten the measurement time. Li et al. [25] designed an online grain moisture detection device based on the principle of capacitance detection. For wheat samples with moisture content of 10~25%, the average relative error between the measured value and actual moisture content was less than 1%. The rice test value of the DM510 grain dryer produced by DANTEC in Canada was less than 0.5% [26].
The capacitance method is easily affected by environmental factors and edge effects when detecting rice moisture. Thus, the detection accuracy and stability of this method cannot meet the actual working requirements of the drying tower. In addition, the bipolar plate parallel capacitor structure is used most commonly, while the tripolar plate capacitor structure is rarely used for research on rice moisture detection. For this reason, the present study adopted the triple plate parallel plate detection mode and designed plate structure parameters through simulation and experimentation. The online rice moisture content detection device was composed of a dynamic rice collection device and detection system. A prediction model for a BP neural network optimized using the genetic algorithm was established to correct the master computer moisture value. Through the structural design of a capacitive sensor, the design of an online detection device, and the establishment of a prediction model, a capacitive online rice moisture detection device was designed, which provides a reference for the innovative study and development of rice moisture online detection technology and devices.

2. Materials

The device was composed of a dynamic rice collection device and real-time detection system. The detection system included hardware design and software design. In order to realize the online detection mode of dynamic continuous sampling and static intermittent measurements, it was necessary to design a dynamic collection device to realize the running process of periodic sampling, detection, and abandonment of rice samples flowing out of the grain outlet, as well as a real-time detection system to realize rice moisture and temperature signal acquisition, processing, the output of detection results, and storage.

2.1. Design of Dynamic Rice Collection Device

The dynamic collection device was composed of a servo, power switch, coupling, smooth shaft, flat key, bearing seat, ten-shaped leaf plate, acrylic plate, angle iron, vibration device, circuit board package shell, grain storage bench, and other parts, as shown in Figure 1. In order to smoothly connect the device and drying tower test bench grain discharge mouth, the length, width, height, and thickness of the sampling box were designed to be 209, 182, 500, and 3.6 mm, respectively, with an acrylic plate used for splicing. The angle iron was fastened with bolts, and the size of the rice sampling cavity was 200 × 180 × 110 mm. In order to achieve the necessary size of the device and realize the meshing requirements of the electrode plate, a ten-shaped leaf plate structure was designed, which was achieved via 3D printing and made of high-toughness resin.
Through the ten-shaped leaf plate structure, the dynamic collection device’s sampling and grain discharge functions were realized. During the drying operation of the drying tower, the rice flowed from the grain discharge mouth of the drying tower into the sampling cavity of the dynamic collection device after cleaning. During the sampling stage, the three electrode plates were kept parallel, and the servo did not function. After the rice filled the sampling cavity, capacitive and temperature sensors collected the rice sample signals. After the signals were collected, the timer’s first period was completed, the servo drove the coupling to make the ten-shaped leaf plate start to flip 180°, the device drained the grain, and the rice flowed from the sampling cavity down the slope into the grain storage bench via gravity. At the end of grain discharge, the timer’s second period was completed, the servo stopped working, the ten-shaped leaf plate completed its 180° rotation, and the other surface of the leaf plate received rice from the grain discharge mouth for the next signal acquisition. The above actions were then completed to ensure that the device periodically sampled, measured, and discarded the samples and completed rice sample measurement to update the set of monitoring data. Table 1 shows the main component information.

2.2. Hardware Design

The Altium Designer software was used to design the rice moisture content detection circuit, with STM32F407ZGT6 as the core processing chip. The operation amplification circuit, temperature sensor, power supply regulation and conversion circuit, and communication module were selected as the main modules of the circuit. The design of the hardware system is shown in Figure 2.

2.2.1. Detection Unit

  • Capacitance detection;
In this system, capacitor detection used a parallel capacitor structure with three plates. The plate material was copper foil, which offers excellent conductivity, good surface smoothness, good ductility, and a low price. According to the results in the optimization experiment for the structural parameters of the tri-plate capacitor, the length, width, and thickness of the side plates were set as 180, 100, and 1 mm, respectively, the spacing of the plates was chosen to be 100 mm, and the outside of the copper foil was brushed with insulating paint, which had both anti-wear and electrostatic shielding properties.
Since the change in rice moisture content between plates had little effect on the capacitance, it corresponded to the detection of small capacitance signals [27,28]. In this study, the operational amplification circuit was selected as the detection circuit of the capacitive sensor and consisted of a Miller integral circuit composed of 1B and a Schmitt circuit composed of 2B. The two amplifier models were LM741 and LM709, and the circuit voltage was ±12 V. The operational amplifier circuit diagram is shown in Figure 3a.
  • Temperature detection;
The DS18B20 digital temperature sensor was used in this system for temperature sensing. The sensor communicated through a single bus serial port, with a temperature operating range of −55 to +125 °C. In the range of −10 to +85 °C, the detection accuracy could reach ±0.5 °C, which met the testing requirements. The schematic diagram of temperature measurement circuit is shown in Figure 3b.

2.2.2. Power Supply Unit

The system was powered by switching the power supply of 24 V DC through the WRB2412MD chip to process 24 into 12 V DC to supply power to the capacitive sensor. This power then ran through the LM7805 buck chip to convert 12 into 5 V DC in order to power the microcontroller module and then again through the LM1117-3.3 integrated voltage regulator chip through DC–DC conversion to power the 3.3 V communication unit. The circuit diagram of power supply unit is shown in Figure 3c.

2.2.3. Communication Unit

The communication function between the slave and the master computers was realized via RS485 serial communication. The power supply voltage of the communication unit was 3 V, and the optocoupler was added to isolate the input and output signals from each other. There were three independent interrupt sources for receiving completion interrupts, sending completion interrupts, and registering null interrupts. The 6LB184 was used as a communication unit transceiver with integrated transient voltage rejection and a data transfer rate of 250 kbps. The circuit diagram of communication unit is shown in Figure 3d.

2.3. Software Design

The master computer was based on the Visual Basic development platform for program development programming. The interface had a serial port module, configuration module, device address module, moisture calibration module, temperature calibration module to set the master computer, and real-time display of the rice moisture and temperature information; the right line chart could draw moisture, temperature, and capacitance value curves. The interface diagram of the master computer is shown in Figure 4.
Using the Keil uVision 5 development environment, the C language was used to write the software for the slave computer to realize the initialization settings of various modules, registers, serial ports, and sensor data acquisition and preprocessing in the system. The system flowchart is shown in Figure 5.

3. Methods

3.1. Detection Principle

At room temperature, the relative medium of water is about 80, and the relative medium of dry rice is about 2.5. When rice passed through the capacitor, the difference of moisture content led to a change in the relative dielectric constant between the capacitor plates, leading to a change in capacitance values [29,30,31].
Ignoring the edge effect, the capacitance C of the flat plate capacitor is expressed as follows [32]:
C = ε A l = ε r ε 0 A l
where A’ is the covered area of the capacitor’s bipolar plates; Ɛ is the dielectric constant of the medium; Ɛr is the relative permittivity of the medium; Ɛ0 is the permittivity of the vacuum; and l is the distance between plates.
The medium between the three-plate flat capacitor (assuming that the three plates have the same size) is simplified to rice dry matter (solid), water (liquid), and air (gas). The equivalent model is shown in Figure 6.
Assume that the stacking shape of the three mediums is cuboid with the same height and length l, and the spacing d between the upper plates is the same as that between the lower plates. Due to symmetry, the derivation of the relationship between the MC and capacitance between the upper plates is the same as that below. To simplify the derivation process, we derived the correlation formula only between the upper plates.
According to the capacitor parallel connection formula, since the voltage values between the plates were the same, the capacitance value Cup between the upper plates is the sum of the capacitance values of the three media:
C u p = ε 0 W d A 1 W ε 1 + A 2 W ε 2 + A 3 W ε 3
where Ɛ1 is the accumulation of relative permittivity of the rice dry matter (solid state); Ɛ2 is the relative dielectric constant of water (liquid); Ɛ3 is the relative dielectric constant of air (gas); A1, A2, and A3 are the effective area of rice dry matter (solid), water (liquid), and air (gas) accumulation between the upper plates, respectively; d is the distance between the upper plates; W is the sum of the effective widths of the three accumulated media between the upper plates.
In the capacitive sensor, A and d are constants as follows:
K 0 = ε 0 A d
We define the void ratio of rice between the upper two plates e1 as
e 1 = A 3 / A
According to the definition of rice moisture content, ignoring the air quality, the MC Mup between the upper two plates can be deduced as
M u p = ρ 2 V 2 ρ 1 V 1 + ρ 2 V 2 × 100 % = ρ 2 W 2 ρ 1 W 1 + ρ 2 W 2
where ρ1 is dry matter density of rice; ρ2 is water density; V1 is the volume of rice dry matter accumulation between the upper plates; V2 is the volume of water accumulation body between the upper plates; W1 is the effective width of rice dry matter accumulation between the upper plates; and W2 is the effective width of the water accumulation body between the upper plates.
The Mup can be calculated by Equations (2)–(5):
M u p = 1 C u p ε 2 · K 0 ε 3 ε 2 e 1 · K 0 · ρ 1 K 0 ε 1 ε 2 1 e 1 C u p ε 2 · K 0 ε 3 ε 2 e 1 · K 0 + 1
M = M u p + M d o w n 2
where M is the moisture content of rice in the capacitor, and Mdown is the moisture content of rice between the lower plates.

3.2. Electrostatic Field Simulation of the Tri-Plate Capacitor

If the parallel plates are approximately infinite, the electric field formed between the plates is a well-proportioned electric field, and the internal electric field is uniformly distributed [33,34]. However, the size of the parallel plates was actually limited, so the electric field was not an ideal uniform electric field. At the fringe of the capacitor plate, the field lines of the electric field were curved and emanative, resulting in edge capacitance of the parallel plate, making the actual capacitance of the capacitor greater than the theoretical capacitance [35,36,37]. It was found that the thickness [38,39,40], spacing, and relative area of parallel plate capacitors were the main factors affecting the edge effect. In this section, the COMSOL Multiphysics 5.6 software was used to simulate the three-dimensional electric field of the parallel-plate condenser, and the control variable method was used to conduct a single factor analysis of the plate thickness, plate spacing, and relative area to explore their relationship. The model modeling and meshing effects are shown in Figure 7.

3.2.1. Electrostatic Field Analysis of Capacitor Plate Thickness

Here, the electrode plate spacing d remained 100 mm, the electrode plate length was 150 mm, and the relative area A was 15,000 mm2. Simulation research was carried out for thickness h values of 0.5, 1.0, 1.5, 2.0, 2.5, and 3 mm. The distribution of electric field lines generated by different plate thicknesses is shown in Figure 8.
In Figure 8, the white arrow represents the direction of electric field flow, and the red line represents the electric field line. With an increase in plate thickness, the electric field line at the plate fringe increasingly expanded and diverged, and the distribution density of the electric field line became larger. This result shows that with a plate thickness of 0.5~3 mm, the influence degree of the edge effect strengthens with an increase in plate thickness.

3.2.2. Electrostatic Field Analysis of Capacitance Plate Spacing

The electrode plate thickness h was maintained at 0.5 mm, the electrode plate length was 150 mm, and the relative area A was 15,000 mm2. Simulation research was carried out with distance d between the plates set to 80, 85, 90, 95, 100, and 105 mm. The distribution of electric field lines generated by different plate spacing is shown in Figure 9.
As shown in Figure 9, in the range of 80–105 mm between the plate spacing, the scattering distribution density of electric field lines at the edge of the capacitor increased with an increase in plate spacing, indicating that the influence degree of the edge effect increased with an increase in plate spacing.

3.2.3. Electrostatic Field Analysis of the Relative Area of Capacitor Plates

Maintaining the plate thickness h at 0.5 mm, the plate spacing d at 100 mm, and the plate width at 100 mm, we adjusted the relative area size by changing the plate length and taking the relative area A as 15,000, 18,000, 21,000, 24,000, 27,000, and 30,000 mm2 for the simulation. The different relative plate areas for the distribution of the electric field line are shown in Figure 10.
As shown in Figure 10, when the length of the plate increased, the electric field line at the fringe of the plate shrank to the middle plate, and the density of the electric field line became increasingly lower, indicating that the influence degree of the edge effect in the range of 15,000~30,000 mm2 of the plate area weakened with an increase in the relative area.
Combined with the simulation analysis results and actual device conditions, the parameter range of the plate can be determined as follows: plate thickness of 0.5~2.5 mm, plate spacing of 80~100 mm, and relative area of 18,000~30,000 mm2.

3.3. Optimizing the BP Neural Network Prediction Model with the Genetic Algorithm

3.3.1. Data Preparation

Japonica rice in the Daqing region was prepared as the test sample after screening and filtering to restore the real conditions for rice moisture measurements in the drying tower. Considering the temperature conditions during the rice harvest season and the actual range of rice moisture content at the outlet after drying in the drying tower, the moisture range of the rice samples was determined to be 10~26%, and the temperature range was 16~25 °C. Rice samples with moisture content from 10 to 26% were prepared via the drying method at 105 °C, with each group corresponding to 1%, for a total of 16 groups, and 2 kg of rice samples prepared in each group. The debugged detection device was then placed in a constant temperature and humidity box from 16 to 25 °C, with 1 °C increments as a temperature gradient. The prepared rice sample was poured into the sampling chamber, and the capacitance difference between the plates before and after placement of the rice sample was measured using a capacitance measuring instrument. Each group test was repeated 5 times, producing 800 sets of data in total.

3.3.2. Model Building

Based on genetic algorithm (GA) and BP neural network theory [41,42,43,44,45,46], the programming design of the BP neural network was optimized via the GA using the MATLAB language in the MATLAB software. The structure of the BP neural network was 2-90-1, with 270 weights and 91 thresholds. The individual coding length of the genetic algorithm was set to 361.
In total, 800 sets of data prepared from the rice samples were used as input and output data for the GA–BP neural network, and 560 sets were randomly selected as training data, 120 as validation data, and 120 as test data. The schematic diagram of the BP neural network structure is shown in Figure 11.

3.3.3. Evaluation Index

In order to measure the prediction effect of the prediction model on the moisture content of rice, the regression model goodness-of-fit index R and mean squared error (MSE) were used as evaluation indicators.
Goodness-of-fit index R calculation formula:
R = 1 i = 1 n z i P i 2 i = 1 n z i 2
where Pi is the fitted value; zi is the response value; and n is the sample size.
MSE calculation formula:
M S E = 1 n i = 1 n x i y i 2
where xi is the predicted value, and yi is the actual value.
The closer the index R is to 1, the smaller the MSE value becomes, indicating that the prediction model has a better effect on the prediction of rice moisture content.

4. Results and Discussion

4.1. Optimization Experiment on the Structural Parameters of the Tri-Plate Capacitor

Japonica rice in the Daqing area was selected as the test sample, and the MC of the rice samples was prepared using the 105 °C constant weight method [47,48]. We placed quantitative samples into an aluminum box after drying to a constant weight and weighed them. The weight was recorded as m1. Then, we put the samples into a 105 °C blast drying oven at a constant temperature to re-bake them to constant weight; the result was recorded as m2. The formula for calculating rice moisture content M is as follows:
M = m 1 m 2 m 1 × 100 %
where m1 is the rice quality before drying, and m2 is the rice quality after drying.
The test factor code table is shown in Table 2.
The test took the plate thickness h/mm, plate spacing d/mm, and relative area A/mm2 as the factors and the ratio of the measured capacitance value C1 of the capacitor to the theoretical calculated capacitance value C2 (sensitivity Y) of the capacitance meter as the test index to carry out the three-factor five-level central composite design. The test scheme and results are shown in Table 3.
The experimental data were processed using the Design-Expert 12 software to obtain a variety of fitting model comparisons, as shown in Table 4.
The ANOVA for the quadratic model is shown in Table 5.
It can be seen from Table 4 that the cubic equation is complex and unnecessary. By comparing the size of the R2 correction values and R2 prediction values of the linear model, two-factor model, and quadratic model, we found that the larger the R2 value, the better the model fit. Here, the quadratic equation provided the most reasonable results.
As shown in Table 5, the p-value of the model was found to be less than 0.01. Additionally, the lack of fit was not significant, indicating that the regression model was extremely significant, and the equation fitting effect was good. Plate thickness X1; plate spacing X2; relative area X3; and interactions X1 X2, X1 X3, X2 X3, and X32 showed significant influences, but the other factors were not significant. Excluding the insignificant factors, the fitted equation is as follows:
Y = 10.89520 + 0.425956 X 1 0.087810 X 2 0.000521 X 3 + 0.009546 X 1 X 2 5.1 × 10 5 X 1 X 3 + 3.24056 × 10 6 X 2 X 3 + 6.24468 × 10 9 X 3 2 .
The response surfaces of the interactions of plate thickness X1, plate spacing X2, and relative area X3 with sensitivity Y are shown in Figure 12. Here, the response surface shapes of the interactions X2 X3 and X1 X3 to Y are concave, and the color difference is large, indicating that X2 X3 and X1 X3 had a significant effect on Y. The response surface of interaction X1 X2 to Y is relatively flat compared to those of X2 X3 and X1 X3, but the overall influence on Y is significant.
The larger the plate spacing, the larger the sampling cavity of the device, and the more rice samples were measured each time. Under these conditions, the detection time was also relatively reduced. Moreover, the smaller the relative area, the lower the manufacturing cost, the smaller the area of the rice friction plate, and the longer the plate could be used. The middle plate needed to have a certain bearing capacity on the mechanical structure of the detection device, and the thickness of the plate needed to be greater than or equal to 1 mm. The plate size with sensitivity Y closest to 1 was the optimal combination of parameters. Based on the above boundary conditions, the model was established as
Y 1 M i n X 3 M a x X 2 1 X 1 2.5 .
After software processing, the optimal plate parameter combination was determined to be plate spacing 100 mm, plate thickness 1 mm, and relative area 18,000.069 mm2, with a capacitance ratio of 1.056 under this parameter combination. This combination was the least affected by the edge effect.

4.2. Analysis of the Prediction Results

The parameters of the BP neural network and genetic algorithm are shown in Table 6 and Table 7.
The training results are shown in Figure 13.
As shown in Figure 13, the MSE of the training, validation, and testing continued to decrease with an increase in training iterations. After a total of 771 training iterations, the lowest MSE of 1.9683 × 10−5 was obtained after 765 iterations, which was lower than that of the unoptimized BP neural network MSE value of 7.1215 × 10−4, indicating that the prediction accuracy of the BP neural network optimized by the genetic algorithm was higher. To make the test set samples representative, samples were taken every 1% from an MC range of 10~26%, as shown in Figure 13c, which indicates that the predicted values of GA–BP were basically attached to the curve of the actual value. The regression R value of the training set was 0.99998, the regression R value of the validation set was 0.99997, the regression R value of the test set was 0.99997, and the regression R value of all sets was 0.99998, indicating that the model fitting effect was good and can provide a reference for moisture correction in the master computer.

4.3. Indoor Accuracy of the Device

The experiment was carried out in the intelligent agricultural machinery equipment laboratory of Heilongjiang Bayi Agricultural University, and japonica rice in the Daqing region was selected as the test sample. The rice samples required for the test were screened and filtered. The conditions of the indoor static test are shown in Figure 14. In order to verify the accuracy error of the device, 19 sets of rice samples were configured using the 105 °C drying method with moisture content of 9.46, 10.16, 11.27, 12.35, 13.46, 14.72, 15.22, 16.79, 17.23, 18.75, 19.56, 20.24, 21.82, 22.43, 23.75, 24.56, 25.12, 26.33, and 27.46%. The designed device and a resistive moisture meter (PT-8188 type) were used for testing, and the measurements were repeated three times for each group to take the average.
As shown in Figure 15, the maximum relative error of the absolute value of the resistive moisture meter was −0.64%, the smallest relative error of the absolute value was 0.40%, and the mean relative error (MRE) was 0.52%. The largest relative error of the absolute value of the device was 1.77%, the smallest relative error of the absolute value was −1.12%, and the MRE was 1.44%. The MRE difference between this device and the resistive moisture meter was less than 1%, which indicates that the device offered high detection accuracy under the static test conditions in the laboratory.

4.4. Indoor Dynamic Experiences of the Device

To verify the performance of the device in the indoor bench test, the test was carried out in the intelligent equipment laboratory of Heilongjiang Bayi Agricultural University. The dynamic test conditions are shown in Figure 16. The rice variety used in the experiment was Suijing 18, with the following natural attributes: 12 leaves on the main stem, long-grain type, plant height of about 104 cm, and panicle length of about 18.1 cm. The weight of 1000 grains was about 26.0 g. We installed this device to the grain discharge port of the drying tower bench.
The device in the bench test was operated normally to ensure the periodic updating of rice samples and that the master computer could stably display the moisture of the rice samples in the sampling chamber. As shown in Table 8, the MRE of the detection results of the device was 2.103%, less than 2.5%, which was able to meet the demands for the online detection accuracy of rice moisture in the indoor dynamic test.

4.5. Discussion

In this study, an online moisture detection device for rice based on the capacitance method was designed based on four aspects: the design of capacitor structure, the design of a dynamic acquisition device, the design of a real-time detection system, and the establishment of a rice moisture prediction model. The results provide a design reference for the innovative development of a moisture detection device for grain drying operations and moisture detection research in smart agriculture.
In this study, a triode plate with a plate capacitor structure was designed, and the detection principle of the capacitive sensor for rice moisture was analyzed by establishing a mathematical model. In order to reduce the influence of the edge effect on sensor detection accuracy, the COMSOL Multiphysics 5.6 software was used to simulate the electrostatic field of the tri-plate capacitor; single-factor analysis was carried out on the plate thickness, plate spacing, and plate relative area; and a reasonable parameter range was selected to carry out the central composite design of three factors and five levels. The structural parameters of the plate with the lowest influence of the edge effect were determined through the following optimization conditions: plate thickness 1 mm, plate spacing 100 mm, and relative area of 18,000.069 mm2.
A reasonable rice moisture content detection model is the key to an accurate detecting device. At present, the conventional method is to use the data obtained from the calibration test in data processing software for regression operations in order to establish the detection model. In this study, model training of the data was carried out using the BP neural network, and the genetic algorithm was used to find the optimal weight and threshold of the BP neural network. Based on the training results, the BP neural network prediction results optimized by the genetic algorithm were more accurate, and the model offered a high goodness-of-fit. However, because the parameters of the genetic algorithm and the BP neural network were constantly adjusted after training, this method has certain subjectivity. Consequently, the prediction accuracy of this model still has a large optimization space. Future research could focus on improving the genetic algorithm; e.g., through the particle swarm algorithm, gray neural network, or other algorithms, to obtain a more high-quality and accurate prediction model.
The device designed in this study was applied to the grain discharge port of the drying tower test bench. By designing a ten-shaped leaf plate structure, the sampling, grain discharge mechanism, and capacitor were combined to improve the operating performance of the device. Through the indoor static test and dynamic test, we verified that the online detection accuracy of the device was high, and the equipment ran well. However, during the testing process, we found that the flow state of rice in the sampling chamber affected the detection accuracy. The influencing factors will be studied in detail in the next stage of this research to further improve the detection accuracy of the device.

5. Conclusions

Using the COMSOL Multiphysics 5.6 software, an electrostatic field simulation of a three-plate plate capacitor was carried out, and the parameter range of the plate was determined as follows: plate thickness of 0.5~2.5 mm, plate spacing of 80–100 mm, and relative area of 18,000~30,000 mm2. The structural parameters of the capacitive plates were tested, and the optimal structural parameters were found to be 1 mm thickness, 100 mm spacing, and a relative area of 18,000.069 mm2. The parameters of the plate were least affected by the edge effect and met the requirements of mechanical design. A dynamic acquisition device with a ten-shaped leaf plate as the key component and a detection circuit with the STM32F407ZGT6 chip as the core were designed. We designed the master computer using the Visual Basic development platform. Using the Keil uVision 5 development environment, development and programming of the slave computer were carried out with the C language, thereby realizing the stable acquisition, processing, visualization, and storage of signals. In this way, we established a prediction model for the genetic algorithm to optimize the BP neural network. The structure of the BP neural network was 2-90-1, the individual coding length of the genetic algorithm was 361, and the lowest value of MSE obtained after 765 iterations of prediction model training was 1.9683 × 10−5, which was lower than the MSE value of 7.1215 × 10−4 belonging to the unoptimized BP neural network. Additionally, the regression R values of the training set, validation set, test set, and all sets were good, thus providing a reference for moisture correction in the master computer. The measurement results of the designed capacitive online rice moisture detection device were verified, and the results showed that the MRE of the device was 1.44% under indoor static test conditions and 2.103% under indoor dynamic test conditions. The accuracy and stability of rice moisture detection at the outlet of the drying tower were improved by designing a three-plate capacitive rice moisture detection device online, which provided a rapid measurement method for realizing accurate rice drying.

Author Contributions

Conceptualization, W.S. and L.W.; methodology, W.S. and L.W.; software, W.S., H.W. and T.Q.; validation, L.W., G.C. and P.X.; formal analysis, W.S., L.W. and H.W.; writing—original draft preparation, W.S., L.W. and H.W.; writing—review and editing, W.S., L.W. and G.C.; visualization, W.S. and H.W.; supervision, P.X.; project administration, L.W. and G.C.; funding acquisition, W.S., L.W., G.C. and P.X. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Key Research and Development Program of China (No. 2021YFD2100901) and Applied Technology Research and development Program of Heilongjiang Province of China (No. GA15B402).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chen, C.; van Groenigen, K.J.; Yang, H.; Hungate, B.A.; Yang, B.; Tian, Y.; Chen, J.; Dong, W.; Huang, S.; Deng, A.; et al. Global warming and shifts in cropping systems together reduce China’s rice production. Glob. Food Secur. 2020, 24, 100359. [Google Scholar] [CrossRef]
  2. Cao, D.; Feng, J.Z.; Bai, L.Y.; Xun, L.; Zhang, J.H. Delineating the rice crop activities in Northeast China through regional parametric synthesis using satellite remote sensing time-series data from 2000 to 2015. J. Integr. Agric. 2021, 20, 424–437. [Google Scholar] [CrossRef]
  3. Niu, Y.; Xie, G.; Xiao, Y.; Liu, J.; Wang, Y.; Luo, Q.; Zou, H.; Gan, S.; Qin, K.; Huang, M. Spatiotemporal patterns and determinants of grain self-sufficiency in China. Foods 2021, 10, 747. [Google Scholar] [CrossRef]
  4. Li, S.; Lu, Z.; Zhao, J.; Luo, M.; Chen, F.; Chu, Q. Changes in planting methods will change the potential distribution of rice in South China under climate warming. Agric. For. Meteorol. 2023, 331, 109355. [Google Scholar] [CrossRef]
  5. Scariot, M.A.; Karlinski, L.; Dionello, R.G.; Radünz, A.L.; Radünz, L.L. Effect of drying air temperature and storage on industrial and chemical quality of rice grains. J. Stored Prod. Res. 2020, 89, 101717. [Google Scholar] [CrossRef]
  6. Trail, P.; Motis, T.; Swartz, S.; Bicksler, A. Low-cost seed storage technologies for development impact of small-scale seed saving entities in tropical climates. Exp. Agric. 2021, 57, 324–337. [Google Scholar] [CrossRef]
  7. Wang, L.; Zhang, L.; Wang, H.; Ai, L.; Xiong, W. Insight into protein-starch ratio on the gelatinization and retrogradation characteristics of reconstituted rice flour. Int. J. Biol. Macromol. 2020, 146, 524–529. [Google Scholar] [CrossRef] [PubMed]
  8. Hasan, M.; Gopakumar, D.A.; Olaiya, N.; Zarlaida, F.; Alfian, A.; Aprinasari, C.; Alfatah, T.; Rizal, S.; Khalil, H.A. Evaluation of the thermomechanical properties and biodegradation of brown rice starch-based chitosan biodegradable composite films. Int. J. Biol. Macromol. 2020, 156, 896–905. [Google Scholar] [CrossRef] [PubMed]
  9. Amanda, M.; Trojahn, N.M.; Vanessa, M.; Carteri, C.P.; de Moraes, R.S.; Samuel, M.; Fernandes, L.A.; Fogliato, P.V.; König, M.C. Rice Drying, Storage and Processing: Effects of Post-Harvest Operations on Grain Quality. Rice Sci. 2022, 29, 16–30. [Google Scholar] [CrossRef]
  10. Gao, R.L.; Che, G.; Wan, L. Process optimization and quality analysis of rice with negative pressure drying. Cereals Oils 2020, 33, 76–80. [Google Scholar]
  11. Zhang, H.J. Application of rapid detection technology in grain storage. Food Sci. Technol. Econ. 2020, 45, 59–60. [Google Scholar] [CrossRef]
  12. Jafari, A.; Tumbleson, M.; Rausch, K.D. Evaluation of grain moisture measurement methods suited for developing countries. J. Stored Prod. Res. 2022, 98, 102001. [Google Scholar] [CrossRef]
  13. Zhang, J.; Liu, X.L.; Shan, X.X.; Wang, S.; Zhang, P.Z. Optimization of grain and oil moisture testing method. Grain Storage 2020, 49, 45–50. [Google Scholar]
  14. Tinna, A.; Parmar, N.; Bagla, S.; Goyal, D.; Senthil, V. Design and development of capacitance based moisture measurement for grains. Mater. Today Proc. 2021, 43, 263–267. [Google Scholar] [CrossRef]
  15. Wu, H.C.; Xie, H.X.; Hu, Z.C.; Gu, F.W.; You, Z.Y.; Wei, H. Design and experiment of continuous single grain typed online grain moisture test apparatus. Trans. CSAE 2017, 33, 282–290. [Google Scholar] [CrossRef]
  16. Wang, S.B.; Zhao, L.Q.; Zhao, J.; Zhang, Y. Design of needle-punched in-situ corn moisture meter based on resistance method. J. Chin. Agric. Mech. 2019, 40, 159–164. [Google Scholar] [CrossRef]
  17. Flor, O.; Palacios, H.; Suárez, F.; Salazar, K.; Reyes, L.; González, M.; Jiménez, K. New Sensing Technologies for Grain Moisture. Agriculture 2022, 12, 386. [Google Scholar] [CrossRef]
  18. Aswani, G.; Islam, T. Capacitive fringing sensor based on PCB for the detection of moisture content in grain. In Proceedings of the 2023 International Conference on Power, Instrumentation, Energy and Control (PIECON), Aligarh, India, 10–12 February 2023; IEEE: Manhattan, NY, USA, 2023; pp. 1–5. [Google Scholar] [CrossRef]
  19. Surya, S.G.; Yuvaraja, S.; Varrla, E.; Baghini, M.S.; Palaparthy, V.S.; Salama, K.N. An in-field integrated capacitive sensor for rapid detection and quantification of soil moisture. Sens. Actuators B Chem. 2020, 321, 128542. [Google Scholar] [CrossRef]
  20. Wang, J.W.; Tang, T.Y.; Tang, H.; Xu, C.S.; Zhou, W.Q.; Wang, Q. Design and Experiment of Online Detection Device for Capacitive Paddy Rice Moisture Content of Combine Harvester. Trans. Chin. Soc. Agric. Mach. 2021, 52, 143–152. [Google Scholar] [CrossRef]
  21. Wan, L.; Tang, H.Y.; Ma, G.Y.; Che, G.; Zou, D.D.; Sun, W.S. Optimization Design and Experiment on Finned Double Plates Rice Moisture Content Measuring Device. Trans. Chin. Soc. Agric. Mach. 2021, 52, 320–328. [Google Scholar] [CrossRef]
  22. Zhang, B.H.; Qian, C.Q.; Jiao, J.K.; Ding, Z.H.; Zhang, Y.; Cui, H.G.; Liu, C.H.; Feng, L.L. Rice moisture content detection method based on dielectric properties and SPA-SVR algorithm. Trans. CSAE 2019, 35, 237–244. [Google Scholar] [CrossRef]
  23. Chen, J.; Wang, Y.H.; Lian, Y.; Wang, S.Q.; Liu, X.Y. Development of online monitoring device of grain moisture content in combine harvester with high frequency capacitance. Trans. CSAE 2018, 34, 36–45. [Google Scholar] [CrossRef]
  24. Zhang, Y.; Zhao, J.; Zhao, L.Q.; Cheng, X. Design and experiment of online measuring instrument for grain moisture based on dielectric properties. J. Chin. Agric. Mech. 2020, 41, 105–110. [Google Scholar] [CrossRef]
  25. Li, Z.F.; Jin, C.Q.; Liu, Z.; Yang, T.X.; Chen, M.; Cai, Z.Y. Design and calibration of online moisture detection device for grain combine harvester. J. Chin. Agric. Mech. 2019, 40, 145–151. [Google Scholar] [CrossRef]
  26. Pan, B.L.; Pan, J.J.; Yan, L.H. The Application of DM510 of Online Moisture Controller in Continuous Grain Dryer. Mod. Food 2016, 3, 20–22. [Google Scholar] [CrossRef]
  27. Li, C.; Zhang, X.; Meng, M.; Li, B.; Li, C. Capacitive Online Corn Moisture Content Sensor Considering Porosity Distributions: Modeling, Design, and Experiments. Appl. Sci. 2021, 11, 7655. [Google Scholar] [CrossRef]
  28. Kapic, A.; Tsirou, A.; Verdini, P.G.; Carrara, S. Humidity sensors for high energy physics applications: A review. IEEE Sens. J. 2020, 20, 10335–10344. [Google Scholar] [CrossRef]
  29. Pathaveerat, S.; Pruengam, P. Low cost measurement of moisture content in long grain paddy. J. Stored Prod. Res. 2020, 89, 101728. [Google Scholar] [CrossRef]
  30. Putri, R.E.; Pratama, W.E.; Ifmalinda, I. Application of Capacitive Sensor for Measuring Grain Moisture Content Based on Internet of Things. J. Keteknikan Pertan. 2023, 11, 29–40. [Google Scholar] [CrossRef]
  31. Zhao, D.; Wang, Y.; Shao, J.; Zhang, P.; Chen, Y.; Fu, Z.; Wang, S.; Zhao, W.; Zhou, Z.; Yuan, Y. Temperature and humidity sensor based on MEMS technology. AIP Adv. 2021, 11, 085126. [Google Scholar] [CrossRef]
  32. Yariv, E. Edge corrections for parallel-plate capacitors. Eur. J. Appl. Math. 2021, 32, 226–241. [Google Scholar] [CrossRef]
  33. Zhang, H.; Yao, L.; Quan, L.; Zheng, X. Theories for triboelectric nanogenerators: A comprehensive review. Nanotechnol. Rev. 2020, 9, 610–625. [Google Scholar] [CrossRef]
  34. Guo, Y.; Li, B.; Zhang, Q.; He, X.T.; Sun, J.Y. A Further Theoretical Study of Capacitive Pressure Sensors Based on Thin Film Elastic Deflection and Parallel Plate Capacitor: Refined Closed-Form Solution and Numerical Calibration. Sensors 2022, 22, 2848. [Google Scholar] [CrossRef]
  35. Anand, G.; Lowe, A.; Jones, R.; Arnold, W.M.; Kalra, A.; Simpkin, R.; Sinno, I.; Budgett, D. Quantification of edge effects in capacitive biopotential sensing. In Proceedings of the TENCON 2021-2021 IEEE Region 10 Conference (TENCON), Auckland, New Zealand, 7–10 December 2021; IEEE: Manhattan, NY, USA, 2021; pp. 1004–1007. [Google Scholar] [CrossRef]
  36. Oh, Y.; Jang, T.; Ha, H.; Sohn, S. Temporal Change of a Parallel Plate Capacitor’s Voltage after Dielectric Insertion. Phys. Teach. 2022, 60, 124–127. [Google Scholar] [CrossRef]
  37. Liu, Y.; Abali, B.E.; Yang, H.; Müller, W.H. Plate capacitor problem as a benchmark case for verifying the finite element implementation. Contin. Mech. Thermodyn. 2023, 35, 245–265. [Google Scholar] [CrossRef]
  38. Cao, X.G.; Yang, Y. The size effect of parallel-plate capacitor. Coll. Phys. 2021, 40, 8–11. [Google Scholar] [CrossRef]
  39. Xu, L.; Wang, S.X.; Zhang, W.W.; Zheng, P.L.; Huang, Z.Y. Analysis of Fringe Effect on Capacitance Structure Design of Micro Force Measurement Device. Instrum. Tech. Sens. 2020. [Google Scholar] [CrossRef]
  40. Lei, J. Simulation and Analysis of the Influence of Plate Thickness on Capacitive Edge Effect. Comput. Telecommun. 2013, 15, 52–53. [Google Scholar] [CrossRef]
  41. Han, J.X.; Ma, M.Y.; Wang, K. Product modeling design based on the genetic algorithm and BP neural network. Neural Comput. Appl. 2021, 33, 4111–4117. [Google Scholar] [CrossRef]
  42. Zhang, J.; Qu, S.; Lv, Z. Optimization of Backpropagation Neural Network under the Adaptive Genetic Algorithm. Complexity 2021, 2021, 1718234. [Google Scholar] [CrossRef]
  43. Yang, J.; Hu, Y.; Zhang, K.; Wu, Y. An improved evolution algorithm using population competition genetic algorithm and self-correction BP neural network based on fitness landscape. Soft Comput. 2021, 25, 1751–1776. [Google Scholar] [CrossRef]
  44. Shen, X.; Zheng, Y.; Zhang, R. A hybrid forecasting model for the velocity of hybrid robotic fish based on back-propagation neural network with genetic algorithm optimization. IEEE Access 2020, 8, 111731–111741. [Google Scholar] [CrossRef]
  45. Cicek, Z.I.E.; Ozturk, Z.K. Optimizing the artificial neural network parameters using a biased random key genetic algorithm for time series forecasting. Appl. Soft Comput. 2021, 102, 107091. [Google Scholar] [CrossRef]
  46. Jie, Z.; Qiurui, M. Establishing a Genetic Algorithm-Back Propagation model to predict the pressure of girdles and to determine the model function. Text. Res. J. 2020, 90, 2564–2578. [Google Scholar] [CrossRef]
  47. Lv, R.W.; Bao, W.L.; Qin, X.L.; Bu, Y.L. Comparative study of moisture measurement method in paddy. Grain Storage 2021, 50, 38–41. [Google Scholar] [CrossRef]
  48. Che, G.; Chen, Z.F.; Wang, X.; Tang, H.Y.; Wan, L. Design and Experiment on Autonomous Transferring and Quick Measuring Equipment of Moisture Content of Coarse Cereals. Trans. Chin. Soc. Agric. Mach. 2019, 50, 357–366. [Google Scholar] [CrossRef]
Figure 1. Dynamic collection device: (a) 3D modeling diagram; (b) physical map: 1. coupling; 2. servo; 3. vibrating device; 4. acrylic plate; 5. copper foil; 6. ten-shaped leaf plate; 7. circuit board package shell; 8. grain storage bench.
Figure 1. Dynamic collection device: (a) 3D modeling diagram; (b) physical map: 1. coupling; 2. servo; 3. vibrating device; 4. acrylic plate; 5. copper foil; 6. ten-shaped leaf plate; 7. circuit board package shell; 8. grain storage bench.
Sensors 23 05753 g001
Figure 2. Hardware schematic blueprint.
Figure 2. Hardware schematic blueprint.
Sensors 23 05753 g002
Figure 3. Hardware circuit design: (a) operational amplifier circuit diagram; (b) schematic diagram of temperature measurement circuit; (c) circuit diagram of power supply unit; (d) circuit diagram of communication unit.
Figure 3. Hardware circuit design: (a) operational amplifier circuit diagram; (b) schematic diagram of temperature measurement circuit; (c) circuit diagram of power supply unit; (d) circuit diagram of communication unit.
Sensors 23 05753 g003
Figure 4. Interface diagram of the master computer.
Figure 4. Interface diagram of the master computer.
Sensors 23 05753 g004
Figure 5. System flowchart.
Figure 5. System flowchart.
Sensors 23 05753 g005
Figure 6. Model of equivalence: (a) diagrammatic drawing of the equivalent model; (b) schematic diagram of model dimensions. 1. Upper plate; 2. dry rice; 3. water; 4. air; 5. middle plate; 6. lower plate.
Figure 6. Model of equivalence: (a) diagrammatic drawing of the equivalent model; (b) schematic diagram of model dimensions. 1. Upper plate; 2. dry rice; 3. water; 4. air; 5. middle plate; 6. lower plate.
Sensors 23 05753 g006
Figure 7. Modeling and gridding: (a) model effects; (b) meshing effects.
Figure 7. Modeling and gridding: (a) model effects; (b) meshing effects.
Sensors 23 05753 g007
Figure 8. Simulation of the edge scattering electric field with a change in the thickness of the tri-pole plate: (a) h = 0.5 mm; (b) h = 1.0 mm; (c) h = 1.5 mm; (d) h = 2.0 mm; (e) h = 2.5 mm; (f) h = 3.0 mm.
Figure 8. Simulation of the edge scattering electric field with a change in the thickness of the tri-pole plate: (a) h = 0.5 mm; (b) h = 1.0 mm; (c) h = 1.5 mm; (d) h = 2.0 mm; (e) h = 2.5 mm; (f) h = 3.0 mm.
Sensors 23 05753 g008
Figure 9. Simulation of the scattering electric field from the edge with variation of the tri-pole spacing: (a) d =80 mm; (b) d =85 mm; (c) d = 90 mm; (d) d = 95 mm; (e) d = 100 mm; (f) d = 105 mm.
Figure 9. Simulation of the scattering electric field from the edge with variation of the tri-pole spacing: (a) d =80 mm; (b) d =85 mm; (c) d = 90 mm; (d) d = 95 mm; (e) d = 100 mm; (f) d = 105 mm.
Sensors 23 05753 g009aSensors 23 05753 g009b
Figure 10. Simulation of the edge scattering electric field with a change in the tri-pole’s relative area: (a) A = 15,000 mm2; (b) A = 18,000 mm2; (c) A = 21,000 mm2; (d) A = 24,000 mm2; (e) A = 27,000 mm2; (f) A = 30,000 mm2.
Figure 10. Simulation of the edge scattering electric field with a change in the tri-pole’s relative area: (a) A = 15,000 mm2; (b) A = 18,000 mm2; (c) A = 21,000 mm2; (d) A = 24,000 mm2; (e) A = 27,000 mm2; (f) A = 30,000 mm2.
Sensors 23 05753 g010
Figure 11. Schematic diagram of the BP neural network structure.
Figure 11. Schematic diagram of the BP neural network structure.
Sensors 23 05753 g011
Figure 12. Response surface of each interaction: (a) interaction X2 X3 response surface; (b) interaction X1 X3 response surface; (c) interaction X1 X2 response surface.
Figure 12. Response surface of each interaction: (a) interaction X2 X3 response surface; (b) interaction X1 X3 response surface; (c) interaction X1 X2 response surface.
Sensors 23 05753 g012
Figure 13. The result from running the algorithm: (a) evolutionary process; (b) GA–BP prediction model training results; (c) GA–BP forecast renderings; (d) test sample error comparison; (e) regression effect of the GA–BP prediction model.
Figure 13. The result from running the algorithm: (a) evolutionary process; (b) GA–BP prediction model training results; (c) GA–BP forecast renderings; (d) test sample error comparison; (e) regression effect of the GA–BP prediction model.
Sensors 23 05753 g013
Figure 14. Conditions of the indoor static test: 1. dynamic acquisition device; 2. circuit board package shell; 3. rice before processing; 4. grain storage bench; 5. drying box; 6. master computer.
Figure 14. Conditions of the indoor static test: 1. dynamic acquisition device; 2. circuit board package shell; 3. rice before processing; 4. grain storage bench; 5. drying box; 6. master computer.
Sensors 23 05753 g014
Figure 15. Test results of the moisture content using different methods.
Figure 15. Test results of the moisture content using different methods.
Sensors 23 05753 g015
Figure 16. Dynamic test conditions: 1. drying tower; 2. dynamic acquisition device; 3. master computer.
Figure 16. Dynamic test conditions: 1. drying tower; 2. dynamic acquisition device; 3. master computer.
Sensors 23 05753 g016
Table 1. Parts of the components of the main parameter table.
Table 1. Parts of the components of the main parameter table.
NameMain Parameters
ServoRated voltage 12~24 V/DC
Power switchOutput voltage: 24 V, AC output current: 10 A, power 250 W
CouplingPlum type aluminum alloy material
Size: Outer diameter 55 mm, length 78 mm, hole 12 to 15 mm
Normal flat keyType A 6 × 6 × 180 mm, 304 stainless steel
Bearing seatRhombic shape KFL004 inner diameter 20 mm
Vibrating deviceSingle 220 V 20 W
Grain storage benchLength, width, and height:
300 × 300 × 500 mm
Circuit board package shellLength, width, and height:
145 × 145 × 75 mm
Table 2. Test factor code table.
Table 2. Test factor code table.
Coded ValuePlate Thickness h/mmPlate Spacing d/mmRelative Area A/mm2
−1.6820.58018,000
−10.984.120,432
01.59024,000
12.196.027,568
1.6822.510030,000
Table 3. Test scheme and results.
Table 3. Test scheme and results.
Test NumberX1X2X3Measured Capacitance Value C1/pFTheoretical Calculated Capacitance Value C2/pFSensitivity Y
1001.68244.833.681.33
200039.6334.161.16
300038.9434.161.14
400039.2834.161.15
5−11−137.2135.11.06
600−1.68236.4825.691.42
70−1.682044.3138.531.15
81.6820041.1333.441.23
900039.3934.161.23
1001.682043.2535.451.22
11−1.6820035.9132.941.09
121−1−144.3131.431.41
13−11142.4429.891.42
14−1−1144.6735.741.25
1500039.9734.161.17
1611143.2233.771.28
1700038.634.161.13
18−1−1−140.2332.181.25
1900039.6334.161.16
201−1143.4841.021.06
2100041.6834.161.22
2200038.634.161.13
2311−143.6930.341.44
Table 4. Comparison of multiple fitting models.
Table 4. Comparison of multiple fitting models.
SourceStd. Dev.R2Adjusted R2Predicted R2PRESS
Linear0.11750.1027−0.0389−0.54040.4503
2FI0.08690.58690.4320−0.11900.3271
Quadratic0.03690.93940.89740.75050.0729
Cubic0.03790.95590.8921−0.76510.5160
Table 5. ANOVA for the quadratic model.
Table 5. ANOVA for the quadratic model.
SourceSum of SquaresdfMean SquareF-Valuep-Value
Model0.274690.030522.38<0.0001
X10.014510.014510.660.0062
X20.008910.00896.500.0243
X30.006610.00664.880.0458
X1 X20.009110.00916.690.0226
X1 X30.094610.094669.41<0.0001
X2 X30.037810.037827.740.0002
X120.000210.00020.14900.7057
X220.002410.00241.800.2031
X320.100710.100773.85<0.0001
Residual0.0177130.0014
Lack of Fit0.007150.00141.070.4431
Pure Error0.010680.0013
Cor Total0.292322
Note: p < 0.01 indicates a very significant difference; p < 0.05 indicates a significant difference.
Table 6. BP neural network parameter settings.
Table 6. BP neural network parameter settings.
Number of TrainingsLearning RateTraining AccuracyTraining Function
10000.10.00001Levenberg–Marquardt
Table 7. Genetic algorithm parameter settings.
Table 7. Genetic algorithm parameter settings.
Population SizeEvolutionary AlgebraCrossover ProbabilityMutation Probability
100500.30.1
Table 8. Bench test results.
Table 8. Bench test results.
Group NumberMeasurements under the Drying Method (%)Device Measurements (%)Relative Error (%)
118.6719.031.93
217.3417.01−1.90
316.6717.022.10
416.2115.85−2.22
515.9315.59−2.13
615.6316.012.43
715.3215.02−1.96
815.1115.411.99
914.9714.63−2.27
1014.7914.48−2.10
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sun, W.; Wan, L.; Che, G.; Xu, P.; Wang, H.; Qu, T. Design and Experiment of Capacitive Rice Online Moisture Detection Device. Sensors 2023, 23, 5753. https://doi.org/10.3390/s23125753

AMA Style

Sun W, Wan L, Che G, Xu P, Wang H, Qu T. Design and Experiment of Capacitive Rice Online Moisture Detection Device. Sensors. 2023; 23(12):5753. https://doi.org/10.3390/s23125753

Chicago/Turabian Style

Sun, Wensheng, Lin Wan, Gang Che, Ping Xu, Hongchao Wang, and Tianqi Qu. 2023. "Design and Experiment of Capacitive Rice Online Moisture Detection Device" Sensors 23, no. 12: 5753. https://doi.org/10.3390/s23125753

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop