Servicios
Descargas
Buscar
Idiomas
P. Completa
Volume estimation of unbroken soybeans samples using digital image processing techniques
JorgeE. Villaverde; M. Cleva
JorgeE. Villaverde; M. Cleva
Volume estimation of unbroken soybeans samples using digital image processing techniques
RIA. Revista de Investigaciones Agropecuarias, vol. 50, núm. 1, pp. 8-13, 2024
Instituto Nacional de Tecnología Agropecuaria
resúmenes
secciones
referencias
imágenes

Abstract: The calculation of volume of different oilseed grains through computational models has demonstrated its effectiveness and efficiency. In the present work, the model has been extended to allow calculations of the soybean volume. The model proposes that each grain of the sample is assimilated to a parallelepiped with main axes L (length), W (width) and T (thickness). The L and W values are determined from the Feret distances of the image, and the thickness is assumed to be proportional to the width of the grain. The proportionality constant k is calculated by using the formula of the model and validated against the experimental volume of the samples, fielding a confidence or percentual relative deviation. The model developed approximates soybean volume with a confidence of 1.25%, using low-cost hardware for image acquisition and moderate computational resources.

Keywords: grain morphology, Feret distance, ImageJ.

Resumen: El cálculo del volumen de diferentes granos de oleaginosas a través de modelos computacionales ha demostrado efectividad y eficiencia. En el presente trabajo, el modelo se ha ampliado para permitir cálculos del volumen de soja. En el modelo propuesto, cada grano de la muestra se asimila a un paralelepípedo con ejes principales L (largo), W (ancho) y T (espesor). Los valores L y W se determinan a partir de las distancias de Feret de la imagen y se supone que el espesor es proporcional al ancho del grano. La constante de proporcionalidad k se calcula utilizando la fórmula del modelo y se valida frente al volumen experimental de las muestras, con una confianza o desviación relativa porcentual. El modelo desarrollado aproxima el volumen de soja con una confianza del 1,25% utilizando hardware de bajo costo para la adquisición de imágenes y recursos computacionales moderados.

Palabras clave: morfología del grano, distancia de Feret, imagenJ.

Carátula del artículo

Artículos

Volume estimation of unbroken soybeans samples using digital image processing techniques

JorgeE. Villaverde
Universidad Tecnológica Nacional, Facultad Regional, Argentina
M. Cleva
Universidad Tecnológica Nacional, Facultad Regional, Argentina
RIA. Revista de Investigaciones Agropecuarias, vol. 50, núm. 1, pp. 8-13, 2024
Instituto Nacional de Tecnología Agropecuaria
INTRODUCTION

In the last decades, soybean production has been relevant in most agro-industrial countries (Hamza et al., 2024; Pagano and Miransari, 2016; Da Costa et al., 2011). Therefore, food quality is a paramount feature in agricultural technology. Recent advances in computer vision have made this technology ubiquitous to processing vast amounts of data in cloud environments (Alharbi and Aldossary (2021); Van der Merwe et al., 2010).

Experimental object volume determination can be performed using the toluene displacement method (Mohsenin, 1986). Volume determination is a rutinary task and is related to other quality indicators such as density. This method is based on Archimedes’ principle, and it consists of using a pycnometer with toluene for volume determinations. Toluene is used instead of water because its surface tension is 25 times lower and it is not absorbed by grain. However, the use of toluene requires an adequate laboratory configuration and special techniques due to its high toxicity. Moreover, this determination causes each processed sample to be modified, making impossible to reuse it for other purposes.

In the case of soybeans, there are studies that have already experimentally determined their physical properties (Deshpande et al., 1993), which present us with a framework to validate the veracity and accuracy of our results. Generally, for grains and seeds, a magnitude similar to density known as hectoliter weight is used, which is defined as the weight in kilograms of a level container of grains with a volume of 100 liters or its proportional value. For example, for rice grains, the hectoliter weight is a good estimation of both the physical quality of the grain and the milling quality (Garnero, 2012). However, this magnitude, also known as bulk density, could have been used to approximate volume; however, it is not very effective for measuring grain density. Its determination is carried out with a Schopper-type balance, and the measurement of the magnitude takes into account the inter-grain spaces that affect the volume measurement, giving a lower density value. The difficulty in determining the density of a grain sample on a routine basis could be due to the complexity of determining the volume of a grain sample in a simple and non-destructive manner (Ferrari et al., 2021; Cleva et al., 2017).

Previous works have proposed using this method to approximate the volume of different grains through digital image processing techniques (Ferrari et al., 2021; Cleva et al., 2017). In this regard, this work aims to expand the spectrum applied to different grains and to validate the method adjustment/correction, as well as to verify its correct application through digital image processing techniques.

Recently, mathematical models similar to the one presented in this work have been used to calculate the volume of soybeans (Miranda et al., 2022; Nevavuori et al., 2019; Sadeghi-Tehran et al., 2019). Moreover, Zhao et al. (2021) presented a model to detect soybeans by means of deep convolutional neural networks (Deep Convolutional Neural-Networks), although capable of detecting seed defects in real time unlike the the model we used, they do not focus on the calculation of seed properties.

Kaliniewicz et al. (2022) have also presented a similar approach for volume determination of seeds, using seed dimension and approximation of a constant (or volume coefficient) that best fits different species with complex shapes and sizes. They used a pycnometer as well to determine the real volume of seeds and as a parameter to calculate the coefficient of volume. Our model differs in the determination of the dimensions of the seeds (in this case, soybeans) and in the way we calculate the approximation.

The aim of this study is to introduce a methodology for volume approximation of a soybean sample using soybean grain geometric model and simple software calculations. It requires a digital scale, a desktop scanner and Digital Image Processing techniques applied to the digital image of the sample. The methodology uses a geometric model of the soybean that allows its volume to be determined proportionally to the product of the square of the width and the length of the grain. The proportionality constant is obtained experimentally, while the width and length values are obtained through Digital Image Processing algorithms.

MATERIALS AND METHODS

Model description

Figure 1 shows a three-dimensional representation of a soybean grain. It shows the way in which a parallelepiped whose length Li (length), Wi (width) and Ti (thickness) coincide with the magnitudes of the grain can be approximated. Its volume can be described by equation (1).



Figure 1. Three-dimensional representation of a soybean.



Equation 1: Parallelepiped volume approximation.

Where soybean grain volume (Vi) can be expressed as a total volume fraction of the parallelepiped, and ki being this fraction. Therefore, ki ≤ 1. On the other hand, taking into account the shape of the soybeans, equation (2) can be derived.



Equation 2: Soybean observation.

When the grain rests on a flat surface, a plane is generated by lengths Wi and Li that are parallel to the plane of support, which validates the assumption that Wi is greater than Ti. Thus, when a scanner is used and the grains are placed in the tray, it records an image for each grain in which Wi and Li are always visible. Taking this into consideration, we can yield Equation 3 as a proposed thickness approximation.



Equation 3: Proposed thickness approximation.

Then, replacing (3) in (1) we get (4).



Equation 4: Replacement of.

Where,



Equation 5: k unification.

Therefore, for a sample of n grains, the total sample volume obtained by digital image processing, Vpdi, can be presented as:



Equation 6: Volume approximation using image processing technique.

In this model, it is assumed that this constant does not vary between different grain dimensions as long as they are unbroken.

Determination of the constant k of the model

For a sample of n grains, the experimental volume Vexp is determined using the toluene displacement method (Mohsenin, 1986). Similarly, between the experimental volume Vexp and the sample volume Vpdi , the adjustment constant k can be determined as shown in equation 7.



Equation 7: k determination by volume approximation.

The length Li for each grain is obtained as the maximum length of what is called the Feret diameter, which is defined as the distance between two parallel tangent lines on opposite sides of the grain boundary (Merkus, 2009). The maximum distance, which is perpendicular to the previous one between opposite points of the contour, is taken as width Wi. The determination of these distances is carried out using image processing techniques.

With the value of the constant k determined, the expression in equation 6 is used to calculate the volume of the sample. Since the volume of the grain is smaller than that of the parallelepiped that contains it, the value of the constant k must be less than unity.

Samples preparation

The soybean grain samples were extracted from a commercial package. A total of 9 samples, with 100 whole grains without visible cracks each, were prepared (figure 2), making a total of 900 grains. The selection of these grains was carried out at random for all cases, and they were extracted from a single package. The samples were visually inspected with the aid of a magnifying glass, and the number of grains in the samples were selected to fit on the document table of the scanner.

Each sample consisted of 100 grains. Their masses were determined with a Denver Instrument model MXX 612 digital lab scale with a precision of 0.01 grams. This determination is necessary for the calculation of the experimental volume required in the toluene displacement method. From the total number of samples, 5 were used to determine the proportionality constant k, and the remaining 4 were used to validate the proposed model.



Figure 2. Sample being processed (100 grains).

Image acquisition

To acquire the soybean images, a Hewlett Packard G3110 scanner was used. The images were scanned using 300 dots per inches (DPI) and processed using ImageJ®[1] software afterwards (Broeke et al., 2015). ImageJ® is a Java based open-source software developed by the National Institutes of Health for scientific research. This software was designed with an extensible architecture via Java plugin, which allows the incorporation of new functionality. It has also the ability of providing macros to record repeatable use actions that can be later applied to other images, simulating a program that can process images (Haeri and Haeri, 2015).

1 https://imagej.net/

Before using this software, the first step was separating the images into RGB channels and selecting the one that generated more contrast between the grains and the background of the image. As shown in Figure 3, the red channel was selected for all images, since it was a better fit. We can see in figure 3(b) that its histogram presents a better contrast, and it will yield a cleaner image binarization.

Afterwards, image binarization was perform in order to reduce the image quality to an 8-bit image using the threshold of 109 over 255. This process produced images 4(a) and 4(b), where we can see the red channel binarization process and the contour detection af terwards.

Once the image has been binarized, we can apply the analysis of particles to calculate the Feret maximum and minimum dis­tances, which will be traduced to length and width of the grain (Broeke et al., 2015; Cleva et al., 2017).



Figure 3. Image Channel separation.

RESULTS

Table 1 presents, for each sample, the total number of grains that make it up, its experimentally determined volume , the sum of the square of the width times the length , and the corresponding constant k. Finally, the value of the constant k and its standard deviation are calculated.



Figure 4. Image pre-processing.



Table 1. Measured and calculated parameters for the analyzed samples.



Table 2. Volume results obtained by image processing and by tolue­ne displacement for control samples.

As it is shown in table 1, the value of the constant k has a standard deviation of the order of 1.2% of the average value. In all cases, the value of the constant k was less than unity as previously mentioned.



Equation 8: Percentual Relative Deviation.

Table 2 shows the results of the model using the control sam­ples for validation purposes. This table shows that the Percen­tage Relative Deviation of the control samples yields 1.25%, resulting in a good approximation by the control group.

DISCUSSION AND CONCLUSIONS

This work presents a method for calculating the volume of soybeans using digital image processing techniques, a desktop scanner, and minimal computational requirements.

The proposed approximation model yields results with a 1.2% stand deviation, making it accurate enough to be used in the industry. The method is safe, fast, non-destructive, robust, op­erator-independent, low-cost, and easy to implement. Another characteristic of the proposed method is that it does not require complex hardware configurations nor calibration processes; thus, its implementation does not present operational difficulties.

The development of geometric models for determining the volume of grains has already been used by the authors of this work. In contrast to previous studies, this model only works with whole soybeans. However, it is estimated that the work methodology is applicable to other types of grains and seeds, a procedure that is being carried out.

Material suplementario
REFERENCES
ALHARBI, H.A.; ALDOSSARY, M. 2021. Energy-efficient edge-fog-cloud architecture for iot-based smart agriculture environment. IEEE Access, 9:110480-110492.
BROEKE, J.; PÉREZ, J.M.M.; PASCAU, J. 2015. Image processing with Im­ageJ. Packt Publishing Ltd.
CLEVA, M.S.; SAMPALLO, G.M.; RODRIGUES DA FONSECA, C.; AQUINO, D.C.; LISKA, D.O.; VENTRE, F.R. 2017. Método para la determinación de la densidad de una muestra de granos enteros de alubia por procesamiento digital de imágenes. RIA. Revista de investigaciones agropecuarias, 43(2):144-148.
DA COSTA, M.L.; DORR, A.C.; DOS REYS, M.A.; STRASSBURGER, R. 2011. Strategies adopted by agro-industry complex of soybean players in para­guay. CEP, 97015:900.
DE CARVALHO MIRANDA, M. C.; AONO, A.H.; PINHEIRO, J.B. 2022. A novel image-based approach for soybean seed phenotyping using machine learn­ing techniques. Crop Science.
DESHPANDE, S.; BAL, S.; OJHA, T. 1993. Physical properties of soybean. Journal of Agricultural Engineering Research, 56(2):89-98.
FERRARI, E.; QUIRIBAN, A.; GILI, A.; PICCA, A.; REPOLLO, R. 2021. Caracteri­zación morfológica del grano de triticale (x triticosecale wittmack) mediante procesamiento y análisis de imágenes digitales. RIA. Revista de investiga­ciones agropecuarias, 47(2):232-239.
GARNERO, S. 2012. Calidad intrínseca de los granos en la poscosecha. Technical report, Universidad Tecnológica Nacional.
GOMES, J.F.S.; LETA, F.R. 2012. Applications of computer vision techni­ques in the agriculture and food industry: a review. European Food Research and Technology, 235(6):989-1000.
GÓMEZ-RÍOS, A.; TABIK, S.; LUENGO, J.; SHIHAVUDDIN, A.; KRAWCZYK, B.; HERRERA, F. 2019. Towards highly accurate coral texture images classi­fication using deep convolutional neural networks and data augmentation. Expert Systems with Applications, 118:315-328.
HAERI, M.; HAERI, M. 2015. ImageJ plugin for analysis of porous scaffolds used in tissue engineering. Journal of Open Research Software, 3(1).
HAMZA, M.; BASIT, A.; SHEHZADI, I.; TUFAIL, U.; HASSAN, A.; HUSSAIN, T.; SIDDIQUE, M.; HAYAT, H. 2024. Global impact of soybean production: A review. Asian Journal of Biochemistry, Genetics and Molecular Biology, 16:12-20.
KALINIEWICZ, Z.; CHOSZCZ, D.; LIPIŃSKI, A. 2022. Determination of seed volume based on selected seed dimensions. Applied Sciences, 12(18).
MERKUS, H. 2009. Particle Size Measurements: Fundamentals, Practice, Quality. Particle Technology Series. Springer Netherlands.
MOHSENIN, N. 1986. Physical Properties of Plant and Animal Materials: Structure, Physical Characteristics, and Mechanical Properties. Structure, Physical Characteristics, and Mechanical Properti. Gordon and Breach.
NEVAVUORI, P.; NARRA, N.; LIPPING, T. 2019. Crop yield prediction with deep convolutional neural networks. Computers and Electronics in Agricul­ture, 163:104859.
PAGANO, M.C.; MIRANSARI, M. 2016. 1 - the importance of soybean pro­duction worldwide. In: MIRANSARI, M. (editor). Abiotic and Biotic Stresses in Soybean Production. Academic Press, San Diego. 1-26 pp.
SADEGHI-TEHRAN, P.; VIRLET, N.; AMPE, E.M.; REYNS, P.; HAWKESFORD, M.J. 2019. Deepcount: In-field automatic quantification of wheat spikes using simple linear iterative clustering and deep convolutional neural net­works. Frontiers in Plant Science, 10.
VAN DER MERWE, J.; RAMAKRISHNAN, K.; FAIRCHILD, M.; FLAVEL, A.; HOULE, J.; LAGAR-CAVILLA, H. A.; MULLIGAN, J. 2010. Towards a ubiqui­tous cloud computing infrastructure. 17th IEEE Workshop on Local & Metro­politan Area Networks (LANMAN). 1-6 pp.
ZHAO, G.; QUAN, L.; LI, H.; FENG, H.; LI, S.; ZHANG, S.; LIU, R. 2021. Real-time recognition system of soybean seed full-surface defects based on deep learning. Computers and Electronics in Agriculture, 187:106230.
Notas


Figure 1. Three-dimensional representation of a soybean.


Equation 1: Parallelepiped volume approximation.


Equation 2: Soybean observation.


Equation 3: Proposed thickness approximation.


Equation 4: Replacement of.


Equation 5: k unification.


Equation 6: Volume approximation using image processing technique.


Equation 7: k determination by volume approximation.


Figure 2. Sample being processed (100 grains).


Figure 3. Image Channel separation.


Figure 4. Image pre-processing.


Table 1. Measured and calculated parameters for the analyzed samples.


Table 2. Volume results obtained by image processing and by tolue­ne displacement for control samples.


Equation 8: Percentual Relative Deviation.
Buscar:
Contexto
Descargar
Todas
Imágenes
Visor de artículos científicos generados a partir de XML-JATS por Redalyc