Parameters Online Detection and Model Predictive Control during the Grain Drying Process

In order to improve the grain drying quality and automation level, combined with the structural characteristics of the crossflow circulation grain dryer designed and developed by us, the temperature, moisture, and other parameters measuring sensors were placed on the dryer, to achieve online automatic detection of process parameters during the grain drying process. A drying model predictive control system was set up. A grain dry predictive control model at constant velocity and variable temperature was established, in which the entire process was dried at constant velocity (i.e., precipitation rate per hour is a constant) and variable temperature. Combining PC with PLC, and based on LabVIEW, a system control platform was designed.


Introduction
Drying is an important part of the grain processing after harvest, while drying monitoring and control are directly related to the management of the drying operation, the drying efficiency, and the quality of the dried grain.At present, in the actual production, the degree of automation and informatization of drying monitoring is not high; it is difficult to accurately monitor the whole drying process, which affects the accuracy of the automatic control.Grain drying process is a typical multivariable, time-varying, nonlinear, and large delay industrial production process; the drying process is difficult to achieve accurate automatic control [1].
In this paper, specific to the drying process of the cross-flow circulation grain dryer, a drying model predictive control system was set up.Using the virtual instrument technology, an automatic detection and control system for the circulation grain dryer were developed, to detect and control the influencing factors in the drying process, in order to achieve the automation of the control process.

Process Design of the Dryer
Shown in Figure 1 is the flow diagram of our developed crossflow circulation grain dryer.
Generally, the cross-flow circulation grain dryer adopts drying and retarding processes.In the cross-flow phase, the hot air flows vertically through the top-down grain layer, removes the excess moisture; while in the retarding phase, mainly the grain moisture gradient decreases, and the particles internal moisture migrates outward, thus ensuring the grain quality [2].
When operation, the grain in the hopper is transferred to the top of the dryer by an grain elevator, then will be evenly thrown into the up storage by the up auger, next moves down to the drying section by gravity.The speed is controlled by the revolution of the discharge motor.In the drying section, the hot air passes the grain layers through hot air piping and air plate.After drying, the moist air is discharged from the rear through duct by a centrifugal blower, and thus the grain is dried.Then the dried grain enters into the down storage for retarding, and the retarded grain enters into the down drying section to continue drying, and thus a dryingretarding-drying-retarding process forms.The dried grain is discharged to the down storage by the discharge auger.At the down storage, by a chain driven blade, the grain will be transferred into the feed hopper and will be conveyed again to the top of the dryer by the elevator, again and again, until the grains reach the target moisture content after discharge.

Parameters Online Detection
The system adopts distributed control, as shown in Figure 2.
The system consists of a host (Industrial PC), PLC, ambient temperature and moisture sensors, temperature sensors, resistive online moisture meter, actuators, and the relevant instruments.The main parameters include hot air temperature, grain temperature, offgas temperature, ambient temperature and humidity, the raw grain moisture and dryer exit grain moisture; the operative part includes PLC, inverter, and other peripheral lines.Data exchange between host and temperature instruments, moisture meter and actuators through the RS232/RS485 converter module I-7520 serial communication data bus.On the one hand, the host receives data of lower machine from the temperature instruments and moisture sensors; on the other hand, the host sends control words to lower machine such as PLC, temperature instruments, and moisture sensors, to make corresponding controls [3,4].
Moisture online detection is the key in the grain drying control system.Our self-developed online moisture meters, adopted by the system, were installed in the inlet and outlet elevators, respectively.
The resistive online moisture meter consists of a host and a moisture sensor.The moisture sensor is shown in Figure 4.For the moisture meter, according to the measured resistance in the relationship with the moisture content when wheels crush the grain, by measuring the resistance to online measure the grain moisture level.The output resistance is also associated with parameters such as grain temperature, varieties, and maturity.With automatic and manual control modes, the moisture meter has functions of grains switching, moisture setting, moisture correction, and temperature compensation.The target moisture value can be preset.The meter will respond upon arrival at this value to avoid over and insufficient drying.The meter can be intermittent cycle automatic start, timing start online monitoring moisture, with high sensitivity and good stability.

Cross-Flow Dryer Model Predictive Control
The characteristics of complexity, time-varying, hysteresis, and nonlinearity in grain drying bring a lot of difficulties to the traditional control applications.MPC (model predictive control) is a composite optimal control algorithm based on the model, by rolling implementation combined with feedforward forecast and feedback correction.Its control output can track set-points, particularly effective for nonlinear and large delay control [5].Some foreign researchers developed a new type of model predictive controller for cross-flow dryer, which was successfully applied to actual production [6].
The MPC system structure of the cross-flow circulation grain dryer is shown in Figure 5 [6,7], including a feedforward loop (consists of process model, reverse process model, and grain discharge speed optimizer) and a feedback loop (parameter estimation/correction).The system has the following input parameters: grain initial moisture, grain target drying moisture, and dry air temperature.The parameter that needs to be optimized is the grain discharge speed.

Drying Process Model.
Assume that the medium temperature can be precisely controlled and the ambient temperature and humidity are relatively stable.The grain is divided into a number of thin layer to analyze, in order to set up grain drying control model.According to the structure of the drying section of the cross-flow circulation grain dryer and hot air drying characteristics, the grain columns of the dryer section can be seen as a collection of a series of rectangles differential unit in the vertical direction [7], as shown in Figure 6.For each rectangle differential unit, a rectangular width is the thickness of the drying section; that is, the thickness of the grain layer, and the height is the differential Δ or  of length of the drying section; it may be sufficiently small.Also assume that the hot air temperature and humidity change or the difference in the  direction is negligible.
Constant velocity (equal precipitation rate) variable temperature control and target control are combined, to control the grain precipitation rate within less than 1.5%/h.Compare target moisture with the measured moisture and stop drying after the safe moisture or the final set value arrived.
First we assumed the following parameters: initial moisture  0 , target moisture   , single cycle target precipitation rate %, and grain discharge speed ;  is a moisture difference in order to achieve a safe moisture.The model is derived as follows.
The grain target drying moisture: Cycles to achieve the target moisture:  During the entire grain drying process, the moisture changes of the grain over time is as follows:  0 ,  1 ,  2 , . . .,   , . . .,   .Then there is the following relationship:  During the drying process, it is assumed that the inlet grain moisture of a unit layer is   , the outlet grain moisture is  +1 , Δ is the height of the unit layer, and the dryer discharge speed at the time is   ; then In which,   is drying hot air temperature ( ∘ C),   is the grain moisture after drying a certain period time (dry basis), MR is the grain moisture ratio,   is the equilibrium moisture content of the grain (dry basis),  is a constant,  is the number of the grain thin layer, RH is the hot air relative humidity,   is the speed of hot air (m/s), and  is the sample number,  = 1, 2, . . ., .
Thus using ( 6), (7), and ( 8), all unit layers of the entire drying section can be solved, and the final discharge moisture from the cross-flow dryer and the grain moisture distribution within the whole drying section were further obtained.

Reverse Drying Process Model.
For drying production, generally the grain initial and target moisture are known to set the appropriate parameters in order to achieve the purpose of drying.
When the grain discharge moisture   is set, the reverse drying process model can be used to calculate the dryer theoretical grain discharge speed  0 .Grain moisture at  away from the discharge outlet is   .The grain discharge speed   will be obtained if   reaches the target moisture as follows: , 4.3.The Grain Discharge Speed Optimization.Due to the presence of environment interference, as well as the model mismatch as a result of the simplified model, the theoretical grain discharge speed of each unit layer calculated by ( 9) may be unequal.But in the actual drying process, all unit layers in the drying section can only move down at the same discharge rate.Therefore, in the MPC control system, a dynamic optimizer is needed to optimize the calculation of the grain discharge speed, in order to obtain an optimal value.In this system, zero average error method was applied [8].Assume that the grain moisture at the th unit layer is   ; in the next  sampling periods, the real grain discharge speed before the th unit layer reaches the outlet is   ; then the moisture of these grains when they arrive at the outlet can be estimated as follows: where   is the grain final moisture; the value of lay unit  is 1, 2, 3, . . ., , starting from inlet to the outlet; Δ/  is the time required of the grain from the current unit layer to the discharge outlet;  is a constant, dependent on the drying model and conditions.Assuming that the target moisture after drying is   and the ideal dryer discharge speed is   , then In the next sampling period, when the actual grain discharge speed   and the ideal grain discharge speed   are not equal, then there will be deviation between the final grain moisture and the target moisture; the result is This error is only for one unit layer, so for the whole grain column, the average error is Assumed  = 0, the real optimized grain discharge speed can be

Feedback Correction of the Control Model.
The process model error is defined as the difference between the measured outlet grain moisture and the target grain moisture.If the error is not zero, drying constant  of the process and reverse process models is corrected using the empirical coefficient .
In the feedback loop, parameter estimation/correction is as follows [9]: wherein   is the drying constant after correction. is an experience correction coefficient, obtained from the formula (16), which is the current correction coefficient.  is a correction coefficient of a previous cycle (default is 0.8). is a filter coefficient, determined by experiment, by adjusting the controller.  is the predicted grain moisture, and   is the actual measured moisture.

System Software Design
Graphical programming language LabVIEW is used for design of the system operation platform.The modular structure design is adopted, and system software consists of modules of drying model predictive control system, detection and control of hot air temperature, grain temperature detection, grain moisture detection and correction, and grain discharge speed control.Specifically, it is divided into the system initialization module, the data acquisition and display module, the data storage and processing module, and the system control module.By the system initialization module, the control system parameters can be set and modified.Data acquisition and display module will realize real-time data collection from instrument transmission and visually display in the man-machine interface.Data storage and processing module will store the collected data, while the collected data is graphed on the man-machine interface.According to data values and graphs for each time, the system control module is in accordance with the model predictive control algorithm for real-time automatic control.The data acquisition interface is shown in Figure 7 [10].The model predictive control system was test simulated in LabVIEW.The simulation results show that, when the grain feed moisture and the drying air temperature are within a certain range of variation, by the control of the MPC, the grain discharge moisture closes to the set target moisture.

System Application
In November 2012, production test experiment of drying rice was carried out on the system.The application indicates that the system has the advantages of simple hardware structure, high precision, high on-site anti-interference ability, high degree of automation, and work friendly interface.Figure 8 shows the application site of the cross-flow circulation grain dryer.We tested working conditions of the circulation dryer at precipitation rates of 1.5%/h, 1.0%/h, and 0.5%/h.The initial drying conditions are shown in Table 1. Figure 9 shows the outlet grain moisture curve at the three drying precipitation rates.From the curve we observed that the precipitation rate is approximately constant velocity, and outlet rice moisture detection is more accurate.Figure 10 is the hot air temperature variation curve at the three drying precipitation rates.Under the premise of maintaining the equal precipitation rate during the whole drying process, using the constant velocity variable temperature prediction model to control the temperature of hot air, hot air temperature fluctuations are little and can be better controlled.When the constant speed precipitation rate is 1.5%/h, the average hot air temperature of 68 ∘ C is needed; the higher the temperature of the drying medium, the poorer the quality of grain after drying.When the constant speed precipitation rate is 0.5%/h, the dried rice quality is good, but the drying time and energy consumption are high.Comprehensive comparison shows that constant velocity precipitation rate of 1.0%/h has a good dried rice quality, the highest drying efficiency, and the lowest energy consumption.

Conclusion
According to the structural characteristics of the cross-flow circulation grain dryer, process, and system control objectives and requirements, a grain drying parameters detection system was established.The system can automatically detect and display the parameters of the grain temperature, hot air temperature, and grain moisture.A grain drying process model predictive control system was established, and the model predictive control combined moisture model prediction with the advantages of the control function of grain discharge speed optimization, can compensate for changes of grain drying conditions, and is particularly effective for nonlinear and large delay drying control.A constant velocity variable temperature of drying process predictive control model was established.System software was developed using LabVIEW, to achieve automatic control of the grain drying process and to better guarantee the quality of the grain drying.
have no interest relationship and conflict with LabVIEW company (National Instruments).

Figure 2 :Figure 3 :
Figure 2: The composition block diagram of the control system.

)Figure 5 :
Figure 5: The MPC system structure of the cross-flow circulation grain dryer.

Figure 7 :
Figure 7: Front panel of data display.

Figure 9 :Figure 10 :
Figure 9: Outlet grain moisture at different drying precipitation rates.

Table 1 :
Initial Conditions of the Drying Test (average value).