Effect of the Quality Property of Table Grapes in Cold Chain Logistics-integrated Wsn and Aow

Table grapes are very popular for their high nutritional and therapeutic value. The objective of this work was to study the effect of table grapes' quality property in cold chain logistics for improving the transparency and traceability of table grapes' cold chain logistics and ensuring the table grapes' quality and safety. Temperature and relative humidity are monitored by adopting the wireless sensor network (WSN) as the fundamental network infrastructure and adaptive optimal weighted data fusion (AOW) for the adaptive data fusion. The cold chain process, firmness quality and adaptive data fusion of temperature and relative humidity were evaluated in an actual cold chain logistics. The results indicate that the WSN and AOW methods could effectively reflect the real-time temperature and relative humidity information and quality property, improve the transparency and traceability in the cold chain and ensure the preservation of the quality and safety of table grapes. The AOW performance analysis shows that the AOW, whose mean absolute error and mean relative error of the temperature data are 0.06 °C and 8.61% and relative humidity data are 0.12% and 0.23%, respectively, could fuse the sensor data accurately, efficiently and adaptively and meet the actual application requirements.


Introduction
Table grapes are very popular for their high nutritional and therapeutic value.However, table grapes deteriorate easily by pathogen infection due to their characteristics of being soft and having a high moisture content, which lead to the quality and safety issues of table grapes that have received worldwide attention [1,2].Cold chain logistics is an effective measure to ensure that table grapes are stored in a low temperature environment all of the time by using artificial refrigeration technology when they are in various links, such as processing, storage, transportation, sale, etc., and to reduce the quality losses of table grapes [3][4][5].
Cold chain management has become crucial, challenging and important.However, the cold chain logistics system is still complex, and the information asymmetry is high, as well.It is urgent to conduct research on the dynamic characteristic of the cold chain environment by intelligent monitoring technology to complete the sensor data acquisition and processing, improve the transparency and traceability of the cold chain logistics and guarantee the quality and safety of the table grapes [6,7].
Though there are many environmental factors that affect the quality and safety of table grapes, temperature and relative humidity are the main factors that affect the quality and safety of table grapes during the cold chain logistics [8,9].The temperature is the key factor that directly affects the respiration intensity of the table grapes and the activity of the enzymes.Suitable temperature management is becoming a very important function of the table grapes' cold chain logistics to extend the quality and storage period [10,11].The table grapes' quality will not be maintained in a good condition if the relative humidity is too high or too low, which is conducive to reducing the losses of the table grapes' moisture content as much as possible [12,13].It is necessary to monitor in real time, to control the temperature and relative humidity and to analyze the quality to keep table grapes in a suitable refrigerated condition during the whole cold chain logistics.
Firmness is an important quality to judge the freshness and softening degree of table grapes, which could indirectly verify the preservation of table grapes [14,15].The other quality indicators are mainly the moisture loss [16,17], decay rate [18], abscission rate [19], total soluble solids (TSS) [20], titratable acid (TA) [21] and sensory evaluation [22].However, owning to the complex cold chain logistics system, firmness is the easiest quality indicator among these quality indicators to measure using a handheld durometer during the cold chain logistics, while the others need special instruments or environments.Therefore, it is practicable and important to select firmness to evaluate the quality of table grapes in actual cold chain logistics.
Traditional methods, such as temperature and humidity recorders and radio frequency identification technology, are the most popular, reliable and accurate ways to monitor the cold chain.However, such methods have high management costs with off-line monitoring [23,24].Applying wireless sensor network (WSN) to monitor the cold chain logistics of table grapes, which integrates sensor technology, embedded computing, networking, wireless communication technology and distributed processing together to sense information from monitored objects in the environment and which sends it to the end-user via wireless and multi-hop network, has been an inevitable trend [25][26][27].WSN has been widely adopted and applied in agricultural [28][29][30], environmental monitoring [31,32], industrial [33,34] and many other important areas.
Adaptive optimal weighted data fusion (AOW) has provided an adaptive way to fuse the data with high efficiency and accuracy, which is beneficial for the storage, transmission and processing of natural signals, without the restriction of the fixed characteristics of normal data fusion that the algorithm cannot vary with the changing signal [35][36][37].The AOW not only fuses the sensor data efficiently and accurately with relative little complexity and calculation, but also brings the benefits of simple adaptive fusion and compression in a WSN, which meets the limited resource constraint of WSNs [38][39][40].
Based on the above discussion, this study aims to evaluate the temperature and relative humidity, and table grapes' quality property in cold chain logistics to improve the transparency and traceability of cold chain logistics and to ensure the quality and safety of the table grapes by adopting the WSN as the fundamental network infrastructure and the AOW for the adaptive data fusion.The cold chain process, data fusion performance and the firmness quality of table grapes are evaluated to realize more precise and accurate monitoring, tracing and control for the table grapes' cold chain logistics.

Materials and Methods
The WSN nodes (China Agricultural University, Beijing, China) are designed and implemented in this section, and the adaptive optimum weighted data fusion method, which includes the optimal weighted data fusion and the dynamic adjustment of weight coefficient, are also described in detail.

WSN Nodes
The WSN consists of the sensor nodes and the network coordinator.The network coordinator, which creates and controls the entire network and aggregates the sensor data from the sensor nodes, is the key device in the WSN.The sensor nodes, which are responsible for the temperature and relative humidity data acquisition and sending, include a microcontroller, a temperature-relative humidity sensor and a battery power supply.The network coordinator consists of a microcontroller and a general packet radio service (GPRS) remote module (Comway Electrionic Corp., Beijing, China).The CC2538 wireless sensor system-on-chip (SoC) (Texas Instruments Inc., Dallas, TX, USA), which integrates a radio frequency transceiver with a powerful Advanced RISC Machine (ARM) Cortex-M3-based microcontroller system with up to 32 KB on-chip RAM and up to 512 KB on-chip flash with a robust 2.4-GHz IEEE 802.15.4 radio, is adopted as the microcontroller in the sensor nodes and the network coordinator.The microcontroller enables the nodes to handle complex network stacks with security, demanding applications and over-the-air downloads to improve the integration and optimization of the hardware design and transmission distance.
The temperature and relative humidity parameters are monitored in real time and controlled by the sensor nodes in the refrigeration truck (China International Marine Containers (GROUP) Co., Ltd, Shenzhen, China) to satisfy the best storage requirement for the table grapes.The ranges of the temperature and relative humidity in table grapes' cold chain logistics are from −1 °C to 0 °C and 90% to 95%, respectively [6,9].The temperature and relative humidity data in the cold chain logistics are acquired and monitored by adopting the digital temperature and relative humidity sensor SHT10, whose range of temperature and relative humidity are from −40 °C to +123.8 °C and 0% to 100%, respectively, and the accuracy is ±0.5 °C and ±3.0%respectively.The supply voltage of the sensor node is supplied by a lithium battery (Anwin Electronics Co. Ltd, Shenzhen, China), whose nominal voltage and capacity is 3.7 V and 3600 mAh, respectively, while the network coordinator is equipped with a 5-V, 2-A power adapter to provide a continuous supply.Figure 1 illustrates the diagram of the sensor nodes and network coordinator hardware.

Optimal Weighted Data Fusion
Assume the acquired sensor data deviations of the n sensor nodes are 2   after data fusion satisfy the following Equations ( 1) and ( 2): According to Equation (2), the overall mean square error 2  is the multivariate quadratic function that has the minimum value.The weight coefficient ( 1, 2 , ) and the minimum overall mean square error 2 min  are shown in Equations ( 3) and (4).
The sensor data acquired from the sensor nodes have their own optimal weight coefficient under the minimum overall mean square deviations condition.The optimal weight coefficients 1 2 , , , n W W W  are calculated by the deviations of n sensor nodes 2 . The optimal weight coefficients need to be dynamically adjusted during the sensor data acquirement because of the interference factors, such as the environment.

Dynamic Adjustment of Weight Coefficient
Assuming the real-time data of the sensor node are ( 1, 2, , )  , then the mean value k x and mean square error 2 k  of these k sensor data are indicated in Equations ( 5) and ( 6).
Therefore, the mean value 1 k x  and mean square error 2 of the 1 k  sensor data would be calculated by the k sensor data results, which are demonstrated in Equations ( 7) and (8).
Finally, the optimal weight coefficients 1 2 , , , n W W W  would be calculated as Equation (3) by using the real-time results of Equation ( 8), which realizes the dynamic adjustment of the weight coefficient and the adaptive fusion for the weighted data acquired from the sensor nodes.Figure 2 indicates the flow chart of the whole optimal weighted data fusion process in the sensor nodes.

Implementation Scenario
The Kyoho table grapes (Vitis vinifera L. × V. labrusca L. cv.Kyoho) (Bole, China) cold chain logistics were chosen.The quality of firmness was assessed using a handheld durometer (AGY-2, Beijing, China) by measuring force used for pressing grapes by 1 mm and expressed as Newton per meter.Ten grapes were randomly selected, and analyses were performed in triplicate.
Figure 3 indicates the sensor nodes and coordinator deployment at the refrigeration truck in cold chain logistics.The WSN, which comprised 27 sensor nodes and a network coordinator node, was deployed in the field of a refrigeration truck for 15 days of transportation in cold chain logistic from Xingjiang to Guangdong province in China.The length, width and height of the refrigerated truck are about 3.0 m × 2.5 m × 2.4 m.Each sensor node, supplied with a 3.7-V, 1800-mAh lithium battery, was integrated into a plastic box with external antenna and put into the box of the table grapes before loading.The network coordinator, supplied with a 5.0-V, 2.0-A adaptor, was deployed at the driver's cab, and the sensor data can be transmitted in real time to the remote control center located at the company's office in Beijing via the GPRS (China Mobile Communication Co. Ltd., Beijing, China).
The data acquisition interval of the sensor nodes is set to 1 s, and the data sending interval of the network coordinator is set to 1 min.The length of a transmitted data packet is nine bytes, which includes the sensor ID (one byte), the temperature data (four bytes) and the battery voltage (four bytes).The sensor nodes calculate in real time the weight coefficients and fuse the sensor data, while the network coordinator aggregates the temperature and relative humidity data acquired from the sensor nodes every data acquisition interval and finally transmits the fusion data to the remote control center for further analysis and processing via the GPRS every data sending interval during the cold chain logistics.
The cold chain logistics process of table grapes and the data fusion of the temperature and relative humidity are analyzed and evaluated to improve the transparency and traceability of the temperature and relative humidity in the cold chain logistics and to ensure the quality and safety of the table grapes according to the implementation scenario.

Process Analysis of Table Grapes' Cold Chain Logistics
The process of table grapes' cold chain logistics is illustrated as Figure 4 and analyzed in Table 1.The table grapes were transported from Xingjiang to Guangdong province in China for about 15 days, the one-way transportation distance of which is about 4300 km.The curve of the temperature in the whole table grapes' cold chain logistics is demonstrated in Figure 5.The AB segment is the picking and packing process for table grapes at the farm, and the temperature in the AB segment is mainly varied with the ambient temperature.The temperature is about 25 °C in this process.The BC segment is the pre-cooling process, whose pre-cooling temperature is about −2 °C in the cold storage after the picking and packing process.The CD segment is the preservation storage process.The temperature is stable at about 0 °C.The DF segment is the refrigerated transportation process.The temperature is stable at about 0 °C, as well.The EF segment is the table grapes' unloading process.The temperature decays rapidly from the normal temperature to the refrigerated temperature at about −2 °C in the BC segment.The D point is the table grapes' loading process, and the temperature in this range rises to about 8 °C and then decays to about 0 °C rapidly.The temperature in the EF segment rises rapidly from the refrigerated temperature to the normal temperature at about 25 °C and then varies with the ambient temperature.

Adaptive Data Fusion Analysis of Table Grapes' Cold Chain Logistics
The optimal weighted data fusion effective and error are analyzed to evaluate the accuracy of the sensor data acquired by sensor nodes under the whole table grapes' cold chain logistics.The mean square error and weight coefficients were calculated at the sensor node every data acquisition interval and then transmitted to the remote control center via the GPRS in the network coordinator according to the scenario's setup.Figure 6 describes the temperature and relative humidity with surface fitting by the MATLAB software (MathWorks Incorporated, Natick, MA, USA) after the data fusion.
Both of them are relatively stable during the cold chain logistics transportation.According to Figures 5 and 6, the relative humidity rises from the normal relative humidity to the refrigerated relative humidity at about 92% as the temperature decays from the normal temperature to the refrigeration temperature at about −2 °C.Then, they keep the relative stable condition in the preservation storage process until the table grapes' loading.The relative humidity decays from the refrigerated relative humidity to the normal relative humidity at about 64% as the temperature rises from the refrigerated temperature to the normal temperature at about 25 °C for the table grapes' unloading.The performance results of the fused temperature and relative humidity in the cold chain, compared to the arithmetic mean, are shown in Table 2.The mean absolute error and mean relative error of the temperature data are 0.06 °C and 8.61% and the relative humidity data are 0.12% and 0.23%, respectively, is more accurate than the arithmetic mean.However, the run time of AOW is longer than that of arithmetic mean, and the mean battery charge status is 93.2% of the arithmetic mean and 91.5% of the AOW, respectively, after 15 days' transportation in the cold chain.These may be caused by the adaptive weight coefficients' calculation.However, the run time and mean battery charge status meet the actual real-time application requirements in the cold chain logistics [6,34].The results suggest that the adaptive optimal weighted data fusion could fuse the sensor data, accurately, efficiently and adaptively, which reflects the real-time data dynamic characteristic in the refrigeration truck during the whole cold chain logistics of table grapes.

Firmness Analysis of Table Grapes' Cold Chain Logistics
The chart of the firmness of table grapes in the cold chain is shown in Figure 7. Firmness decreases over time during the cold chain logistics, and the rate of firmness loss differed significantly.The higher the temperature, the faster the firmness loss was.The results indicate that the transparency of the table grapes' cold chain logistics is improved by the analysis of the dynamic temperature and firmness quality of the table grapes' cold chain, which ensure the preservation quality and safety of table grapes during the cold chain logistics.

Conclusions
This paper aims to study the effect of table grapes' quality property in cold chain logistics for improving the transparency and traceability of the cold chain logistics and ensuring the table grapes' quality and safety.WSN and AOW are applied to demonstrate the temperature and relative humidity characteristics in the table grapes' cold chain logistics.
WSN technology enables real-time sensor data acquisition by the wireless network infrastructure in the field of cold chain logistics.The AOW method enables the sensor data to be transmitted to the remote control center in an adaptive way and reflects the acquired sensor data with high accuracy and efficiency.
The cold chain process, firmness quality and adaptive data fusion of temperature and relative humidity were evaluated.The results indicate that the WSN and AOW methods could effectively reflect the real-time temperature and relative humidity information and quality propriety, improve the transparency and traceability in the cold chain and ensure the preservation quality and safety of table grapes.The AOW performance analysis shows that the AOW, whose mean absolute error and mean relative error of the temperature data are 0.06 °C and 8.61% and relative humidity data are 0.12% and 0.23%, respectively, could fuse the sensor data accurately, efficiently and adaptively and meet the actual application requirements.
Although WSN and AOW have been combined to evaluate the adaptive temperature and relative humidity fusion of the table grapes' cold chain logistics in this study, theses methodologies could be exploited by future researchers or practitioners in improving the monitoring methods to perform wider cold chain monitoring tasks.

Figure 1 .
Figure 1.Diagram of the sensor node and network coordinator hardware.GPRS, general packet radio service.

Figure 2 .
Figure 2. Flow chart of the optimal weighted data fusion in the sensor node.

Figure 3 .
Figure 3.The sensor nodes and coordinator deployment at the refrigerated truck.

Figure 4 .
Figure 4. Process of table grapes' cold chain logistics.

Figure 5 .
Figure 5.The curve of the temperature in the table grapes' cold chain logistics.

Figure 6 .
Figure 6.Temperature and relative humidity in the cold chain logistics after data fusion.

Figure 7 .
Figure 7. Firmness of table grapes in the cold chain.

Table 1 .
Cold chain logistics process of table grapes.

Table grapes
are transported in a low and stable temperature and relative humidity condition.Temperature of 0 °C or lower and relative humidity of 90% or higher with about 5 days or more.
7 Unloading Table grapes are unloaded for sale.About 6 h or lower.8Sale Table grapes are sold in the market.Temperature and relative humidity varied with the ambient temperature.

Table 2 .
Performance of the adaptive optimal weighted data fusion (AOW) compared to the arithmetic mean.