Next Article in Journal
MIMO Dielectric Resonator Antennas for 5G Applications: A Review
Next Article in Special Issue
Classification and Recognition of Goat Movement Behavior Based on SL-WOA-XGBoost
Previous Article in Journal
Recognition of Human Mental Stress Using Machine Learning: A Case Study on Refugees
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Deconvolutional Neural Network for Generating Spray Trajectory of Shoe Soles

1
School of Mechanical Engineering, Hubei University of Technology, Wuhan 430068, China
2
Hubei Modern Manufacturing Quality Engineering Key Laboratory, Hubei University of Technology, Wuhan 430068, China
3
Zhejiang Innovation Institute of Robotics, Hangzhou 310018, China
4
School of Automation, Southeast University, Nanjing 214135, China
5
Ningbo Cixing Co., Ltd., Ningbo 315300, China
*
Author to whom correspondence should be addressed.
Electronics 2023, 12(16), 3470; https://doi.org/10.3390/electronics12163470
Submission received: 21 June 2023 / Revised: 6 August 2023 / Accepted: 14 August 2023 / Published: 16 August 2023
(This article belongs to the Special Issue Applications of Deep Learning Techniques)

Abstract

:
The footwear industry is moving towards automation and intellectualization. To overcome the drawbacks of the high-cost and low-efficiency traditional manual shoe sole gluing process, automatic methods were utilized for generating spray trajectories. Currently, most of the reported automatic methods for generating spray trajectories mainly rely on the outer contour bias method. However, the glue is only applied to the area near the edge/contour of shoe soles and the fixed offset distance in the outer contour bias method cannot adapt to the immense amount of shoe styles with high precision and achieve applicability for irregular and unique sole designs. An intuitive yet logical approach to fulfill the requirements is to utilize the deconvolutional neural network for generating shoe sole spray trajectories. In this work, we treated the glue trajectory prediction as an image-to-image prediction and established a novel deconvolutional neural network to generate shoe sole spray trajectories. The as-proposed deconvolutional neural network for generating spray trajectory offered significant advantages over the existing bias-based methods, including: (1) based on the novel deconvolutional neural network, the proposed method for generating shoe sole spray trajectories exhibits greater applicability to irregular shoe soles, which improves the spray accuracy without compromising the spray efficiency; (2) we discard all the pooling layers, which only consist of convolutional and deconvolutional layers, to preserve more spatial information and achieve higher spray accuracy through end-to-end mapping from shoe sole images to shoe sole spray trajectories, resulting in an improved spray accuracy without sacrificing spray efficiency. The Dice similarity coefficient and Hausdorff distance were used as the evaluation metrics to assess the performance of our approach. Our proposed method showed an ultra-high accuracy and precision with a Dice similarity coefficient over 99.25% and a Hausdorff distance less than 1.2 mm, which are ~10% higher than the spray accuracy of other reported traditional methods. Our findings would bring significant improvements to the field of automatic shoe sole spray trajectory generation, which has the potential to promote the utilization of intelligent technologies in the footwear industry.

1. Introduction

According to the World Footwear Yearbook, there were 24.3 billion pairs of shoes produced globally in 2019, with China accounting for 55.5% of the total production, producing a total of 13.48 billion pairs of shoes, which was significantly higher than any other country. As the footwear industry continues to develop, the footwear industry has been undergoing a significant transformation towards intelligent and digitalized production methods due to the high cost and low efficiency of traditional manual shoe sole production [1]. Therefore, it is crucial for enterprises to adopt innovative production methods to cope with changes in resources and markets. Combining the contour curve of shoe soles with robot spraying technology can significantly enhance the productivity and efficiency of the footwear industry [2]. As part of this transformation, automatic shoe sole spraying has gained prominence for its potential to improve production efficiency and accuracy.
However, most of the existing methods for generating spray trajectories during auto-mated shoe sole spraying suffer from several significant drawbacks and limitations [3,4]. For example, J. Wu et al. put forward a block maximum algorithm to accurately obtain the sole profile. In their groundbreaking research, they constructed an algorithm to precisely capture the intricate details of the shoe sole [3]. G. Xu et al. demonstrated an automatic interpolation algorithm for the NURBS (Non-Uniform Rational B-Splines) trajectory of shoe sole spraying based on a 7-DOF (degrees of freedom) robot. The as-proposed algorithm solved the problem of sparse and incomplete trajectory points of the shoe sole when extracting robot motion trajectories [4]. The above-mentioned methods assumed that the shoes had regular shapes and patterns, which made their methods unsuitable for generating accurate spray trajectories for irregular or unique soles and failed to handle the complexities and variations in sole designs. In this regard, the corresponding works have non-negligible limitations for the effective and practical applications in the designing of irregular and unique soles, which hampers their ability to meet the diverse style demands of modern footwear. Additionally, the existing algorithms for generating sole spray trajectories merely rely on simplistic reconstruction techniques, such as linear interpolation or simple geometric transformations, leading to an inadequate reconstruction accuracy. The resulting inaccurate representations of the spray trajectories would cause suboptimal spraying results, which could compromise the quality and durability of the adhesive bonding between the sole and upper material.
Currently, the advanced intelligent technologies, e.g., deep learning [5], computer vision [6], and big data analytics [7], have shown great potential to be labor-saving technologies in a variety of industrial conditions. In particular, deep learning, a subfield of machine learning that involves building and training multi-layered neural networks, is used to simulate learning and decision-making processes of human brain. The core idea behind deep learning is to automatically learn feature representations from raw data without relying on traditional handcrafted feature engineering. The main advantage of deep learning lies in its ability to automatically learn meaningful representations from the data, making it suitable for tasks such as image and speech recognition, natural language processing, and recommendation systems. For example, L. Bi et al. constructed deep learning algorithms to help doctors diagnose [8]. W. Wang et al. applied the deep learning technique to remote sensing image segmentation [9]. Hussain A et al. have applied deep learning to human activity detection [10]. Computer vision, a science and technology that explores how to enable computers to “see” and “understand” images and videos, allows computers to perceive, comprehend, and interpret visual information through the developed algorithms and models, thereby achieving functionalities similar to the human visual system; for example, W. Fang et al. used computer vision for construction risk monitoring [11]. B. G. Weinstein has applied computer vision to detect animal species in the field of zooecology [12]. Remarkably, in the field of computer vision, deep learning has achieved remarkable success in tasks such as image classification [13], object detection [14], and image generation [15]. By employing deep convolutional neural networks, computers can accurately identify and classify objects in images, such as faces, vehicles, animals, and more. Thus, integrating the intelligent method of deep learning with computer vision is considered to be an intuitive yet logical approach for automatically generating high-precision spraying trajectories that are suitable for the various types of shoe soles, which possibly can significantly enhance the accuracy, efficiency, and adaptability of spray trajectory generation methods.
In this work, we established a deconvolutional neural network for generating shoe sole spray trajectories during the automotive process of shoe sole spraying. The shoe sole image segmentation algorithm was based on a deconvolutional neural network and a three-dimensional (3D) computer vision method. The 3D point cloud data of the sole were captured by utilizing a 3D profile scanner, while the deconvolutional neural networks were applied to create the glue trajectory using an image-to-image prediction method. By leveraging deconvolutional neural networks, the 3D point cloud data of the shoe soles were fed into a specially designed convolutional neural network to extract highly distinctive features in the images. Then, a deconvolution strategy was employed to expand the feature map size to match the input and output predicted image size of the network, while the resulting predicted image contour served as the spray trajectory during automated shoe sole spraying. To evidence that the proposed method could meet the demand for diverse shoe sole styles with improved production efficiency and accuracy, the performance of our proposed method was evaluated by using the Dice similarity coefficient and Hausdorff distance as evaluation metrics. The results demonstrated that our proposed method outperformed most other reported traditional approaches with a remarkable Dice similarity coefficient of 99.2% and a distance of 1.2 mm, surpassing the 90% Dice similarity coefficient and 2 mm distance achieved by conventional algorithms. Moreover, the processing time of our method is less than two seconds, which is an acceptable range for industrial production requirements. By deploying our method on high-performance GPUs, the processing time could be further optimized. Summarily, we provided a groundbreaking approach to automated shoe sole spraying, which could promote the applications of neural networks to improve the labor productivity of the footwear industry. Our proposed method could achieve significant improvement in the accuracy and precision of generating the spray trajectory of shoe soles, and was adapted to the various characteristics of different shoe soles for personalized and irregular sole designs. We believe that our work could open a new avenue for the potential applications of artificial intelligence in the field of industry.

2. Related Work

The applications of automotive and intelligent methods to the shoe gluing process will effectively improve the product quality and the labor productivity of the footwear industry. In this chapter, we introduce the current algorithm for generating the spray trajectory of shoe soles.

2.1. Adaptive Gluing Trajectory Extraction Method

D. S. Kwon et al. developed a method to automatically extract gluing trajectories for different shoe shapes and sizes [16]. In their approach, they transferred the initial shoe sole gluing trajectory to a database and utilized it during the actual production process. NURBS interpolation was used to fill in the missing points in the trajectory, and the interpolated curve was compared to the ideal curve to obtain an interpolation function. Then, the position points were sent to the robot controller based on the position of the error control points until the error of each segment was consistent. However, their method was primarily proposed for flat shoe soles and cannot provide accurate spray trajectories for irregular or uniquely designed soles. And, they used error control points to determine positions which could not meet the precise requirements of personalized shoe soles. G. Xu et al. tried to improve the accuracy of the gluing trajectory by introducing velocity constraints based on the local maximum curvature of the trajectory for curve segmentation [4]. They also utilized S-shaped acceleration/deceleration planning to address the issue of sparse and incomplete trajectory points at the toe and heel of the sole. Their optimization strategy has partially improved the accuracy of the method, but the adaptability of this method is very limited, particularly in the production of highly customized shoe soles. To address these limitations, more advanced and flexible intelligent methods are necessary to cater to the diverse needs of various shoe soles with the ensured precision and accuracy of gluing trajectories.

2.2. CAD Software-Based Automatic Acquisition System for Shoe Sole Coating Trajectory

J. Y. Kim et al. developed a CAD (computer-aided design) software-based automatic acquisition system for shoe sole gluing trajectories [17]. The system consisted of a CAD module, motion calculation module, trajectory analysis module, and simulation module. The sequential steps of this system were to plan the gluing trajectory, simulate the process, and convert it into executable instructions for the robot. However, this method has several notable limitations, including: (1) the complexity of the trajectory planning process had challenges in achieving accurate and efficient results, especially for complex shoe shapes; (2) the deviations between the planned and actual gluing processes might lead to low accuracy in the generated trajectories; (3) the usability and adaptability of the system would be limited by its dependence on CAD software (2002 R15.6) and specialized knowledge; (4) the system could not effectively meet the requirements of personalized and unique sole designs. Based on the above CAD software-based automatic acquisition system, C. Wu et al. reduced its complexity and developed an interface for automatically generating robot spray trajectories from different types of 3D CAD shoe sole models [18]. However, this optimization scheme does not address the issue of insufficient accuracy. Overall, these drawbacks hinder the practicality and effectiveness of the system in meeting the diverse needs of the footwear industry.

2.3. Structured Light-Based Shoe Sole Adhesive Trajectory Extraction

C. Y. Wu et al. constructed light scanning to capture the shoe sole and extracted the endpoints of the scan lines in order to create a point set for the edge contour curve [19]. They derived the spray trajectory by interpolating the contour curve with an applied offset value. But their method was constrained by the shape of the shoe sole and it was incapable of handling irregular sole shapes, leading to inaccuracies in the spray trajectory alignment with the desired specifications. Moreover, the use of simplistic interpolation techniques might fail to fully capture the intricacies of the contour curve, resulting in inevitable deviations between the generated spray trajectory and actual gluing position. In view of the above drawbacks, T. Wang et al. introduced a “Block Maximum” algorithm to improve the applicability of the method to certain personalized shoe soles [20]. But their method still had limited capability to handle personalized shoe soles and failed to adequately address the requirements for diversification and customized product offerings.

3. Methods

Convolutional neural networks (CNNs) can effectively express the essential features of target data by simulating the neural structure of the human brain and extracting layer-by-layer features of input data through “pre-training + fine-tuning” [21].
In recent years, CNNs have been widely applied in various computer vision tasks such as image classification, face recognition, object detection, and image segmentation [22], and impressive results have been achieved. However, to date, there has rarely been research on the application of deep learning to shoe sole spraying. Therefore, a fully convolutional neural network model for generating adhesive trajectories in shoe sole spraying processes is proposed based on the current deconvolution techniques. The deep deconvolutional network used in this study is a supervised learning approach, and its basic workflow is illustrated in Figure 1.
During the training phase, the sole point cloud data were collected with a 3D contour scanner and then the processed data were input into the established deconvolutional neural network. The training samples consisted of manually segmented images of shoe soles with the actual adhesive trajectory fed into the neural network, and the weights of the feature extractor and image generator were iteratively updated through forward and backward propagation. After training, a well-trained feature extractor and image generator was obtained, which can generate binary shoe sole images with adhesive trajectory outlines based on different shoe sole inputs.
In the application phase, the shoe sole images were preprocessed and input into the trained network model consisting of a feature extractor and image generator. Through a single forward pass, the model predicts a binary shoe sole image with spray trajectory contours. After obtaining the binary shoe sole image, the Laplacian operator was applied to extract the edges, and a smooth adhesive trajectory line could be gained. To achieve better spraying effects, the spray trajectory points were allocated based on the curvature of the spray trajectory, where more spray points were allocated for areas with higher curvature. Thus, a set of spray trajectory points for the shoe sole are obtained, and the robotic arm can successfully complete the shoe sole spraying task based on these points.

3.1. Point Cloud Data Filtering

Due to the presence of external light interference in the actual measurement environment, the acquired 3D point cloud data often contain a significant amount of noise, as shown in Figure 2. This noise can originate from variations in ambient lighting, sensor errors, or other interfering factors. In order to improve the quality and accuracy of the data, it is necessary to filter the 3D point cloud data.
In this study, median filtering was utilized for denoising because it can effectively remove outliers and noise while preserving edge details, and it is suitable for processing 3D point cloud data. Figure 3 shows the filtered image. By calculating the median value of the points within the neighborhood, median filtering effectively eliminates noisy points, improving the quality and accuracy of the data.

3.2. Architecture

Figure 4 illustrates the detailed configuration of the deep network. The trained network is composed of two parts—convolution and deconvolution networks. The convolution network corresponds to a feature extractor that transforms the input image into a multidimensional feature representation, whereas the deconvolution network is a shape generator that produces object segmentation from the feature extracted from the convolution network [23,24]. The final output of the network is a binary shoe sole image that has same size as the input image, and its contour represents the glue spraying trajectory line that we need.
To facilitate the network input, the input image is uniformly cropped to a size of 1 × 256 × 512 pixels. In the convolutional network part, a structure similar to FCN was used, where the final fully connected layer was replaced by convolutional layers and the pooling layers were removed. All pooling layers were discarded to preserve more spatial information and enhance the model’s sensitivity to position information, which can improve the spray accuracy without sacrificing spray efficiency. The convolutional network model contains 5 convolutional layers and the step size of the convolutional kernel in the network is 2. The mirror structure of the convolutional network is used in the deconvolutional network part, which aims to reconstruct the shape of the input target. Moreover, the multi-layer deconvolutional structure is also able to capture the shape details at different levels like the convolutional network. In the convolutional network model, the low-level features can describe the whole target coarse information, such as target location, general shape, etc., while the more complex high-level features have classification properties and also contain more target detail information [25].

3.2.1. Convolutional Layer

On the convolution layer, multiple convolution kernels are used to convolve with the input image, and a series of feature maps can be obtained by an activation function after adding bias [26], and the convolution process is expressed as follows:
h l = f ( j = 1 M x k = 1 M y w j k h l 1 j , k + b l )
where M x and M y represent the length and width of the convolutional filter M, w j k represents the learned weights in the convolutional kernel, h l 1 represents the input to convolutional layer, b l represents the bias of the l t h layer filters, and Equation (1) denotes the activation function.
Nowadays, the ReLU activation function [27] instead of the traditional sigmoid function is often used in popular deep neural networks to accelerate network convergence. The mathematical expression of the ReLU function is:
f x = m a x 0 , x
where x is the input to the activation function.
Subsequently, a convolutional neural network with five layers was built to extract the feature information from input images. In each of these convolutional layers, we used the ReLU activation function, and the stride of the convolutional kernel was set to 2.

3.2.2. Deconvolution Layers

The deconvolution layer is also called a transposed convolution layer, and its purpose is to perform an up-sampling operation [28]. The deconvolution operation can be viewed as the opposite of the convolution operation. Therefore, the deconvolution layer takes an input feature map and produces an output feature map with a larger spatial resolution. In this work, we defined the deconvolution operation as follows:
y i , j = s u m W k , l x i + k , j + l
where y is the output feature map, x is the input feature map, W is the learnable deconvolution kernel, and k and l are the spatial offsets of the kernel.
Furthermore, we utilized five deconvolution layers to perform deconvolution on the feature maps outputted by the convolutional layers, thereby achieving the consistency of the resolution between the output segmentation image and the input image.

3.3. Post-Processing

After using the established model to process the original data, a binary shoe sole image with a spray trajectory line was generated. We converted the image into the actual spray trajectory of the sole through post-processing.

3.3.1. Segmented Image Filtering

Due to the possible presence of noise in the images generated by the model, these segmented images are directly used to extract the spray trajectory lines, which may affect the quality of the extracted curves. Therefore, a filtering operation is needed to generate images, and median filtering is adopted as the filtering method. Median filtering can remove noise while preserving the image’s edges and details [29,30], which has a positive impact on the quality of extracting coating trajectory lines. Thus, we can obtain cleaner and more accurate images, thereby improving the extraction of coating trajectory lines. Its expression is:
F i , j x , y = x i , j A M e d
where A represents the filter window and Med represents the median part of the filter template.
The raw and denoised images are compared in Figure 5. It can be observed that median filtering can eliminate noise while preserving the edges and details of the image, which is more suitable for extracting adhesive tracks.

3.3.2. Pickup Point

The glue trajectory line obtained by this model has plenty of points, while in the actual production process, only 44 points on one circle of the closed curve on the sole glue surface are needed to complete a continuous and good glue application. However, it is obviously unreasonable to spread these 44 points evenly on the closed curve. More points are assigned to the toe and tail with the larger curvature, and fewer points are assigned to the middle of the sole with the smaller curvature, which can better fit the spraying trajectory line of the sole. Meanwhile, the robot arm can accurately spray the sole without overflowing or leakage when spraying the toe and tail. The proposed trajectory point extraction method is described as follows.
Firstly, calculate the curvature of each point on the trajectory line to measure the curvature degree. For the ith point on the trajectory line, its curvature, denoted as ki, is calculated using the following formula:
k i = x i y i y i x i / x i 2 + y i 2 3 2
where x i and y i represent the first derivatives of the point coordinates ( x i , y i ) with respect to index i, while x i and y i represent the second derivatives.
Secondly, to reduce noise and ensure smoothness, we apply a smoothing filter to the curvature curve. This can be achieved by using methods such as the Savitzky–Golay filter. After smoothing, we obtain the smoothed curvature curve, denoted as k i .
Next, we need to determine the number of points to extract on the trajectory line, considering the curvature. We normalize the smoothed curvature k i to obtain the normalized curvature, denoted as n i . Based on the desired total number of points, n u m _ p o i n t s , we calculate the number of points to extract in each curvature segment, denoted as n u m _ p o i n t s _ s e g m e n t i . This can be calculated using the following formula:
n u m _ p o i n t s _ s e g m e n t i = c e i l ( n i n u m _ p o i n t s 1
where c e i l x denotes rounding x up to the nearest integer.
Finally, the corresponding number of points are extracted from the trajectory line based on the number of points in each curvature segment. For each curvature segment, we uniformly select interpolation points on the trajectory line using linear interpolation. Assuming the starting point coordinates of a curvature segment are ( x s t a r t , y s t a r t ), the ending point coordinates are ( x e n d , y e n d ), and the extracted points are n u m _ p o i n t s _ s e g m e n t i , the coordinates of the interpolation points ( x _ i n t e r p i , y _ i n t e r p i ) can be calculated using the following linear interpolation formula:
x _ i n t e r p i = 1 t i x s t a r t + t i x e n d
y _ i n t e r p i = 1 t i y s t a r t + t i y e n d
where t i varies from 0 to 1 and represents the interpolation parameter for selecting points along the curvature segment.
The trajectory after point selection is shown in Figure 6, where X, Y, Z are the coordinate points when applying the adhesive. In the data sheet, the A, B, C represent the Euler angles of rotation around the x, y, and z axes, respectively.

4. Experiments and Results

This section describes the implementation details, the experiment setup, and the experimental results.

4.1. Experimental Platform

The experiments were carried out on a computer with an 8 GB RAM, an Intel Core i5-8300H CPU, and a Windows 10 operating system. To train a deep fully convolutional neural network (DFCN) model, we employed the TensorFlow framework, along with an Nvidia GeForce GTX 1050 GPU. The program was written in Python 3.6.7. The “Qingbo” 3D contour scanner has a scanning frequency of up to 2000 Hz, enabling the accurate and high-resolution capture of the shoe sole data, ensuring the quality of our network model’s training data.

4.2. Make Dataset

During the process of deep learning, the quantity and quality of training data have a significant impact on the network model. In this study, the used dataset consisted of real shoe sole images captured using the “Qingbo” 3D contour scanner LH model in a factory environment. These images included different types, sizes, and shapes of shoe soles. By collecting real shoe sole image datasets, we could provide more representative and diverse training samples to enhance the generalization ability and performance of the network model. In the process of creating the dataset, we used various image processing methods, such as resizing, rotating, and flipping, to increase the diversity and quantity of the dataset. A total of 70 images were collected, of which 45 were used as the training set and 25 as the test set. Figure 7 shows the platform we built to collect the data, and Table 1 shows the parameters of the 3D contour scanner used in the platform.
For data annotation, we used a manual method to mark the unique region of the image. Specifically, annotation software was utilized to trace the contour of the shoe sole binary image, where the contour was the spray trajectory line. The shoe sole binary image was labeled as a positive sample, while the remaining regions were labeled as negative samples. The annotation process was independently completed by two experienced annotators to ensure the accuracy of the labels. Finally, the annotated data were saved in JSON format, recording the coordinates of the unique region and the corresponding label information.

4.3. Training Setting

In our research, the process of selecting the optimal hyperparameters for the proposed model involved a systematic approach, combining recommendations from the literature and empirical experiments. Specifically, we adopted the Stochastic Gradient Descent (SGD) optimizer, in which the initial learning rate, momentum, and weight decay were set to 0.01, 0.9, and 0.0005, respectively [31]. To initialize the weights in the convolutional network, we utilized a zero-mean normal distribution. This choice of weight initialization has been proven effective in various deep learning applications and is commonly used to ensure stable and efficient model training. During the training process, we continuously monitored the validation accuracy and dynamically adjusted the learning rate based on its performance. If no improvement in validation accuracy was observed, we reduced the learning rate by an order of magnitude. This adaptive learning rate adjustment strategy helped us avoid convergence issues and achieve better optimization during training. Throughout the training phase, we conducted a total of 150 epochs with a batch size of four. Additionally, we incorporated batch normalization after each convolutional and deconvolutional layer to address internal covariate shift and stabilize the training process. The batch normalization was used to optimize the network and improve the overall convergence performance. To validate the effectiveness of the chosen hyperparameters, we performed extensive experiments using various combinations of hyperparameter settings. We systematically compared the performances of the models based on the metrics, including accuracy, convergence speed, and generalization ability. The results demonstrated that the selected hyperparameters, in conjunction with the proposed weight initialization and batch normalization strategy, could improve the training effectiveness and the performance of our model.
Figure 8a illustrates the changes in the loss function (Mean Absolute Error) and accuracy during the training process in our study. It can be observed that the loss value of the loss function steadily decreases in the initial region and fluctuates slightly in the following region. Correspondingly, the plotted curve of the accuracy as a function of the Epoch is shown in Figure 8b. The estimated accuracy rapidly increased with the Epoch before reaching a plateau of around 25 Epoch. The results demonstrate that our established DFCN model has a strong learning ability, which is consistent with the current training strategies of neural networks.

4.4. Comparison of Experimental Results

In this part, the performance of our proposed DFCN model is compared with other reported sole glue application trajectory algorithms.

4.4.1. Evaluation and Comparison of the Glue Tracks

In the evaluation experiment, two parameters were used to quantitatively evaluate the performance of different segmentation algorithms—the Dice similarity coefficient (DSC, calculates the similarity between two contour regions) and the Hausdorff distance (HD, reflects the maximum difference between two contour point sets).
Given A and B as the point sets of the two contour regions, the DSC and HD are defined as below:
D S C A , B = 2 A B A + B ,
H D A , B = m a x h A , B , h B , A ,
where h(A, B) represents the maximum distance between each point in set A to the closest point in set B, i.e.,
h A , B = max ( min a b
where a is a point in point set A, b is a point in point set B, and ‖ab‖ denotes the Euclidean distance between point a and point b. A smaller value of HD indicates a higher segmentation accuracy.
We compared the performance of our DFCN (Deep Fully Convolutional Network) model with other reported algorithms for sole glue application trajectory based on key performance metrics, namely DSC (Dice Similarity Coefficient) and HD (Hausdorff Distance). A benchmark dataset was collected, including various sole glue images along with their corresponding ground truth trajectories. This dataset was used to evaluate the performance of our model and existing algorithms. To ensure a fair comparison, we collected state-of-the-art algorithms and applied them to the same dataset, comparing their results with our DFCN model.
The quantitative metrics DSC and HD were used to evaluate the accuracy of trajectory extraction and the smoothness of generated trajectories. Table 2 presents the quantitative evaluation values for the segmentation results of different methods. It can be observed in the table that our proposed method outperforms traditional shoe sole glue track generation methods in terms of segmentation accuracy measured by both DSC and HD metrics, which evidences that our method is able to accurately capture the desired glue application trajectories while generating smoother and visually appealing trajectories. In the comparison, the process time of our method is ~1.5 s, which is longer than other works. But the processing time of our model is still less than the time required for a robotic arm to spray one shoe. Thus, our processing time is able to meet the requirements for industrial production. Furthermore, it is worth noting that our inference was performed on an industrial computer with a low-end CPU (i5-8300H). We believe that the inference time of our method will be significantly improved by using a high-performance GPU. Overall, the comparison results demonstrate the effectiveness and superiority of our proposed DFCN model in extracting sole glue application trajectories. The combination of high accuracy, smoothness, and moderate computational efficiency makes it a promising choice for automated sole glue application tasks.
To visually demonstrate the accuracy of our model in generating sole spraying trajectories, we employed visualization tools to present the results. The degree of similarity between the model-generated trajectories and the ground truth trajectories can be visually observed. In the visualization, we use the ground truth trajectories as references and display the model-generated trajectories in different colors or line styles. This allows us to clearly see if the model successfully captures the shape and details of the trajectories. And, we can quickly evaluate the differences between the model-generated trajectories and the ground truth trajectories. If they closely align, it can be concluded that the model has a high level of accuracy. Conversely, if there are noticeable differences or deviations, we can further adjust the model or improve the algorithm to enhance the accuracy.
We randomly selected a set of shoe sole point cloud images to test our model. The generated spray trajectories are shown as yellow lines (Figure 9), while the standard spray trajectories for these shoe soles are indicated by the red lines. By comparing the two trajectories placed on the same graph, we can observe that the two lines are almost perfectly aligned. These results demonstrate the reliability of our model in generating spray trajectories for shoe soles. The ability of our model to accurately predict the trajectory enables precise and consistent spray application, leading to improved product quality. Moreover, the excellent alignment between the predicted spray trajectories and the standard ones is a testament to the robustness and generalizability of our model. It successfully captures the intricate details and shapes of various shoe sole designs, allowing for precise reproduction of the desired spray patterns.

4.4.2. Extract Spray Point

In addition to generating a high-precision spray trajectory, it is also crucial to extract 44 trajectory points in a reasonable manner, particularly in areas with significant curvature. Therefore, we need to include more points on the trajectory line to ensure fine control and accurate adhesive application. Figure 10 displays the post-processed adhesive trajectory points by using our method. It can be observed that these points closely match the actual adhesive path, indicating that our method has precise localization of adhesive points for the spray trajectory generation. We can achieve precise glue application on the shoe sole, ensuring precise positioning and paths for each adhesive point. This not only improves the efficiency of adhesive application but also ensures uniform coverage and quality of the adhesive. Compared to traditional manual adhesive methods, our approach exhibits significant advantages in terms of the accuracy and consistency of adhesive trajectories. This provides reliable technical support for automation and digitization in shoe sole production, thereby enhancing efficiency and quality assurance in the footwear industry.

4.4.3. Special Shoe Path Comparison

To validate the robustness of our proposed model, we compared it with the current mainstream methods by extracting spray trajectories of the same unique sole. The quality of the extracted spray trajectories from both methods was compared to assess their performance.
Most existing methods rely on unique edge contours and offsets to obtain the spray trajectories [20]. The discrete coordinate points of the sole’s edge contour are interpolated to obtain a smooth contour, and then the offset is applied to derive the spray trajectories. Following the method described in reference [32], the contour curve is initially used as a ridge line, and the intersection points between the pipe surface and the contour curve are calculated with a radius r to determine the trajectory points using the following formula:
B x u C x t 2 + B y u C y t 2 + B z u C z t 2 = r 2 a B x u C x t + b B y u C y t + c B z u C z t = 0
where C x t ,   C y t ,   C z t are the corresponding point on the contour curve, B x u ,     B y u ,   B z u represent the point on the spray trajectory, and a, b, and c are the tangent vector of the point on the contour curve.
We compared our proposed method with the aforementioned approach and evaluated its performance in extracting spray trajectories. The obtained spray trajectories are shown in Figure 11. In the figure, the red point is the discrete trajectory obtained using the bias method. It can be observed that due to the inconsistency between the external contour of the shoe and the spray trajectory, the spray trajectory appears to be bent and deviates significantly from the actual spray trajectory. Furthermore, the missing information in the front part of the sole results in an additional small loop in the generated spray trajectory, which is a significant error. It can be seen that the proposed model in this study exhibits better robustness and accuracy in extracting spray trajectories of the same unique sole. It can capture subtle curve variations and edge shapes more precisely, resulting in smooth and accurate trajectories. In comparison, the method based on edge contours and offsets is more sensitive to complex sole shapes and curve variations, often leading to errors and inaccurate trajectories. Therefore, the proposed method in this study offers better robustness and reliability in practical applications, making it suitable for various types of sole spraying tasks.

5. Conclusions

In this paper, we constructed a deep deconvolutional neural network to provide a more effective solution for generating spray trajectories which exhibits greater applicability to irregular shoe soles and improves spray accuracy without compromising spray efficiency. The advantages of the proposed method lie in its ability to preserve more spatial information and achieve higher spray accuracy through end-to-end mapping from shoe sole images to shoe sole spray trajectories, resulting in an improved spray accuracy without sacrificing spray efficiency. Furthermore, according to the evaluation results, including a Dice similarity coefficient of 99.2% and a distance of 1.2 mm, this method surpasses the performance of traditional algorithms, which typically achieve around 90% Dice similarity coefficient and 2 mm distance. Moreover, the proposed method demonstrates practical feasibility, with a processing time limited to within 2 s, making it suitable for real-world implementation in manufacturing environments. Therefore, the algorithm in this paper has a much lower computing time than the time for the sole to be transported on the conveyor belt, and thus is more suitable for industrialization. This significant improvement highlights the enhanced accuracy and efficiency achieved by the proposed method. These unique features of our proposed method will contribute to boosting the production of spray trajectories that better align with the actual requirements of shoe sole gluing. Overall, the proposed method offers a valuable contribution to the footwear industry, addressing the limitations of existing approaches and providing a more effective solution for generating spray trajectories during automated shoe sole gluing. Future research will explore how to use different gluing processes according to the style of the sole and generate the corresponding gluing trajectory for the process to achieve a higher degree of intelligent production.

Author Contributions

Conceptualization, H.Z. and J.L.; methodology, J.L. and Y.W.; software, Y.W.; validation, L.L. and H.Z.; formal analysis, J.L. and H.Z.; investigation, Y.W.; resources, J.L., C.X. and H.Z.; data curation, J.L.; writing—original draft preparation, J.L. and Y.W.; writing—review and editing, L.L., C.X. and H.Z.; visualization, L.L. and Y.W.; supervision, H.Z.; funding acquisition, J.L. and H.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (No. 52205147 and No. 52005168) and the open fund from Hubei Modern Manufacturing Quality Engineering Key Laboratory.

Data Availability Statement

The code presented in this study is available on request from the corresponding author. The dataset is linked as follows: https://pan.baidu.com/s/10D5p4BT82wBWndaGvex5RA?pwd=u9zd (accessed on 7 August 2023).

Acknowledgments

We thank Yulong Hu from Cixing Co., Ltd. for his assistance with the shoe sole data collection and the support from the Zhejiang Innovation Institute of Robotics. We would like to thank anonymous reviewers for their helpful comments and suggestions to improve our paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Pagano, S.; Russo, R.; Savino, S. A Smart Gluing Process by a Vision Guided Robotic System. In Advances in Italian Mechanism Science: Proceedings of the 3rd International Conference of IFToMM Italy; Springer International Publishing: Berlin/Heidelberg, Germany, 2021; pp. 414–422. [Google Scholar]
  2. Pagano, S.; Russo, R.; Savino, S. A vision guided robotic system for flexible gluing process in the footwear industry. Robot. Comput.-Integr. Manuf. 2020, 65, 101965. [Google Scholar] [CrossRef]
  3. Wu, J.; Zhu, K. An algorithm for extracting spray trajectory based on laser vision. In Proceedings of the 2017 IEEE 17th International Conference on Communication Technology (ICCT), Chengdu, China, 27–30 October 2017; IEEE: New York, NY, USA, 2017; pp. 1591–1595. [Google Scholar]
  4. Xu, G.; Zhang, H.; Meng, Z.; Sun, Y. Automatic interpolation algorithm for NURBS trajectory of shoe sole spraying based on 7-DOF robot. Int. J. Cloth. Sci. Technol. 2021, 34, 434–450. [Google Scholar] [CrossRef]
  5. LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef]
  6. Voulodimos, A.; Doulamis, N.; Doulamis, A.; Protopapadakis, E. Deep learning for computer vision: A brief review. Comput. Intell. Neurosci. 2018, 2018, 7068349. [Google Scholar] [CrossRef] [PubMed]
  7. Jiang, R.; Chen, X.; Yu, Y.; Zhang, Y.; Ding, W. Risk and UCON-based access control model for healthcare big data. J. Big Data 2023, 10, 1–28. [Google Scholar] [CrossRef]
  8. Bi, L.; Kim, J.; Kumar, A.; Fulham, M.; Feng, D. Stacked fully convolutional networks with multi-channel learning: Application to medical image segmentation. Vis. Comput. 2017, 33, 1061–1071. [Google Scholar] [CrossRef]
  9. Wang, W.; Kang, Y.; Liu, G.; Protopapadakis, E. SCU-net: Semantic segmentation network for learning channel information on remote sensing images. Comput. Intell. Neurosci. 2022, 2022, 8469415. [Google Scholar] [CrossRef] [PubMed]
  10. Hussain, A.; Khan, S.U.; Khan, N.; Wang, X. Low-light aware framework for human activity recognition via optimized dual stream parallel network. Alex. Eng. J. 2023, 74, 569–583. [Google Scholar] [CrossRef]
  11. Fang, W.; Ding, L.; Love, P.E.; Luo, H.; Li, H.; Pena-Mora, F.; Zhong, B.; Zhou, C. Computer vision applications in construction safety assurance. Autom. Constr. 2020, 110, 103013. [Google Scholar] [CrossRef]
  12. Weinstein, B.G. A computer vision for animal ecology. J. Anim. Ecol. 2018, 87, 533–545. [Google Scholar] [CrossRef] [PubMed]
  13. Lu, D.; Weng, Q. A survey of image classification methods and techniques for improving classification performance. Int. J. Remote Sens. 2007, 28, 823–870. [Google Scholar] [CrossRef]
  14. Ouyang, W.; Wang, X.; Zeng, X.; Qiu, S.; Luo, P.; Tian, Y.; Li, H.; Yang, S.; Wang, Z.; Loy, C.-C.; et al. Deepid-net: Deformable deep convolutional neural networks for object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Boston, MA, USA, 7–12 June 2015; pp. 2403–2412. [Google Scholar]
  15. Gregor, K.; Danihelka, I.; Graves, A.; Rezende, D.; Wierstra, D. Draw: A recurrent neural network for image generation. In Proceedings of the International Conference on Machine Learning; PMLR: Brookline, MA, USA, 2015; pp. 1462–1471. [Google Scholar]
  16. Kwon, D.S.; Song, S.K. A Method for Generating a Cementing Trajectory of a Shoe Sole. U.S. Patent GB2413402 UK, 26 October 2005. [Google Scholar]
  17. Kim, J.Y. CAD-based automated robot programming in adhesive spray systems for shoe outsoles and uppers. J. Robot. Syst. 2004, 21, 625–634. [Google Scholar] [CrossRef]
  18. Wu, C.; He, L.; Hu, X.; Li, Q. CAD-Based Automatic Generation of Robot Trajectory in Shoe Spray Systems. In International Design Engineering Technical Conferences and Computers and Information in Engineering Conference; Amer Society of Mechanical: New York, NY, USA, 2007; Volume 48051, pp. 203–208. [Google Scholar]
  19. Wu, C.Y.; He, L.Y.; Li, Q.C.; Hu, X.D. Research on the generation of trajectory for shoe upper spraying based on structured light. In Proceedings of the 2008 IEEE International Conference on Industrial Technology, Chengdu, China, 21–24 April 2008; pp. 1–5. [Google Scholar]
  20. Wang, T.; Zhang, J.; Dong, J.; Pan, S.; Zheng, L. A method for generating spray trajectory of a shoe sole based on laser vision. In Proceedings of the 2019 IEEE 4th International Conference on Image, Vision and Computing (ICIVC), Xiamen, China, 5–7 July 2019; IEEE: New York, NY, USA, 2019; pp. 36–39. [Google Scholar]
  21. Yu, K.; Jia, L.; Chen, Y.; Xu, W. Deep learning: Yesterday, today, and tomorrow. J. Comput. Res. Dev. 2013, 50, 1799–1804. [Google Scholar]
  22. Papandreou, G.; Chen, L.C.; Murphy, K.P.; Yuille, A.L. Weakly-and semi-supervised learning of a deep convolutional network for semantic image segmentation. In Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile, 7–13 December 2015; pp. 1742–1750. [Google Scholar]
  23. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA, 7–12 June 2015; pp. 3431–3440. [Google Scholar]
  24. Alguacil, A.; Pinto, W.G.; Bauerheim, M.; Jacob, M.C.; Moreau, S. Effects of boundary conditions in fully convolutional networks for learning spatio-temporal dynamics. In Machine Learning and Knowledge Discovery in Databases; Springer International Publishing: Cham, Switzerland, 2021; pp. 102–117. [Google Scholar]
  25. Zhu, F.; Yu, Y. Automatic image stylization using deep fully convolutional networks. arXiv 2018, arXiv:1811.10872. [Google Scholar]
  26. Dang, J.; Yang, J. LHPHGCNN: Lightweight Hierarchical Parallel Heterogeneous Group Convolutional Neural Networks for Point Cloud Scene Prediction. IEEE Trans. Intell. Transp. Syst. 2022, 23, 18903–18915. [Google Scholar] [CrossRef]
  27. Ide, H.; Kurita, T. Improvement of learning for CNN with ReLU activation by sparse regularization. In Proceedings of the 2017 International Joint Conference on Neural Networks (IJCNN), Anchorage, AK, USA, 14–19 May 2017; pp. 2684–2691. [Google Scholar]
  28. Xu, L.; Ren, J.S.; Liu, C.; Jia, J. Deep convolutional neural network for image deconvolution. Adv. Neural Inf. Process. Syst. 2014, 27, 2672–2680. [Google Scholar]
  29. Kumar, A.; Sodhi, S.S. Comparative analysis of gaussian filter, median filter and denoise autoenocoder. In Proceedings of the 2020 7th International Conference on Computing for Sustainable Global Development (INDIACom), New Delhi, India, 12–14 March 2020; IEEE: New York, NY, USA, 2020; pp. 45–51. [Google Scholar]
  30. Yin, X.; Yang, Y.; Jia, J.; Tan, C. 3D image reconstruction on a miniature planar EIT sensor using sparsity with median filter. In Proceedings of the 2017 IEEE SENSORS, Glasgow, UK, 29 October–1 November 2017; pp. 1–3. [Google Scholar]
  31. Noh, H.; Hong, S.; Han, B. Learning deconvolution network for semantic segmentation. In Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile, 7–13 December 2015; pp. 1520–1528. [Google Scholar]
  32. Catté, F.; Lions, P.L.; Morel, J.M.; Coll, T. Image selective smoothing and edge detection by nonlinear diffusion. SIAM J. Numer. Anal. 1992, 29, 182–193. [Google Scholar] [CrossRef]
Figure 1. Diagram of the proposed method for generating spray trajectory of a shoe sole.
Figure 1. Diagram of the proposed method for generating spray trajectory of a shoe sole.
Electronics 12 03470 g001
Figure 2. The soles original 3D point cloud data.
Figure 2. The soles original 3D point cloud data.
Electronics 12 03470 g002
Figure 3. Filtered 3D point cloud data.
Figure 3. Filtered 3D point cloud data.
Electronics 12 03470 g003
Figure 4. Deconvolution network architecture.
Figure 4. Deconvolution network architecture.
Electronics 12 03470 g004
Figure 5. This image shows two binarized shoe sole images with predicted adhesive trajectories by the model. The left is the raw image, and the right is the denoised image.
Figure 5. This image shows two binarized shoe sole images with predicted adhesive trajectories by the model. The left is the raw image, and the right is the denoised image.
Electronics 12 03470 g005
Figure 6. The generated 44-point glue application trajectory schematic diagram and the description of the 44-point coordinate data transmitted to the robot arm.
Figure 6. The generated 44-point glue application trajectory schematic diagram and the description of the 44-point coordinate data transmitted to the robot arm.
Electronics 12 03470 g006
Figure 7. Visual platform construction diagram.
Figure 7. Visual platform construction diagram.
Electronics 12 03470 g007
Figure 8. (a) Description of the accuracy changes with the number of epochs; (b) description of the loss function changes with the number of epochs.
Figure 8. (a) Description of the accuracy changes with the number of epochs; (b) description of the loss function changes with the number of epochs.
Electronics 12 03470 g008
Figure 9. Described are the predicted results of three adhesive trajectories for the shoe sole. It can be seen that the proposed method has achieved a high degree of accuracy, approaching the manually annotated adhesive tracks.
Figure 9. Described are the predicted results of three adhesive trajectories for the shoe sole. It can be seen that the proposed method has achieved a high degree of accuracy, approaching the manually annotated adhesive tracks.
Electronics 12 03470 g009
Figure 10. The real images of the tested shoe soles and the corresponding generated glue points after post-processing.
Figure 10. The real images of the tested shoe soles and the corresponding generated glue points after post-processing.
Electronics 12 03470 g010
Figure 11. The comparison of spray trajectory generation between our proposed method and commonly used methods for special shoe.
Figure 11. The comparison of spray trajectory generation between our proposed method and commonly used methods for special shoe.
Electronics 12 03470 g011
Table 1. Table of parameters for 3D line laser contour scanner.
Table 1. Table of parameters for 3D line laser contour scanner.
Serial NumberNameParameters
1Installation statusDiffuse reflection
2Laser source405 nm (Blue light)
3X-direction field of view200–300 mm
4Z-axis measurement range350–400 mm
5Installation distance425 mm
6Sampling frequency≤1000 Hz
7WeightAbout 1.8 kg
8Enclosure materialAluminum alloy
Table 2. Quantitative comparison of segmentation results.
Table 2. Quantitative comparison of segmentation results.
MethodDice Similarity Coefficient (%)Hausdorff Distance (mm)Time (s)
Adaptive gluing trajectory extraction method90.72.30.4~0.6
CAD software-based automatic acquisition system for shoe sole coating trajectory91.22.20.5~0.7
Structured light-based shoe sole adhesive trajectory extraction92.62.00.4~0.6
Our work99.21.21.0~1.5
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, J.; Wang, Y.; Li, L.; Xiong, C.; Zhou, H. Deconvolutional Neural Network for Generating Spray Trajectory of Shoe Soles. Electronics 2023, 12, 3470. https://doi.org/10.3390/electronics12163470

AMA Style

Li J, Wang Y, Li L, Xiong C, Zhou H. Deconvolutional Neural Network for Generating Spray Trajectory of Shoe Soles. Electronics. 2023; 12(16):3470. https://doi.org/10.3390/electronics12163470

Chicago/Turabian Style

Li, Jing, Yuming Wang, Lijun Li, Chao Xiong, and Hongdi Zhou. 2023. "Deconvolutional Neural Network for Generating Spray Trajectory of Shoe Soles" Electronics 12, no. 16: 3470. https://doi.org/10.3390/electronics12163470

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