Next Article in Journal
Stable Gaze Tracking with Filtering Based on Internet of Things
Previous Article in Journal
Diagnostic Classification of Cases of Canine Leishmaniasis Using Machine Learning
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On the Acquisition of High-Quality Digital Images and Extraction of Effective Color Information for Soil Water Content Testing

1
State Key Laboratory of Geomechanics and Geotechnical Engineering, Institute of Rock and Soil Mechanics, Chinese Academy of Sciences, Wuhan 430071, China
2
Guangxi Key Laboratory of Rock and Soil Mechanics and Engineering, Guilin University of Technology, Guilin 541004, China
*
Author to whom correspondence should be addressed.
Sensors 2022, 22(9), 3130; https://doi.org/10.3390/s22093130
Submission received: 10 March 2022 / Revised: 31 March 2022 / Accepted: 12 April 2022 / Published: 20 April 2022
(This article belongs to the Section Remote Sensors)

Abstract

:
Soil water content (SWC) is a critical indicator for engineering construction, crop production, and the hydrologic cycle. The rapid and accurate assessment of SWC is of great importance. At present, digital images are becoming increasingly popular in environmental monitoring and soil property analysis owing to the advantages of non-destructiveness, cheapness, and high-efficiency. However, the capture of high-quality digital image and effective color information acquisition is challenging. For this reason, a photographic platform with an integrated experimental structure configuration was designed to yield high-quality soil images. The detrimental parameters of the platform including type and intensity of the light source and the camera shooting angle were determined after systematic exploration. A new method based on Gaussian fitting gray histogram for extracting RGB image feature parameters was proposed and validated. The correlation between 21 characteristic parameters of five color spaces (RGB, HLS, CIEXYZ, CIELAB, and CIELUV) and SWC was investigated. The model for the relationship between characteristic parameters and SWC was constructed by using least squares regression (LSR), stepwise regression (STR), and partial least squares regression (PLSR). Findings showed that the camera platform equipped with 45° illumination D65 light source, 90° shooting angle, 1900~2500 lx surface illumination, and operating at ambient temperature difference of 5 °C could produce highly reproducible and stable soil color information. The effects of image scale had a great influence on color feature extraction. The entire area of soil image, i.e., 3,000,000 pixels, was chosen in conjunction with a new method for obtaining color features, which is beneficial to eliminate the interference of uneven lightness and micro-topography of soil samples. For the five color spaces and related 21 characteristic parameters, RGB and CIEXYZ spaces and characteristic parameter of lightness both exhibited the strongest correlation with SWC. The PLSR model based on soil specimen images ID had an excellent predictive accuracy and the best stability (R2 = 0.999, RMSE = 0.236). This study showed the potential of the application of color information of digital images to predict SWC in agriculture and geotechnical engineering.

1. Introduction

Soil water content (SWC), one of the key parameters for research in agriculture, geotechnical engineering, and environmental science, normally with high spatio-temporal variability, has great influences on various soil properties such as hydraulic conductivity, compressibility, shear strength, and infiltration capacity [1,2]. Therefore, accurate and real-time monitoring of SWC is of great significance to crop yields, construction safety, and the hydrological cycle process [3,4,5,6,7,8].
There are numerous methods for determining SWC such as the oven-dried method, TDR (time-domain reflectometry), neutron meter for discrete point’s measurement, and the remote sensing method for large-scale monitoring of dynamic changes [3,9,10]. Among them, the oven-dried method is considered the standard due to its accuracy [4], but it consumes energy and time as it requires steps including sampling, drying, and weighting. TDR has high installation requirements, complex operation, and is vulnerable to salt, cracks, and other interference [4]. The neutron probe has a broad range of measurements and reliable accuracy, but the presence of radioactive sources is potentially hazardous to health and the environment [11]. The remote sensing method is heavily dependent on climate and vegetation cover [3]. The advantages and drawbacks of each method are detailed in Table 1. With the accelerating trend of intellectualization and unmanned operation, traditional methods are no longer suitable for massive acquisition and management of SWC data, so it is imperative to explore simpler and faster methods of determining SWC. Digital cameras have received high attention in proximal soil sensors and environmental science with the advantages of low cost, convenience, and high resolution. Studies have shown that the color of soil digital images gradually became darker with increasing moisture, so soil digital images have the potential to be a novel indirect method for predicting SWC [12,13,14].
The development of the high-resolution camera including digital cameras, smartphones, and those of image processing software has opened up another cheap approach for quantitative acquisition and analysis of soil color information. This overcomes the subjectivity of visual comparison (Munsell color charts, MCCs) and addresses the problem of high cost and tedious operation of the spectrometer [15,16]. Studies on this topic have been performed by many scholars. For example, Gómez-Robledo et al. [16] realized the digital recording and analysis of soil color by using a smartphone under controllable lighting conditions; Fan et al. [17] used smartphones to obtain the soil color under sunny and cloudy light, and the measurement accuracy was the same as that obtained by MCCs, confirming the importance of light sources for obtaining soil color; Yang et al. [18] employed the halogen lamp as a light source and a smartphone to collect soil images, so as to predict the content of soil organic matter (SOM); Fu et al. [19] predicted SOM under varying moisture based on the color parameters derived from soil image, quantified the effect of water content on the accuracy of the SOM prediction model, and concluded that the influence of water content on the accuracy of the SOM prediction model was significant when the water content exceeded 10%; Swetha et al. [20] utilized LED lights to illuminate the darkroom and the soil image obtained by a smartphone to realize rapid soil texture classification; Han et al. [21] proposed a soil classification method using RGB signals of soil images collected by smartphones and auxiliary accessories under a light source of ring LED; Heil et al. [22] used the digital camera to obtain soil images under LED lighting and developed a microscale map of iron oxides and organic carbon content based on the color parameters CIE a* and HSV V. Persson [11] analyzed the soil color in RGB and HSV space and found that there was a high correlation between parameters S, V, and water content, then established a reliable SWC estimation model with color information; Yoshimoto et al. [23] found that the relationship between saturation and image color brightness could be expressed by a quadratic function with high fitting degree, and also proposed a method to obtain a large-area soil saturation contour map by image processing; Zanetti et al. [24] applied artificial neural network (ANN) to describe the relationship between tropical soil image and water content; dos Santos et al. [13] established a linear relationship between median values of R (red), G (green), and B (blue) bands in RGB color space of soil images and SWCs, and accordingly, the non-destructive testing of SWC was realized; Gadi et al. [25] proposed a reliable quartic polynomial model for describing the relationship between the mean gray value of soil image and SWC; Belfort et al. [26] drew a high-resolution map of water content for unsaturated porous media by analysis of digital images; Lu et al. [27] utilized UAVs (unmanned aerial vehicles) to collect the visible spectrum image of steppe surface and found that the brightness value of images was significantly related to water content and the topsoil moisture could be estimated by the brightness value of UAV-visible images combined with vegetation coverage.
The above-mentioned studies confirmed that by establishing models between soil image parameters and soil attributes (moisture content, organic matter, iron oxide, etc.), we can not only obtain soil attribute information quantitatively and quickly but also realize digital mapping [18,19,22,23,26,27]. However, at present for the research on methods of water content prediction by soil color information, some aspects have not been investigated, such as how to control the main equipment parameters (intensity and type of light source) so as to obtain stable and high-quality digital images and how to extract effective color information. This results in low prediction accuracy and few practical applications in geotechnical engineering; soil tends to be darker in response to increased moisture but becomes lighter again at the highest water content; thus, linear models are unable to fully capture and interpret the complex relationship between soil color and water content.
Therefore, to obtain high-quality digital images of soil and extract effective color information for SWC testing, in this study, (1) an equipment with an integrated experimental structure configuration for collecting high-quality soil images was designed, and comparative tests were conducted to identify the core parameters of the equipment, including the type and intensity of light source and the shooting angle. (2) A new method based on Gaussian distribution fitting to extract characteristic parameters was proposed, and its feasibility in soil image processing was verified. (3) The piecewise models for water content prediction were developed from the variables related to water content selected by correlation analysis from 21 characteristic parameters.

2. Materials and Methods

2.1. Soil Sampling and Preparation

Two types of soil for calibration and experimentation were used. One was montmorillonite of calcium (Soil 1a) and sodium (Soil 1b) with a grayish white color, homogeneous texture, and strong reflection, while the latter was collected from Nanyang, Henan Province China (32°59′23′′ N, 112°31′42′′ E). To avoid the interference of organic matter, the superficial dark brown culivated soil (about 1 m in depth) was removed before sampling, and the second layer of yellowish brown expansive soil (Soil 2, about 1~2 m in depth) was the mainly studied soil sample. Samples were air-dried, ground, and passed through a 2 mm sieve to remove impurities such as roots and large particles of soil-like loess concretion. Soil 1a and Soil 1b were packed into two ring knives (61.8 mm diameter, 2 mm height) as calibration specimens with an even surface. Similarly, a portion of Soil 2 at a known initial water content was taken and mixed with a calculated amount of distilled water by a sprayer, then target water contents could be reached, ranging from 0% to 36% in 1% increments. Four groups of parallel samples, 31 in each group and 124 in total, were prepared. All the specimens were rapidly wrapped with cling film after being removed without touching the surfaces, then put into the moisturizing cabinet for storage. Some digital images of the soil with different water contents are shown in Figure 1.

2.2. Photographic Parameters

2.2.1. Equipment and Platform for Photography

In order to obtain high quality images of soil specimens, a high-resolution Canon camera 5D Mark II with less differences between channels was employed, which could more accurately reflect the ratio between the channels [28], and its CMOS image sensors could be primarily used for visible range (typically from 400~700 nm wavelength band) of the electromagnetic spectrums [29]. Some related parameters are summarized in Table 2. The color of same object acquired by a camera in different shooting environments can be significantly different [30] because the image sensor is not capable of correctly distinguishing color under any light intensity. To avoid this uncertainty, a test device shown in Figure 2 was designed, which consisted of four main components: box with replaceable light source, load table, support frame, and camera. The load table, a rough background plate, was fixed at a 45° angle. The light source was mounted approximately 37 cm above soil specimens, and the camera was also adjusted to a distance of about 60 cm from soil specimens. After being approximately measured using a tape, the distances were kept unchanged (Figure 2). All tests were conducted in a dark room to ensure that all light signals received by the camera were from the box.

2.2.2. Type and Intensity of Light Source

To select an optimal light source, a comparison test was performed. Three kinds of common artificial light sources with same color temperature (6500 K) and power (18 W), i.e., standard light source (D65), ordinary fluorescent tubes, and LED bulbs (recorded as L1, L2, and L3, respectively) were compared. In order to check the reproducibility and stability of the three light sources for the soil color collected by the digital camera, the spatial positions of all the components were fixed. Before and after the replacement of light source, the distance and angle between the light source and the soil specimen were kept unchanged. Calibration specimen was used for light source determination. Under the illumination by the three light sources, each specimen was photographed for four times with three consecutive shots each time. After shooting, the specimen was sealed to keep moisture. The comparison test lasted for 2 h.
An intensity test was performed. D65 source, in agreement with the standard ASTM (2008) for the MCCs determination [31], with different powers was used to achieve different light intensities. To quantify the change in light intensity more intuitively, illuminance of specimen surface was used to evaluate the light intensity change. The illuminance was measured by a photometer (Taiwan TES-1330A) with a range of 20,000 lx and a minimum resolution of 0.01 lx. For each soil specimen, digital images with 10 different illuminance levels could be obtained.

2.2.3. Shooting Angle and Ambient Temperature

When the distance between the camera lens and the surface of soil specimen is fixed, the angle α between the center line of lens and the surface of soil specimen also affects the collection of soil color information. According to bidirectional reflectance distribution function (BRDF), the reflectance is related to the angle of the signal received by the sensor [32]. Due to the limitation of experimental setup, only two angles of 45° and 90° were chosen for the comparative test since they were easy to modify and retain stability. The shooting angle was adjusted by a telescopic and rotating device to keep constant the light intensity on the surface of soil specimen. During the test, the lens plane was adjusted to be parallel to the surface of the calibration specimen. When the center line of the lens and the center of the specimen coincided, an image of the calibration specimen with α 90° was captured. Adjusting α to 45°, the above procedures were repeated for another image.
The ambient temperature is also a variable that affects the acquisition of soil color information. Fixing the device parameters and spatial location, images of calibrated soil specimens were captured at different temperatures (range: 17.60~29.80 °C, gradient: ~1 °C).

2.3. Image Acquisition and Optimal Representative Area

Before the soil specimen image was taken, the light source was preheated for about 15 min, then the photography platform was assembled, and α was adjusted to 90°. The camera was set up according to the parameters in Table 2. A gray card of X-Rite was used for the camera’s white balance. The specimen to be photographed was placed on a fixed position on the load table, and each soil specimen was photographed three times, with a total number of 372 (31 × 4 × 3) images. After image collection, the specimens were dried and weighed for SWC measurement.
Since soil is a heterogeneous material, its image must have size and space effect. The worse the surface homogeneity of a specimen is, the greater the influence on the characteristic parameters acquired from soil images is. In order to eliminate this uncertainty as much as possible, two images with a large difference in surface homogeneity of soil specimens were chosen and the sampling radius was increased, with a total of 27 grades. Simultaneously, statistical parameters including the mean and variance of image color for different sampling areas were calculated. The relationship between the sampling areas and their statistical parameters was analyzed and shown in a curve. Two areas related to the stability points at which the curves tends to be smooth could be identified, and the larger area could be determined as the optimal sampling area.

2.4. Image Processing and Characteristic Parameter Extraction

The procedure for image processing is shown in Figure 3a. MATLAB (Math Works, USA, 2019b version) and Image J based on java (National Institutes of Health, USA) is shown in detail in Figure 3. The hardware was a Dell computer with Intel(R) Core(TM) i7-11700 @ 2.50GHz CPU, 16.0 GB RAM, NVIDIA GeForce GT 730 and running under Windows 10 64-bit. A rectangular region (2050 × 2050 pixel) was cut from the center of the original image, and threshold segmentation was applied to extract the global information of the soil specimen. The remaining useless area of the image was masked with a white color (R = G = B = 255). After that, the effective soil color information of the image was about 3,000,000 pixels. The process of characteristic parameter extraction is shown in Figure 3b. In the process of sample preparation, there is non-soil information including holes and shadows on the surface of soil specimens. Although the non-soil information occupies a small part of the image, the distribution is discrete (Figure 1). Therefore, a simple method to obtain the characteristic parameters by fitting image gray histogram of each RGB channel with Gaussian distribution (Equation (1)) was proposed. Firstly, the RGB components of three images of same water content were separated, which were later averaged to produce an average value of each component under this water content. This could eliminate the camera jitter and inherent noise interference from the image sensor. Finally, Equation (1) was used to fit gray histogram of RGB components of image one by one.
f x   =   A exp x     μ 2 / 2 σ 2   +   β
where μ, σ, and A are the mean, variance, and fitting parameters of Gaussian distribution, respectively. Each parameter contains three channels of RGB, namely μR, μG, and μB, σR, σG, and σB, and AR, AG, and AB. Among them, the three fitting parameters were divided by 2050 (pixel size along the row or column in the cut images mentioned above) for normalization to avoid the influence of image size. μ and σ are independent of each other, representing the overall distribution and dispersion of soil color, respectively. Furthermore, the auxiliary features σ and A avoid the phenomenon in which a soil image has different characteristic parameters or different soil images have the same characteristic parameters. Nine characteristic parameters are used as the ID of an image of a soil specimen, which can realize the unification of characteristic parameters of different soil specimen images. In order to contain the information of R, G, and B bands, equal weighted gray value ((Gv = R + G + B)/3) as a characteristic parameter has been applied in studies [7,25], and the variations in the sensitivity of different wavelength spectra to changes in water content was not taken into account. However, prior studies have shown that the sensitivity of the R band to water content is the strongest, followed by the G band and the B band [13,33]. Therefore, following the conversion method of RGB space to XYZ space, different weights were given to R, G, and B when μM was calculated by Equation (2).
μ M   =   3 μ R   +   2 μ G   +   μ B
where the weight of R, G, and B was set as 1/2, 1/3, and 1/6, respectively, according to the appropriate descending rate of R, G, and B with increasing water content in steep falling section. As the RGB color space is device-dependent, it was converted to the device-independent CIE family (CIELAB, CIELUV, and CIEXYZ) and the Munsell system (HLS). To distinguish the three L (lightness, range from black to white) components in the CIELAB, CIELUV, and HLS, they were denoted as L-AB, L-UV, and L-HS, respectively. The other parameters were A (chroma, redness (positive a*) or greenness (negative a*)), B (chrome, yellowness (positive b*) or blueness (negative b*)), U (chroma, redness (positive u*) or greenness (negative u*)), V (chroma, yellowness (positive v*) or blueness (negative v*)), X (color information), Y (lightness), Z (color information), H (hue), and S (saturation). More details about the above conversion between different color spaces and the parameter definition can be found in studies [34,35]. A total of 21 characteristic parameters were extracted from the five color spaces, which were classified into four categories: hue, saturation, lightness, and auxiliary parameters. For the convenience of subsequent modeling, all image IDs were stored in a matrix Ei (Equation (3)), and the water content was also incorporated into a vector Θi (Equation (4)).
E i   =   μ R i σ R i A R i μ G i σ G i A G i μ B i σ B i A B i   ( i   =   1 , 2 , 3 n )
Θ i   =   θ i   ( i   =   1 , 2 , 3 n )
where and n is the number of samples.
The Gaussian fitting of RGB channels is shown in Figure 4, which shows that μ with statistical significance has the capacity to resist external disturbance than the mean value and the median value, and shows more representativeness. The curves of characteristic parameters from the RGB color space versus water content is shown in Figure 5, which also confirms a strong stability of the characteristic parameters. To distinguish the applicability of the 21 characteristic parameters to SWC prediction, the best prediction variables were screened by correlation analysis.

2.5. Modeling and Evaluation

The model construction is presented in Figure 3c. The full sets of 124 samples were randomly divided into 75% training sets (n = 92) and 25% validation sets (n = 32). Three sets had the following statistical characteristics: for the full sets, the SWC mean was 16.08%, the standard deviation (SD) 10.61, and the range 35.71%; for the training sets, the mean was 15.97%, the SD 10.18, and the range 35.71%; for the validation sets, the mean was 16.72%, the SD 10.87, and the range 34.66%. The sets had approximate distributions, which could minimize the effect of database deviation on the model [36]. In the correlation analysis, the characteristic parameters with high correlation coefficients were selected to establish the SWC prediction models of least squares regression (LSR), stepwise regression (STR), and partial least squares regression (PLSR). STR is based on the probability of the F-test to select the input variables. PLSR linearly combines input variables. STR and PLSR can both effectively avoid the effects of input variable collinearity and redundancy on the model [37,38]. To quantitatively evaluate the performance of a model, R2 and RMSE (Equation (5)) were used as the indexes.
RMSE   =   1 n i   =   1 n y p     y m
where yp is the predicted value, ym is the measured value, and n is the number of samples. The closer R2 tends to 1, the more reliable a model is, and the more RMSE tends to 0, the higher the accuracy of the model is [39,40].

3. Results and Discussion

3.1. Sampling Area of Image Analysis

Figure 6c,d shows the RGB mean and variance of two images of Soil 2 specimen (Image 1 and Image 2) with different sampling areas. Despite the fact that they have the same degree of compaction, the surface of two specimens exhibited different surface conditions owing to sample processing. Compared to Image 2, Image 1 was darker and showed more obvious holes randomly distributed on the surface, resulting in a smaller RGB mean value and larger variance. As the sampling area increased, the RGB mean of the 2 images decreased first and became steady later, while the RGB variance increased first then became steady (Figure 6c,d). It was evident that a minimum representative area exists for color information extraction of soil image. Specifically, the RGB mean became stable when the sampling area was greater than 1,750,000 pixels. Furthermore, when the sampling area was greater than 2,000,000 pixels, the variance was approximately stable. Therefore, if the sampling area was greater than 2,000,000 pixels, the statistical parameters derived from different sampling areas for Images 1 and 2 could maintain constant level around 91, 127, 13, and 6, respectively. In this case, the extracted characteristic parameters could effectively avoid the influence of image size and also eliminate the influence of brightness inconsistency caused by instrument assembly error. The minimum sampling area depends on the soil type and preparation method. The minimum sampling area for these tested soil specimens was about 2,000,000 pixels, close to the whole region of specimen. Since the image pixels were not so large that the efficiency of image data processing was not affected, the whole region (3,000,000 pixels) of a specimen was selected as the optimal sampling area if no partition processing was needed.

3.2. Influence of Light Source

3.2.1. Reproducibility

To quantitatively analyze the change of soil color photographed at different times under same condition, the color difference (ΔEab*) calculated by Equation (6) [41] was introduced. It is an important index to measure the similarity between colors.
Δ E a b *   =   s q r t ( ( Δ L * ) 2   +   ( ( Δ a * ) 2 )   +   ( ( Δ b * ) 2 ) )
where ΔL*, Δa*, and Δb* are the difference of measured color parameters from the corresponding parameters at different times. Figure 7 shows the scatter diagram of four ΔEab* of calibrated specimen under the radiation of three light sources. Overall, the ΔEab* of calibration specimen under the illumination of three light sources was less than three [42]. Among them, the ΔEab* under L1 illumination was less than 0.5, and that under L2 and L3 illumination was larger, as well as the dispersion of data. The order of ΔEab* was L1 < L2 < L3. In contrast, the color reproducibility and accuracy of digital image of calibration specimen under L1 illumination was the highest.

3.2.2. Stability

The images of Soil 1b taken under the three light sources at different times are shown in Figure 8a. The image under L1 illumination was brighter, that under L2 illumination was darker, and that under L3 illumination was in the middle. The change of characteristic parameters from the RGB color space can be seen in Figure 8b. The RG component of the image illumination by L1 did not change, and the B component fluctuated slightly at the fourth time. Under L2 illumination, the RGB components fluctuated irregularly. Under L3 illumination, the RG components fluctuated a little, and the B component remained unchanged. The μA ((μR + μG + μB)/3)) had a similar result (Figure 8c). Therefore, the order of image stability of soil specimen captured under the three light sources for long time was L1 > L2 > L3. Comprehensively, L1 was the best light source.

3.2.3. Optimal Illuminance

The relationship between the characteristic parameters from the RGB color space for specimen image and illuminance is shown in Figure 9. The characteristic parameters increased with the increase in illuminance, and there was an obvious linear relationship (R2 ≥ 0.98), which is consistent with Han et al. [21]. This means that the characteristic parameters of soil image under different illuminance could be converted to that under the reference illuminance.
The relationship between the gray histogram of image and the specimen surface illumination is shown in Figure 10. It shows that with the increase in illumination, the brightness of image increased. The 10 gray histograms could be roughly divided into three groups: group I (1250~1290 lx), group II (1920~1980 lx), and group III (2410~2570 lx). The gray levels of three groups were 50~100, 75~125, and 100~165, respectively, and the frequency peaks were about 800, 800, and 1100, respectively. The gray histogram for the first two groups is on the left side of the diagram, their frequency peaks are close to each other, and images are dark. The frequency peaks and kurtosis of group III changed more sharply compared with groups I and II. When the illuminance was less than 1900 lx, for the soil specimens with high water content or dark color, the gray histogram of their images continued to move left, and the gray level interval that could be used to describe the variation of water content was narrowed. When the illuminance was greater than 2500 lx, for soil specimens with smooth surface or water film, the collected image was prone to distortion due to overexposure, its gray histogram shifted right, and the frequency peak and kurtosis increased significantly. Meanwhile, the effective color information including water content in the image was reduced. In short, if the illuminance was selected in the range of 1900~2500 lx, the gray histogram of soil specimen image distributed in the middle. This illuminance range could cover a wider range of water content change, so it could be used as optimal surface illuminance for soil color acquisition. However, the optimal illuminance was related to light source type, image acquisition distance, and soil type.

3.3. Shooting Angle and Ambient Temperature

3.3.1. Shooting Angle

The characteristic parameters and surface gray level of calibration soil specimen are shown in Figure 11. The characteristic parameters of the soil image at a shooting angle of 45° were larger than that at 90°. The reason is that the visible spectrum signal collected by the camera at the former angle is mainly derived from the specular reflection of soil surface while that at the latter angle is derived from the diffuse reflection of soil surface, so the former reflection signal is stronger than the latter [43]. Figure 11 also shows that the soil specimen image collected at a 45° shooting angle contained more unnecessary information such as shadows and holes on the soil specimen surface, which affected the color authenticity and interfered with the subsequent image processing.
The color spatial distribution of soil specimen at a 90° shooting angle is shown in Figure 12. Extracting gray levels along the longitudinal rectangle (rectangle 1) and transverse rectangle (rectangle 2) from the original image, the gray level curves could be obtained as shown in Figure 12b,c. Both curves had local fluctuations caused by surface micro-topography due to sample preparation. Curves in Figure 12b were almost horizontal, and those in Figure 12c rose slowly. The closer the region was to the top of soil specimen, the higher the gray level was. The reason for this uneven brightness distribution is that the distance between the light source and the soil specimen was different. However, this can be corrected or eliminated by selecting an appropriate image representation area and extracting characteristic parameters with statistical significance. According to the above-mentioned analysis, a 90° shooting angle was more suitable for image acquisition of soil. Since the incident angle of the light source and the shooting angle of an image have a significant influence on the reflectivity received by a camera and the anisotropy of reflectivity may contain more water content information of a soil [44,45], the relationship between characteristic parameters and water content under different shooting angles should be explored further.

3.3.2. Ambient Temperature

The statistical results of characteristic parameters from the RGB color space, as shown in Table 3, varied with ambient temperature (T/°C). Overall, the characteristic parameters did not change significantly with temperature. When the range of temperature reached 12.2 °C, the varying range of characteristic parameters (μR, μG, and μB) was about six. If the temperature variation of ambient was less than 5 °C, the change of characteristic parameters of the same soil specimen would be limited within about ±2 (the corresponding water content fluctuated about 0.5~1.0%). If the variation of ambient temperature further increased, the image sensor of digital camera would also produce more thermal noise and reduce the signal-to-noise ratio of an image [46]. In this case, temperature correction should be considered in the image process.

3.4. Response of Characteristic Parameters to Water Content

The relationship between the characteristic parameters from the RGB color space and water content is shown in Figure 13. The overall trend of the curve was to descend first then ascend, consistent with the results in the literature [13,47,48]. The curve could be roughly divided into a falling section and a rising section. When water content θ was less than 15%, the curve was in falling section, which could be further subdivided into a slow falling section (θ < 6%) and a steep falling section (θ = 6–15%), and μR, μG, and μB decreased first slowly then rapidly with the increase in water content. When θ was greater than 15%, μR, μG, and μB increased with the increasing water content, called a rising section.
Different parameters from color spaces have different angles to represent soil color information, and their capabilities to predict water content are also different. Parameters with a strong correlation to water content can be selected by correlation analysis. The correlation coefficient matrix between 21 characteristic parameters and overall water content is shown in Figure 14. Except AG, AB, and U, the correlation between other characteristic parameters and water content reached a significant level (p < 0.01) and was mainly negative, indicating that the color information of soil digital image had the potential to predict water content. For color spaces, the characteristic parameters of CIEXYZ and RGB color spaces had the strongest correlation with water content, which were −0.68(X), −0.69(Y), and −0.72(Z) and −0.62(μR), −0.62(μG), and −0.71(μB), respectively, but the former had lower self-correlation. For the 21 characteristic parameters, the correlation between brightness and water content was more significant, which was obviously better than that between parameters of hue, saturation, auxiliary, and water content.
The correlation coefficient matrix related to the curves of the rising section in Figure 12 was analyzed separately, as shown in Figure 15 (the correlation coefficient lower than 0.85 is not given). Likewise, the correlation between the characteristic parameters of CIEXYZ and RGB color spaces and the water content was still the strongest but the significance level was further improved (p < 0.001), so the piecewise modeling method was more reasonable.

3.5. Evaluation of Model Accuracy

According to the correlation analysis, six main characteristic parameters (correlation coefficient greater than 0.8) and six auxiliary characteristic parameters from RGB and CIEXYZ color spaces could be selected as input variables. A piecewise prediction model for water content was built by using LSR, STR, and PLSR. The prediction results of models are shown in Table 4 and Figure 16. Overall, the six prediction models produced R2 values ranging from 0.983 to 0.999, and the RMSE values ranged from 1.66 to 0.236, confirming that the piecewise linear models had outstanding prediction capacities. Because of close values of R2 for the models, only RMSE could be used as a valid evaluation indicator. The models using characteristic parameters in the RGB color space with generally lower RMSE produced better results than those in the CIEXYZ color space. The results demonstrated that the RGB color space was most suitable for training the SWC prediction models for the studied soil. In contrast, the prediction accuracy of the LSR model was the worst (RMSE > 1.3). This may be attributed to the loss of discriminative information by using only one channel as the input parameter of the model. The STR model produced better prediction after introducing more input variables. The RMSE of the STR model was reduced to half of that of the LSR model. The PLSR model using soil images ID represented the lowest dispersion (RMSE = 0.236) between the measured and predicted values of SWC, closely following the 1:1 line (Figure 16). As can be seen from Figure 16a,b, the prediction accuracy of the model in the slow falling section was low, which may be due to the insignificant change of reflectivity. Compared with other similar methods [12,13,49], the prediction error of models in this paper was small. The reason is that in this experiment, we strictly controlled the quality of the soil images, extracted the characteristic parameters with statistical significance by Gaussian fitting, and considered piecewise modeling, which significantly reduced the interference of external factors on soil image acquisition and data processing error. As the image sensor of the camera could only receive visible spectrum (400~700 nm) signals, there is still a gap in the prediction accuracy compared with the visible and near-infrared spectral (400~2500 nm) methods [50]. However, this deficiency can be further compensated by expanding the database and introducing a machine learning algorithm.
Despite extensive studies on soil color and its properties, the quantitative link between SWC and soil color is still inadequately comprehended. This paper highlighted the features and advantages of combining equipment for collecting high-quality soil images with piecewise models for non-destructive SWC prediction. Nevertheless, there were several associated limitations for practical applications. First of all, it is difficult to implement field applications due to the limitation of light source conditions for soil image acquisition. Moreover, in order to simplify the influencing factors and eliminate the interference of impurities in soil (such as roots and loess solidification), the surface soil was removed. The approach for soil color in SWC prediction has to be investigated in depth for soils with complex impurities so that it may be used more effectively in agriculture. In addition, this method may only be appropriate for the same type of soil with a similar composition of minerals and particles. More studies should focus on different soils. Despite the existing constraints on experimental settings and soil samples, it was verified in this paper that rapid, non-destructive, and accurate SWC prediction can be performed in a controlled condition.
This study was only a preliminary exploration. In a subsequent stage, the pre-trained color water content model may be employed in a laboratory evaporation experiment of expansive soil. The dynamic variations of surface water content can be obtained by recording continuous soil images, which can provide not only potential technical support for revealing the evaporation law but also necessary data support for understanding the relationship between crack development and water content.

4. Conclusions

In this study, the influence of light sources, light intensities, ambient temperature, and shooting angles on acquisition of stable and high-quality digital images for SWC testing was investigated. The characteristic parameters with statistical significance were extracted. The correlation between characteristic parameters of color spaces and water content was analyzed, then a related regression model for SWC prediction was developed. The following conclusions could be drawn:
(1)
D65 standard light source with incident angle of 45°, image shooting angle of 90°, surface illumination of soil specimen of 1900~2500 lx, temperature variation within 5 °C, and other test parameters were comprehensively determined. The determinations could effectively overcome the distortion of visible spectrum signals in acquisition so as to obtain soil digital images with high reproducibility and stability.
(2)
The image sampling area had a great impact on the extracted characteristic parameters. An optimal area could be determined for a soil image by analyzing the change of the mean and variance of color under different sampling areas. In this study, the whole image (3,000,000 pixels) was chosen for Gaussian fitting to obtain the characteristic parameters with statistical significance, which could weaken the influence of spatial variation of image color and the surface micro-topography, but the anti-interference performance of the parameters was significantly better than that of the mean and median values.
(3)
Within the tested range of water content, the lightness of CIEXYZ and RGB color spaces had the strongest correlation with the water content of soil specimen among the 21 characteristic parameters of five color spaces; and X, Y, Z, μR, μG, and μB had a significant correlation with water content. If the relationship between SWC and characteristic parameters is considered in sections, the significance level between them can be further improved.
(4)
SWC prediction model based on the RGB color space had the highest accuracy, and the PLSR model based on soil specimen image IDs was the best, which was most suitable for SWC prediction.
(5)
A new exploration was performed to improve the methods of soil digital image acquisition and color information extraction, but only an expansive soil was tested in this study. More research on SWC prediction model by color of digital images for different soils and particle sizes is needed.

Author Contributions

Conceptualization, G.L. and Y.M.; methodology, S.T.; software, S.T.; validation, G.L. and S.T. and R.C.; formal analysis, Q.Z.; investigation, G.L.; resources, G.L.; data curation, Y.M.; writing—original draft preparation, G.L., S.T. and R.C.; writing—review and editing, G.L. and S.T.; visualization, G.L.; supervision, G.L.; project administration, G.L.; funding acquisition, G.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (Grant Nos. 52179115).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Seneviratne, S.I.; Corti, T.; Davin, E.L.; Hirschi, M.; Jaeger, E.B.; Irene, L.; Orlowsky, B.; Teuling, A.J. Investigating soil moisture–climate interactions in a changing climate: A review. Earth-Sci. Rev. 2010, 99, 125–161. [Google Scholar] [CrossRef]
  2. Zhao, K.; Gao, H.; Chen, F.; Wang, R.; Qiao, X. Sandy soil moisture content measurement method based on heated fiber Bragg grating. Opt. Fiber Technol. 2021, 67, 102690. [Google Scholar] [CrossRef]
  3. Bovolenta, R.; Iacopino, A.; Passalacqua, R.; Federici, B. Field Measurements of Soil Water Content at Shallow Depths for Landslide Monitoring. Geosciences 2020, 10, 409. [Google Scholar] [CrossRef]
  4. Ainiwaer, M.; Ding, J.; Kasim, N.; Wang, J.; Wang, J. Regional scale soil moisture content estimation based on multi-source remote sensing parameters. Int. J. Remote Sens. 2020, 41, 3346–3367. [Google Scholar] [CrossRef]
  5. Yin, Z.; Lei, T.; Yan, Q.; Chen, Z.; Dong, Y. A near-infrared reflectance sensor for soil surface moisture measurement. Comput. Electron. Agric. 2013, 99, 101–107. [Google Scholar] [CrossRef]
  6. Negm, A.; Capodici, F.; Ciraolo, G.; Maltese, A.; Provenzano, G.; Rallo, G. Assessing the performance of thermal inertia and Hydrus models to estimate surface soil water content. Appl. Sci. 2017, 7, 975. [Google Scholar] [CrossRef] [Green Version]
  7. Liu, Q.; Wang, J.; Zheng, H.; Hu, T.; Zheng, J. Characterization of the Relationship between the Loess Moisture and Image Grayscale Value. Sensors 2021, 21, 7983. [Google Scholar] [CrossRef]
  8. Yan, J.; Zou, Z.; Mu, R.; Hu, X.; Zhang, J.; Zhang, W.; Su, A.; Wang, J.; Luo, T. Evaluating the stability of Outang landslide in the Three Gorges Reservoir area considering the mechanical behavior with large deformation of the slip zone. Nat. Hazards 2022. [Google Scholar] [CrossRef]
  9. Zhang, D.; Zhou, G. Estimation of soil moisture from optical and thermal remote sensing: A review. Sensors 2016, 16, 1308. [Google Scholar] [CrossRef] [Green Version]
  10. Sadeghi, M.; Babaeian, E.; Tuller, M.; Jones, S.B. The optical trapezoid model: A novel approach to remote sensing of soil moisture applied to Sentinel-2 and Landsat-8 observations. Remote Sens. Environ. 2017, 198, 52–68. [Google Scholar] [CrossRef] [Green Version]
  11. Tarantino, A.; Ridley, A.M.; Toll, D.G. Field measurement of suction, water content, and water permeability. Geotech. Geol. Eng. 2008, 26, 751–782. [Google Scholar] [CrossRef]
  12. Persson, M. Estimating surface soil moisture from soil color using image analysis. Vadose Zone J. 2005, 4, 1119–1122. [Google Scholar] [CrossRef]
  13. Dos Santos, J.F.C.; Silva, H.R.F.; Pinto, F.A.C.; Assis, I.R.d. Use of digital images to estimate soil moisture. Revista Brasileira de Engenharia Agrícola e Ambiental 2016, 20, 1051–1056. [Google Scholar] [CrossRef]
  14. O’NEAL, A.M. The effect of moisture on soil color. Soil Sci. 1923, 16, 275–280. [Google Scholar] [CrossRef]
  15. Aitkenhead, M.J.; Poggio, L.; Wardell-Johnson, D.; Coull, M.C.; Rivington, M.; Black, H.I.J.; Yacob, G.; Boke, S.; Habte, M. Estimating soil properties from smartphone imagery in Ethiopia. Comput. Electron. Agric. 2020, 171, 105322. [Google Scholar] [CrossRef]
  16. Gómez-Robledo, L.; López-Ruiz, N.; Melgosa, M.; Palma, A.J. Using the mobile phone as Munsell soil-colour sensor: An experiment under controlled illumination conditions. Comput. Electron. Agric. 2013, 99, 200–208. [Google Scholar] [CrossRef]
  17. Fan, Z.; Herrick, J.E.; Saltzman, R.; Matteis, C.; Yudina, A.; Nocella, N.; Crawford, E.; Parker, R.; Van Zee, J. Measurement of soil color: A comparison between smartphone camera and the munsell color charts. Soil Sci. Soc. Am. J. 2017, 81, 1139–1146. [Google Scholar] [CrossRef]
  18. Yang, J.; Shen, F.; Wang, T.; Luo, M.; Li, N.; Que, S. Effect of smart phone cameras on color-based prediction of soil organic matter content. Geoderma 2021, 402, 115365. [Google Scholar] [CrossRef]
  19. Fu, Y.; Taneja, P.; Lin, S.; Ji, W.; Adamchuk, V.; Daggupati, P.; Biswas, A. Predicting soil organic matter from cellular phone images under varying soil moisture. Geoderma 2019, 361, 114020. [Google Scholar] [CrossRef]
  20. Swetha, R.K.; Bende, P.; Singh, K.; Gorthi, S.; Biswas, A.; Li, B.; Weindorf, D.C.; Chakraborty, S. Predicting soil texture from smartphone-captured digital images and an application. Geoderma 2020, 376, 114562. [Google Scholar] [CrossRef]
  21. Han, P.; Dong, D.; Zhao, X.; Jiao, L.; Lang, Y. A smartphone-based soil color sensor: For soil type classification. Comput. Electron. Agric. 2016, 123, 232–241. [Google Scholar] [CrossRef]
  22. Heil, J.; Marschner, B.; Stumpe, B. Digital photography as a tool for microscale mapping of soil organic carbon and iron oxides. Catena 2020, 193, 104610. [Google Scholar] [CrossRef]
  23. Yoshimoto, N.; Orense, R.P.; Tanabe, F.; Nikkawa, N.; Hyodo, M.; Nakata, Y. Measurement of degree of saturation on model ground by digital image processing. Soils Found. 2011, 51, 167–177. [Google Scholar] [CrossRef] [Green Version]
  24. Zanetti, S.S.; Cecílio, R.A.; Alves, E.G.; Silva, V.H.; Sousa, E.F. Estimation of the moisture content of tropical soils using colour images and artificial neural networks. Catena 2015, 135, 100–106. [Google Scholar] [CrossRef]
  25. Gadi, V.K.; Garg, A.; Manogaran, I.P.; Sekharan, S.; Zhu, H.H. Understanding soil surface water content using light reflection theory: A novel color analysis technique considering variability in light intensity. J. Test. Eval. 2018, 48, 4053–4066. [Google Scholar] [CrossRef]
  26. Belfort, B.; Weill, S.; Lehmann, F. Image analysis method for the measurement of water saturation in a two-dimensional experimental flow tank. J. Hydrol. 2017, 550, 343–354. [Google Scholar] [CrossRef] [Green Version]
  27. Lu, F.; Sun, Y.; Hou, F. Using UAV Visible Images to Estimate the Soil Moisture of Steppe. Water 2020, 12, 2334. [Google Scholar] [CrossRef]
  28. Kirillova, N.P.; Zhang, Y.; Hartemink, A.E.; Zhulidova, D.A.; Artemyeva, Z.S.; Khomyakov, D.M. Calibration methods for measuring the color of moist soils with digital cameras. Catena 2021, 202, 105274. [Google Scholar] [CrossRef]
  29. Gouveia, L.C.P.; Choubey, B. Advances on CMOS image sensors. Sens. Rev. 2016, 36, 231–239. [Google Scholar] [CrossRef] [Green Version]
  30. Liu, Y.C.; Chan, W.H.; Chen, Y.Q. Automatic white balance for digital still camera. IEEE Trans. Consum. Electron. 1995, 41, 460–466. [Google Scholar]
  31. ASTM. Standard Practice for Specifying Color by the Munsell System; ASTM International: West Conshohocken, PA, USA, 2018. [Google Scholar]
  32. Cierniewski, J. Spectral Reflectance of Soil. In Remote Sensing of Soils; Springer Series in Light Scattering; Springer: Berlin, Germany, 2020; pp. 135–192. [Google Scholar]
  33. Bedidi, A.; Cervelle, B.; Madeira, J.; Pouget, M. Moisture effects on visible spectral characteristics of lateritic soils. Soil Sci. 1992, 153, 129–141. [Google Scholar] [CrossRef]
  34. Rossel, R.A.V.; Minasny, B.; Roudier, P.; McBratney, A.B. Colour space models for soil science. Geoderma 2006, 133, 320–337. [Google Scholar] [CrossRef]
  35. Ibraheem, N.A.; Hasan, M.M.; Khan, R.Z.; Mishra, P.K. Understanding color models: A review. ARPN J. Sci. Technol. 2012, 2, 265–275. [Google Scholar]
  36. Bai, X.; Chen, Y.; Chen, J.; Cui, W.; Tai, X.; Zhang, Z.; Cui, J.; Ning, J. Optimal window size selection for spectral information extraction of sampling points from UAV multispectral images for soil moisture content inversion. Comput. Electron. Agric. 2021, 190, 106456. [Google Scholar] [CrossRef]
  37. Raeesi, M.; Zolfaghari, A.A.; Yazdani, M.R.; Gorji, M.; Sabetizade, M. Prediction of soil organic matter using an inexpensive colour sensor in arid and semiarid areas of Iran. Soil Res. 2019, 57, 276–286. [Google Scholar] [CrossRef]
  38. Guo, L.; Fu, P.; Shi, T.; Chen, Y.; Zeng, C.; Zhang, H.; Wang, S. Exploring influence factors in mapping soil organic carbon on low-relief agricultural lands using time series of remote sensing data. Soil Tillage Res. 2021, 210, 104982. [Google Scholar] [CrossRef]
  39. Dong, Z.; Wang, N.; Liu, J.; Xie, J.; Han, J. Combination of machine learning and VIRS for predicting soil organic matter. J. Soils Sediments 2021, 21, 2578–2588. [Google Scholar] [CrossRef]
  40. He, Y.; Xiao, S.; Nie, P.; Dong, T.; Qu, F.; Lin, L. Research on the optimum water content of detecting soil nitrogen using near infrared sensor. Sensors 2017, 17, 2045. [Google Scholar] [CrossRef] [Green Version]
  41. Moritsuka, N.; Kawamura, K.; Tsujimoto, Y.; Rabenarivo, M.; Andriamananjara, A.; Rakotoson, T.; Razafimbelo, T. Comparison of visual and instrumental measurements of soil color with different low-cost colorimeters. Soil Sci. Plant Nutr. 2019, 65, 605–615. [Google Scholar] [CrossRef]
  42. Kirillova, N.P.; Kemp, D.B.; Artemyeva, Z.S. Colorimetric analysis of soil with flatbed scanners. Eur. J. Soil Sci. 2017, 68, 420–433. [Google Scholar] [CrossRef]
  43. Gao, C.; Xu, M.; Xu, H.; Zhou, W. Retrieving Photometric Properties and Soil Moisture Content of Tidal Flats Using Bidirectional Spectral Reflectance. Remote Sens. 2021, 13, 1402. [Google Scholar] [CrossRef]
  44. Rosendahl, S.; Casselgren, J.; Sjödahl, M. Simplified model for light scattering from granular materials with varying moisture content. Appl. Opt. 2013, 52, 4006–4012. [Google Scholar] [CrossRef] [PubMed]
  45. Roosjen, P.P.J.; Bartholomeus, H.M.; Clevers, J. Effects of soil moisture content on reflectance anisotropy—Laboratory goniometer measurements and RPV model inversions. Remote Sens. Environ. 2015, 170, 229–238. [Google Scholar] [CrossRef]
  46. Sun, H.; Ma, L.; Adeleke, N.; Zhang, Y. Background thermal noise correction methodology for average infrared radiation temperature of coal under uniaxial loading. Infrared Phys. Technol. 2017, 81, 157–165. [Google Scholar] [CrossRef]
  47. Weidong, L.; Baret, F.; Xingfa, G.; Qingxi, T.; Lanfen, Z.; Bing, Z. Relating soil surface moisture to reflectance. Remote Sens. Environ. 2002, 81, 238–246. [Google Scholar] [CrossRef]
  48. Huan-Jun, L.I.U.; Zhang, Y.Z.; Zhang, X.L.; Zhang, B.; Song, K.S.; Wang, Z.M.; Tang, N. Quantitative analysis of moisture effect on black soil reflectance. Pedosphere 2009, 19, 532–540. [Google Scholar]
  49. Sakti, M.B.G.; Ariyanto, D.P. Estimating soil moisture content using red-green-blue imagery from digital camera. In IOP Conference Series: Earth and Environmental Science; IOP Publishing: Bristol, UK, 2018; Volume 200, p. 012004. [Google Scholar]
  50. Fabre, S.; Briottet, X.; Lesaignoux, A. Estimation of soil moisture content from the spectral reflectance of bare soils in the 0.4–2.5 µm domain. Sensors 2015, 15, 3262–3281. [Google Scholar] [CrossRef]
Figure 1. Digital images of expansive soil with different water contents.
Figure 1. Digital images of expansive soil with different water contents.
Sensors 22 03130 g001
Figure 2. Testing apparatus.
Figure 2. Testing apparatus.
Sensors 22 03130 g002
Figure 3. Flow chart: (a) image processing; (b) characteristic parameter acquisition; (c) model construction.
Figure 3. Flow chart: (a) image processing; (b) characteristic parameter acquisition; (c) model construction.
Sensors 22 03130 g003
Figure 4. Gaussian fitting of RGB components.
Figure 4. Gaussian fitting of RGB components.
Sensors 22 03130 g004
Figure 5. Relationship between characteristic parameters from the RGB color space and SWC.
Figure 5. Relationship between characteristic parameters from the RGB color space and SWC.
Sensors 22 03130 g005
Figure 6. Color mean and variance of different sampling areas: (a,b) Image 1 and Image 2 with different sampling area respectively; (c,d) changes of mean and variance of color with sampling area change respectively.
Figure 6. Color mean and variance of different sampling areas: (a,b) Image 1 and Image 2 with different sampling area respectively; (c,d) changes of mean and variance of color with sampling area change respectively.
Sensors 22 03130 g006
Figure 7. Color difference (ΔEab*) of calibration soil specimen under three light sources.
Figure 7. Color difference (ΔEab*) of calibration soil specimen under three light sources.
Sensors 22 03130 g007
Figure 8. Characteristic parameters change of Soil 1b image at different times: (a) original images; (b) change of characteristic parameters from RGB color space; (c) μA change.
Figure 8. Characteristic parameters change of Soil 1b image at different times: (a) original images; (b) change of characteristic parameters from RGB color space; (c) μA change.
Sensors 22 03130 g008
Figure 9. Characteristic parameters of soil image in RGB color space under different illuminance.
Figure 9. Characteristic parameters of soil image in RGB color space under different illuminance.
Sensors 22 03130 g009
Figure 10. Image and gray scale curve under different illuminance: (a) original soil sample images; (b) image gray histograms.
Figure 10. Image and gray scale curve under different illuminance: (a) original soil sample images; (b) image gray histograms.
Sensors 22 03130 g010
Figure 11. Characteristic parameters in RGB color space under different shooting angles: (a) and (b) characteristic parameters of Soil 1 and Soil 2 respectively derived from the RGB color space; (c) distribution of surface gray scale values.
Figure 11. Characteristic parameters in RGB color space under different shooting angles: (a) and (b) characteristic parameters of Soil 1 and Soil 2 respectively derived from the RGB color space; (c) distribution of surface gray scale values.
Sensors 22 03130 g011
Figure 12. Soil image and color spatial distribution: (a) original soil image; (b) gray level of rectangle 2; (c) gray level of rectangle 1.
Figure 12. Soil image and color spatial distribution: (a) original soil image; (b) gray level of rectangle 2; (c) gray level of rectangle 1.
Sensors 22 03130 g012
Figure 13. Curves of relationships between characteristic parameters from RGB color space and SWC.
Figure 13. Curves of relationships between characteristic parameters from RGB color space and SWC.
Sensors 22 03130 g013
Figure 14. Correlation coefficient matrix between characteristic parameters and overall SWC (* and ** indicate significance at the 0.05, 0.01 level respectively; the colored numbers indicate the correlation coefficient between any two characteristic parameters; negative correlation is shown by the blue color, whereas positive correlation is indicated by the red color).
Figure 14. Correlation coefficient matrix between characteristic parameters and overall SWC (* and ** indicate significance at the 0.05, 0.01 level respectively; the colored numbers indicate the correlation coefficient between any two characteristic parameters; negative correlation is shown by the blue color, whereas positive correlation is indicated by the red color).
Sensors 22 03130 g014
Figure 15. Correlation coefficient matrix between characteristic parameters and SWC of the rising section (*** indicate significance at the 0.001 level respectively; the colored numbers indicate the correlation coefficient between any two characteristic parameters; negative correlation is shown by the blue color, whereas positive correlation is indicated by the red color).
Figure 15. Correlation coefficient matrix between characteristic parameters and SWC of the rising section (*** indicate significance at the 0.001 level respectively; the colored numbers indicate the correlation coefficient between any two characteristic parameters; negative correlation is shown by the blue color, whereas positive correlation is indicated by the red color).
Sensors 22 03130 g015
Figure 16. Validation results of different models of SWC prediction: (a) the LSR model; (b) the STR model; (c) the PLSR model.
Figure 16. Validation results of different models of SWC prediction: (a) the LSR model; (b) the STR model; (c) the PLSR model.
Sensors 22 03130 g016
Table 1. A summary of different methods to measure SWC.
Table 1. A summary of different methods to measure SWC.
MethodsAdvantagesDrawbacks
Oven-dried methodAccurate, simpleTime-consuming, destructive, labor-intensive
TDREasy, applicable for fields and model testsComplex operation, vulnerable to salt and cracks
Neutron meterBroad range of measurements, reliable accuracyRadioactive hazardous
Remote sensing methodDynamic change monitoringHeavily dependent on climate, vegetation cover
Table 2. Basic parameters of Canon 5D Mark Ⅱ.
Table 2. Basic parameters of Canon 5D Mark Ⅱ.
Effective Megapixels (pixel)Sensor Size (mm)Focal Length (mm)Shutter Speed (s)Aperture ValueISOPicture Style
5616 × 3744CMOS (35.8 × 23.9)1051/100f/4200Reliable
Table 3. Characteristic parameters at different temperatures.
Table 3. Characteristic parameters at different temperatures.
ParameterMinMaxMeanSDCv(%)Skewness
T17.6029.8023.364.0814.780.18
μR179.70185.70182.941.310.720.52
μG164.40170.30167.691.330.790.99
μB131.80139.50137.042.011.471.29
μA158.63164.70162.651.380.851.69
Table 4. Evaluation of different SWC predictive models.
Table 4. Evaluation of different SWC predictive models.
ModelThreshold ValueValidation Sets
RGBCIEXYZ
Variables or FormulaR2RMSEVariables or FormulaR2RMSE
LSRθ < 6%θ = −0.581 × μM + 93.6960.9911.345θ = −1.218 × X + 43.1780.9831.668
6% < θ < 15%θ = −0.136 × μM + 28.018θ = −0.395 × X + 18.991
θ > 15%,θ = 0.701 × μM − 56.308θ = 2.251 × X − 12.521
STRθ < 6%θ = −52.208 − 0.389 × μR − 0.134 × μG + 7.137 × σG + 1847.125 × AG0.9970.682θ = 34.559 − 0.026 × X − 1.943 × Z0.9950.769
6% < θ < 15%θ = 44.212 − 0.119 × μR + 0.015 × μG − 0.569 × σG − 320.140 × AGθ = 15.584 − 0.972 × X + 1.351 × Z
θ > 15%,θ = −100.081 + 0.239 × μR − 0.112 × μG + 3.281 × σG + 1067.108 × AGθ = −8.723 + 2.621 × X − 1.094 × Z
PLSRθ < 6%μR, μG, μB, σR, σG, σB, AR, AG, AB0.9990.236X, Y, Z0.9970.758
6% < θ < 15%
θ > 15%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Liu, G.; Tian, S.; Mo, Y.; Chen, R.; Zhao, Q. On the Acquisition of High-Quality Digital Images and Extraction of Effective Color Information for Soil Water Content Testing. Sensors 2022, 22, 3130. https://doi.org/10.3390/s22093130

AMA Style

Liu G, Tian S, Mo Y, Chen R, Zhao Q. On the Acquisition of High-Quality Digital Images and Extraction of Effective Color Information for Soil Water Content Testing. Sensors. 2022; 22(9):3130. https://doi.org/10.3390/s22093130

Chicago/Turabian Style

Liu, Guanshi, Shengkui Tian, Yankun Mo, Ruyi Chen, and Qingsong Zhao. 2022. "On the Acquisition of High-Quality Digital Images and Extraction of Effective Color Information for Soil Water Content Testing" Sensors 22, no. 9: 3130. https://doi.org/10.3390/s22093130

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop