A novel method is proposed based on the improved YOLOV5 and feeding functional area proposals to identify the feeding behaviors of nursery piglets in a complex light and different posture environment. The method consists of three steps: first, the corner coordinates of the feeding functional area were set up by using the shape characteristics of the trough proposals and the ratio of the corner point to the image width and height to separate the irregular feeding area; second, a transformer module model was introduced based on YOLOV5 for highly accurate head detection; and third, the feeding behavior was recognized and counted by calculating the proportion of the head in the located feeding area. The pig head dataset was constructed, including 5040 training sets with 54,670 piglet head boxes, and 1200 test sets, and 25,330 piglet head boxes. The improved model achieves a 5.8% increase in the mAP and a 4.7% increase in the F1 score compared with the YOLOV5s model. The model is also applied to analyze the feeding pattern of group-housed nursery pigs in 24 h continuous monitoring and finds that nursing pigs have different feeding rhythms for the day and night, with peak feeding periods at 7:00–9:00 and 15:00–17:00 and decreased feeding periods at 12:00–14:00 and 0:00–6:00. The model provides a solution for identifying and quantifying pig feeding behaviors and offers a data basis for adjusting the farm feeding scheme.
Effectively detecting the quality of blueberries is crucial for ensuring that high-quality products are supplied to the fresh market. This study developed a nondestructive method for determining the soluble solids content (SSC) of blueberry fruit by using a near-infrared hyperspectral imaging technique. The reflection hyperspectral images in the 900–1700 nm waveband range were collected from 480 fresh blueberry samples. An image analysis pipeline was developed to extract the spectrums of blueberries from the hyperspectral images. A regression model for quantifying SSC values was successfully established based on the full range of wavebands, achieving the highest of 0.8655 and the lowest RMSEP value of 0.4431 °Brix. Furthermore, three variable selection methods, namely the Successive Projections Algorithm (SPA), interval PLS (iPLS), and Genetic Algorithm (GA), were utilized to identify the feature wavebands for modeling. The models calibrated from feature wavebands generated an RMSEP of 0.4643 °Brix, 0.4791 °Brix, and 0.4764 °Brix, as well as the of 0.8507, 0.8397, and 0.8420 for SPA, iPLS, and GA, respectively. Furthermore, a pseudo-color distribution diagram of the SSC values within blueberries was successfully generated based on established models. This study demonstrated a novel approach for blueberry quality detection and inspection by jointly using hyperspectral imaging and machine learning methodologies. It can serve as a valuable reference for the development of grading equipment systems and portable testing devices for fruit quality assurance.
Cold-storage containers are widely used in cold-chain logistics transportation due to their energy saving, environmental protection, and low operating cost. The uniformity of temperature distribution is significant in agricultural-product storage and transportation. This paper explored temperature distribution in the container by numerical simulation, which included ventilation velocity and the fan location. Numerical model/numerical simulation showed good agreement with experimental data in terms of temporal and spatial air temperature distribution. Results showed that the cooling rate improved as velocity increased, and temperature at 45 min was the lowest, when velocity was 16 m/s. Temperature-distribution uniformity in the compartment became worse with the increase in ventilation velocity, but its lowest temperature decreased with a velocity increase. With regard to fan energy consumption, the cooling rate of the cooling module, and temperature-field distribution in the product area, velocity of 12 m/s was best. Temperature standard deviation and nonuniformity coefficient in the container were 0.87 and 2.1, respectively, when fans were located in the top four corners of the container. Compared with before, the average temperature in the box was decreased by 0.12 °C, and the inhomogeneity coefficient decreased by more than twofold. The results of this paper provide a better understanding of temperature distribution in cold-storage containers, which helps to optimize their structure and parameters.
The soluble solids content (SSC) is one of the important evaluation indicators for the internal quality of fresh grapes. However, the current non-destructive detection method based on hyperspectral imaging (HSI) relies on manual operation and is relatively cumbersome, making it difficult to achieve automatic detection in batches. Therefore, in this study, we aimed to conduct research on an improved non-destructive detection method for the SSC of bunch-harvested grapes. This study took the Shine-Muscat grape as the research object. Using Mask R-CNN to establish a grape image segmentation model based on deep learning (DL) applied to near-infrared hyperspectral images (400~1000 nm), 35 characteristic wavelengths were selected using Monte Carlo Uninformative Variable Elimination (MCUVE) to establish a prediction model for SSC. Based on the two abovementioned models, the improved non-destructive detection method for the SSC of bunch-harvested grapes was validated. The comprehensive evaluation index F1 of the image segmentation model was 95.34%. The Rm2 and RMSEM of the SSC prediction model were 0.8705 and 0.5696 Brix%, respectively, while the Rp2 and RMSEP were 0.8755 and 0.9177 Brix%, respectively. The non-destructive detection speed of the improved method was 16.6 times that of the existing method. These results prove that the improved non-destructive detection method for the SSC of bunch-harvested grapes based on DL and HSI is feasible and efficient.
South China has a climate characteristic of high temperature and high humidity, and the temperature and relative humidity inside a Venlo greenhouse are higher than those in the atmosphere. This paper studied the effect of ventilation conditions on the spatial and temporal distribution of temperature and relative humidity in a Venlo greenhouse. Two ventilation conditions, with and without a fan-pad system, were studied. A GA + BP neural network was applied to predict the temperature and relative humidity in fan-pad ventilation in the greenhouse. The results show that the temperature in the Venlo greenhouse ranged from 15.8 °C to 48.5 °C, and the relative humidity ranged from 24.9% to 100% during the tomato-planting cycle. The percentage of days when the temperature exceeded 35 °C was 67.3%, and the percentage of days when the average relative humidity exceeded 70% was 83.7%. The maximum temperature differences between the three heights under NV (Natural Ventilation) and FPV (Fan-pad Ventilation) conditions were 3.4 °C and 4.5 °C, respectively. The maximum relative humidity differences between the three heights under NV and FPV conditions were 8.4% and 21.7%, respectively. The maximum temperature difference in the longitudinal section under the FPV conditions was 3.2 °C, while the relative humidity was 11.4%. The cooling efficiency of the fan-pad system ranged from 16.6% to 70.2%. The non-uniform coefficients of the temperature under the FPV conditions were higher than those under the NV conditions, while the nonuniform coefficients of the relative humidity were the highest during the day. The R2, MAE, MAPE and RMSE of the temperature-testing model were 0.91, 0.94, 0.11, and 1.33, respectively, while those of relative humidity model were 0.93, 2.83, 0.10, and 3.86, respectively. The results provide a reference for the design and management of Venlo greenhouses in South China.
(1) Background: Forklifts are used widely in factories, but it shows the problem of large uncertainties when using an RGB-D sensor to recognize and locate pallets in warehouse environments. To enhance the flexibility of current autonomous forklifts in unstructured environments, the improved labeled template matching algorithm was proposed to recognize pallets. (2) Methods: The algorithm comprises four steps: (i) classifying each pixel of a color image with the color feature and obtaining the category matrix; (ii) building a labeled template containing the goods, pallet, and ground category information; (iii) compressing and matching the category matrix and template to determine the region of the pallet; and (iv) extracting the pallet pose from information in respect of the pallet feet. (3) Results: The results show that the proposed algorithm is robust against environmental influences and obstacles and that it can precisely recognize and segment multiple pallets in a warehouse with a 92.6% detection rate. The time consumptions were 72.44, 85.45, 117.63, and 182.84 ms for detection distances of 1000, 2000, 3000, and 4000 mm, respectively. (4) Conclusions: Both static and dynamic experiments were conducted, and the results demonstrate that the detection accuracy is directly related to the detection angle and distance.