Keywords

1 Introduction

Multiple studies are underway to automate the sanding operation using industrial robots [1]. Advances in this area require further knowledge and modelling of the robotic sanding process, considering the operating conditions and material properties. According to Gurau [2], the results of surface roughness evaluation on processed wood vary depending on many factors, such as: wood species, cut direction, structural elements of the wood, moisture content, operating conditions and measuring instrument.

Wood has a strong anisotropy, making the process’s influence on the piece’s roughness challenging to investigate. However, Medium Density Fibreboards (MDF) are more homogeneous materials, with no distinction in the fibre directions [3]. This characteristic makes it an appropriate material to investigate the influence of the operating conditions on the surface quality, reducing the variability in the results.

Gurau & Irle [4] reviewed surface roughness evaluation methods, indicating that wood products have no standardised procedure for calculating the amplitude parameters. A less explored field is non-conventional techniques for estimating wood roughness based on two-dimensional images.

Techniques based on two-dimensional images make possible fast, low-cost results, and allow easy integration into inspection lines or intelligent manufacturing devices. Ghodrati et al. [5] proposed a roughness evaluation method for plastic parts using edge detection algorithms in images, showing a high correlation between the features extracted from the images and the standardised roughness parameters, but it also presented variations at different resolutions. Gadelmawla [6] used features extracted from the grey-level co-occurrence matrix to estimate the surface roughness of turned parts. However, this technique is highly dependent on the illumination conditions.

Based on the background, there still needs to be a consensus on applying machine vision algorithms to evaluate surface roughness. There is also a gap in the literature on applying this algorithm in wood and its derivatives. To reduce this gap, we propose to evaluate the application of image-based algorithms to estimate surface roughness parameters in wood parts processed by robotic sanding.

2 Methodology

We proposed a method based on features using the grey-level co-occurrence matrix, applied to images processed with edge detection algorithms to reduce illumination effects. Then we evaluate Pearson’s r between the features and the roughness parameters.

2.1 Experimental Trials

The robotic sanding station consists of a servomotor-driven sander integrated with a structure mounted on the flange of a UR10e collaborative robot. The sanding station processed 15 MDF specimens (180 × 110 × 15 [mm3]) with the same operating conditions, except for sanding grit size, with levels P80, P120 and P240. The three types of circular sandpaper were 3M™ Cubitron™ II Hookit™ 127 [mm] diameter, with perforations for particle suction. The general conditions of the experimental trials were:

  • a normal force of 20 [N], controlled by the collaborative robot;

  • a rotational speed of 2000 [rpm] on the servomotor; and,

  • a feed rate of 0.02 [m/s], defined through a linear movement of the robot.

The total number of specimens was subdivided into three groups of five: the first group was processed with sandpaper P80, the second with P120 and the third was processed with two passes, one P120 and one finer pass P240, considering the need for incremental sanding when using finer grits.

2.2 Roughness Measurement

We used a Mitutoyo SJ-310 contact roughness profilometer to measure surface roughness (three measurements at the centre of each specimen in the feed direction) to calculate roughness parameters (\({R}_{a}\), \({R}_{sm}\), \({R}_{sk}\), \({R}_{z}\), and \({R}_{p}\)) according to ISO 21920-2 [7].

The mechanical profile was processed in MATLAB (version R2021b). First, we applied a Gaussian S-filter to remove the small lateral scale components (short wavelength), with nesting index \({N}_{i\mathrm{s}}=0.008 \left[\mathrm{mm}\right]\). Then, we used the F-operation, consisting of the adjustment and subtraction of a sixth-order polynomial, to remove the profile shape [8]. Finally, we applied a Gaussian L-filter, which removes the large lateral scale components (long wavelength) with nesting index \({N}_{i\mathrm{c}}=2.5 \left[\mathrm{mm}\right]\).

The uncertainty was estimated by pooling the three measurements of the five processed specimens with the same grit number, calculating 95% confidence intervals using a Student’s t-distribution.

2.3 Image Acquisition and Processing

Image acquisition was executed in a darkroom with side LED illumination, with a SONY STL-A58 camera with DT 3.5–5.6/18–55 SAM II lens, focal length 30 mm, aperture F14, exposure time 10 s, ISO 100, parallel to the specimen surface at 400 mm. After capture, images were cropped in the central area of the MDF specimen with a size of 78 × 676 px, equivalent to approx. 4.5 × 39 mm2. The processing included three steps:

  • Step 1. Edge detection. Edge detection algorithms typically consider three stages: a filtering stage to remove noise; an enhancement stage to facilitate edge detection based on intensity changes; and a detection stage with a thresholding criterion to discern between points that are edges and those that are not. This work will only apply the enhancement stage because using a filter or threshold could reduce the relevant information describing the quality of the surface. We used five enhancement algorithms, three based on the first derivative of the image intensity (Roberts, Sobel, and Prewitt) and two on the second derivative (Laplacian and Laplacian of Gaussian). The derivatives are approximated by differences using convolution masks [9].

  • Step 2. Co-occurrence Matrix. The grey-level co-occurrence matrix (GLCM) [10] is widely used to analyse texture in images, it is a second-order statistical technique that estimates the probability of spatial relationship between two pixels. The co-occurrence matrix is added with its transposed, resulting in a symmetric matrix, which is then normalised. It considers a co-occurrence matrix with a maximum of 8 levels and a displacement vector of \({\varvec{d}}=\left(\mathrm{1,0}\right)\), perpendicular to the sanding marks.

  • Step 3. GLCM Features. The features are obtained according to the definitions of [10]. The five features are: Uniformity of energy (U), Contrast (C), Homogeneity (H), Correlation (Autocorrelation in this paper) (A) and Entropy (S).

3 Results

3.1 Surface Roughness

In the results, Fig. 1 shows three roughness profiles obtained with the contact roughness profilometer for each sandpaper grit and the amplitude distribution of each profile. It is possible to appreciate the reduction of profile heights as the grit size increases and the amplitude distribution that reduces its dispersion. Figure 2 shows the roughness parameter mean for each group of specimens sanded with different grit sizes. All roughness parameters show a decrease for finer grit sizes. Parameters \({R}_{a}\), \({R}_{z}\) and \({R}_{p}\), which describe the roughness profile height, present a reduction of the confidence intervals as finer grit is applied. This does not occur with \({R}_{sm}\), and neiher with the skewness \({R}_{sk}\) increases its confidence intervals with finer grits.

Fig. 1.
figure 1

Roughness profiles and amplitude distribution on sanded specimens with different grit sizes.

Fig. 2.
figure 2

Roughness parameter means.

3.2 Image Processing

We applied five edge detection algorithms to each image according to the methodology. Figure 4 shows the result after processing one image corresponding to a piece sanded with the coarser grit sandpaper (P80). As the image section corresponds to the central area of the wooden specimen, streaks resulting from the tangential speed of sanding pad rotation can be distinguished perpendicular to the operation’s feed. Figure 3 shows feature means extracted from the GLCM matrix with different edge detection algorithms for each grit size.

Fig. 3.
figure 3

Result of image processing with edge detection algorithms.

Fig. 4.
figure 4

Means of features for different edge detection algorithms and grit size.

In the case of the images resulting from the application of Roberts and the Laplacian algorithms, it is possible to distinguish a lower light intensity. We obtain a higher contrast in images enhanced with Laplacian of Gaussian algorithm.

Figure 4 shows an overlap in confidence intervals between P80 and P120 sandpaper trials where the means do not show a relevant variation in both sandpaper grit size levels. However, this does not occur with P240 sandpaper trials, in which the mean value is distinguishable from the mean values of the other two groups.

3.3 Correlations

The Pearson’s r between the features obtained from images processed with edge detection algorithms and the roughness parameters are presented in Table 1. These results show high correlation levels using edge detection algorithms combined with GLCM features.

Table 1. Correlations between features extracted from the images and roughness parameters.

When analysing the results, the highest correlations occur using the Roberts edge detection algorithm, while the best-evaluated feature corresponds to Contrast. When calculating the mean of the correlations in absolute value for each edge detection algorithm, Roberts’s algorithm has the highest result with a mean correlation of 0.93. For the features extracted from the GLCM matrix, the highest average correlation occurs in Contrast with 0.90. Equally, the Roberts algorithm and the Contrast feature have the highest absolute correlations above 0.90.

Although the high correlations suggest that the method proposed in this work is suitable for assessing the roughness of sanded MDF parts, further tests with images at different resolutions and illumination modes are needed. In addition, the methodology needs to be repeated in other areas of the specimen surface to assess whether the behaviour is the same. Another relevant aspect necessary to evaluate are the configurations of the GLCM hyperparameters, such as the displacement vector and the number of levels.

4 Conclusion

This work studied a new surface roughness evaluation method employing images of the surface of sanded MDF specimens. We obtain high correlations with the standardised roughness parameters, suggesting that the Roberts algorithm and the Contrast feature are suitable for evaluating the surface quality of sanded wooden parts.

Before establishing models to obtain roughness parameters based on the proposed methodology, it is necessary to optimise the vision system and evaluate the algorithms’ sensitivity with different resolutions and illumination conditions. However, based on the current results, we realised that this methodology based on the capture and processing of two-dimensional images has the potential to improve performance and quality control in the wood sanding industry.