Abstract:
Abstract: Fermentation is one of the key steps for the flavor in black tea processing. However, the traditional evaluation of fermentation grade can often be time-consuming, labor-intensive, and inaccurate at present, depending on the subjective sensory for the color observing and the flavor smelling. Since the change of color dominates the fermentation degree, machine vision can be expected to accurately and timely detect the optimum condition of fermentation in black tea processing. Nevertheless, the real-time image acquisition is still lacking so far, due mainly to the high humidity of processing workshop during tea fermentation. Herein, a real-time image acquisition system was designed for the black tea fermentation under the high humidity conditions. The high-efficient system consisted of an industrial camera, lens, defogging and moisture-proof device, surface light source, fixed bracket, vision software platform, and industrial computer. Specifically, a heating and mist elimination device was used as an upper and lower detachable aluminum alloy shell (length × width × height, 120 × 65 × 68 mm) and two end caps. Among them, three components were soldered, including an opening (50 × 45 mm) in the center of one end cover of the shell, the electrode strip resistance (9-10 Ω), and the wires. The high-temperature resistant insulating transparent glue was used to fix the electrodes on the short side of the ITO coated glass (length × width × height, 55 × 50 ×1.1 mm), where the glass surface resistance with the electrode strip was about 10 Ω. As such, a heating and defogging device was formed to fix the glass on the end cover of the central window. The 12.4 MP color CMOS vision system was equipped with the industrial cameras and the gigabit ethernet interface for 1Gbps bandwidth. The cameras were synchronized with the hardware and software triggers. C mount type was selected to connect the low-distortion 8 mm and 6 MP lens for the machine vision cameras. The specific procedure was as follows. The industrial camera was firstly fixed on one L-shaped bracket, and another was on the sidewall of the aluminum alloy shell by two screws, where the two brackets were interlocked, and the lens was 23 mm away from the ITO coated glass. Three outlet holes with the diameters of 20, 15, and 15 mm were opened on the other end cover, which was used for the outlet of the camera net cable, power cable, and heating power cable, respectively. The outlet and screw fastening positions were then sealed with the high-temperature resistant insulating transparent adhesive. The image acquisition device was fixed for the surface light source on the machine vision bracket. The curtains of the tea fermentation room were drawn to prevent the change of sunlight intensity, then the power of all devices was turned on to adjust the voltage of 6-6.5V in the heating and defogging device. The vision software platform was run for the white balance of the camera once, and then turned off the automatic exposure mode to select the image saving format and continuous trigger for the acquisition mode and the image acquisition interval. The camera was mounted over the surface of the tea, and then manually focused at a distance of about 145 mm. The results demonstrated that the machine vision system was efficient to capture the change of color of tea shoots, leaves, buds, and stem during tea fermentation. 1564 fermentation leaves images were selected to combine with the sensory evaluation and the variations in the color and smell of fermentation leaves. Four datasets were classified with the quality labels: light-, semi-, well-, and over- fermented. The datasets was then divided into the training set and test set, according to the ratio of 7:3. The training set was used to establish the deep learning model by the MobileNetV3 and Vision Transformer. The test set was used to evaluate the classification performance of the model, where the average prediction accuracy reached up to 95.68%. More importantly, a visualization software was also conducted to predict the fermentation grade of black tea using the deep learning. Consequently, the image acquisition system can be expected to acquire the real-time images of fermented leaves under the high humidity and fog environment. The finding can also provide a strong reference for the fermentation evaluation during black tea processing.