Next Article in Journal
Strategies for Post-Translational Control of Protein Expression and Their Applications
Previous Article in Journal
Feasibility of a Drug-Releasing Radiofrequency Ablation System in a Porcine Liver Model
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of Machine Learning Methods for Pallet Loading Problem

1
Department of Industrial Engineering, Turkish-German University, Şahinkaya Caddesi 106, Beykoz, Istanbul 34820, Turkey
2
Vocational School of Technical Science, Isparta University of Applied Sciences, Isparta 32260, Turkey
3
Department of Mechatronics Engineering, Akdeniz University, Antalya 07058, Turkey
4
Stocker Center 283, Industrial and Systems Engineering, Ohio University, Athens, OH 45701, USA
5
Department of Industrial Systems Engineering, Mutah University, Alkarak 61710, Jordan
6
DHL Supply Chain, Solutions Design, Westerville, OH 43082, USA
7
Department of Industrial Engineering, College of Engineering, King Saud University, P.O. Box 800, Riyadh 11421, Saudi Arabia
*
Author to whom correspondence should be addressed.
Appl. Sci. 2021, 11(18), 8304; https://doi.org/10.3390/app11188304
Submission received: 29 July 2021 / Revised: 31 August 2021 / Accepted: 2 September 2021 / Published: 7 September 2021
(This article belongs to the Topic Machine and Deep Learning)

Abstract

:
Because of continuous competition in the corporate industrial sector, numerous companies are always looking for strategies to ensure timely product delivery to survive against their competitors. For this reason, logistics play a significant role in the warehousing, shipments, and transportation of the products. Therefore, the high utilization of resources can improve the profit margins and reduce unnecessary storage or shipping costs. One significant issue in shipments is the Pallet Loading Problem (PLP) which can generally be solved by seeking to maximize the total number of boxes to be loaded on a pallet. In many previous studies, various solutions for the PLP have been suggested in the context of logistics and shipment delivery systems. In this paper, a novel two-phase approach is presented by utilizing a number of Machine Learning (ML) models to tackle the PLP. The dataset utilized in this study was obtained from the DHL supply chain system. According to the training and testing of various ML models, our results show that a very high (>85%) Pallet Utilization Volume (PUV) was obtained, and an accuracy of >89% was determined to predict an accurate loading arrangement of boxes on a suitable pallet. Furthermore, a comprehensive analysis of all the results on the basis of a comparison of several ML models is provided in order to show the efficacy of the proposed methodology.

1. Introduction

Because of the advancements in transportation technology, a large number of products are shipped to the customers globally using a wide variety of transport vehicles such as trucks, planes, ships, etc., on a daily basis. These products are first packed in boxes and placed on pallets and then loaded into trucks, containers, and other transportation options [1]. This whole process necessitates optimizing the smallest volume of the utilization of resources at each step in a cost-effective manner. For instance, an efficient and optimized procedure of pallets loading can lead to a significant amount of cost savings. Hence, it is quite evident that efficient utilization of pallets may entail the reduction of goods traffic, thereby preserving the company’s time, resources, and the involved costs. Therefore, an efficient solution to the Pallets Loading Problem (PLP) is extremely significant. In general, there are two broad classes of PLP based on the sizes of the loaded boxes [2]. The first is the uniform PLP, which is generally applied for identical or homogeneous types of boxes, whereas the second is termed the mixed PLP, which categorizes non-identical types of boxes [3]. Furthermore, this classification of boxes can be further categorized on the basis of the box sizes in the system, termed as weakly heterogeneous and strongly heterogeneous [4,5]. Additionally, as a rule, there can be no overlap and overhang for the boxes to be loaded onto the pallets.
The Pallet Loading Problem is undeniably a complex and multifaceted task [6]. Barros et al. [6] studied the complexity of an arrangement of cargo in a pallet and proved through principal component analysis and multiple linear regression that the number of boxes is a strong predictor of complexity in this challenging problem. Moreover, the Distributor’s Pallet Loading Problem (DPLP) is an NP-hard problem and has multiple layers of complexity stemming from various constraints imposed on it, such as the stability of a layer to sustain upper layers, the compression limit of each layer to sustain the weight of the layers placed on top of it, and the weight limit imposed by the company carrying out the packaging [7]. Nonetheless, loading boxes onto a container in such a manner that the 3D volume is utilized to the maximum is also a computationally demanding problem since it requires addressing various constraints, such as the orientations in which a box can be loaded as well as stability constraints [8]. Finally, cargo security during the transportation process needs to be thoroughly accounted for, and it can be enhanced through the selection of a proper stretch film and an appropriate cargo wrapping model [9].
For many industries, logistics activities such as transportation and storage play a key role in delivery, cost reduction, and the safety of goods. For this purpose, pallets are utilized as the most significant strategic equipment in the logistics of shipment and delivery. Similarly, another important factor is to utilize an optimal number of pallets for any freight, which may save an enormous amount of costs [1]. Consequently, many recent studies have focused on solving the PLP for different 3-dimensional (3D) pallet sizes to reduce the total number of pallets as well as the optimal sorting of boxes in an efficient manner [10]. Other studies have focused on the use of Artificial Intelligence (AI) and Machine Learning (ML) methods to schedule and control freight loading operations, supply chain management, and logistics in the manufacturing industry [11,12,13,14].
This research study originated as a part of the research initiative by the DHL supply chain, which focuses on determining the optimal classification methods to load boxes on the pallets, also taking into account the humidity and storage duration. It was reported that the stability, the strength of the pallet, and the mechanical strength of the box are adversely affected by changes in humidity [15]. DHL operates in more than 220 countries and territories globally, and it is one of the world’s major shipping companies. It delivers goods to more than 120,000 destinations from its 5000 offices, using more than 76,000 delivery vehicles [16]. Hence, it is absolutely imperative for DHL to drive state-of-the-art research to find efficient solutions to the PLP to ensure its smooth operation. The ultimate objective of any algorithm addressing the PLP is to arrange a given number of homogeneous or heterogeneous-sized boxes in an optimized manner in terms of space or costs in a certain container or pallet. To solve a PLP, several performance measures, such as pallet utilization, the stability and strength of the pallets, the constraints related to humidity or storage duration, etc., are considered, irrespective of the aforementioned categories. Generally, the stability of the pallets increases when their utilization improves. Therefore, many studies have focused on maximizing the utilization of pallets to improve overall stability. In general, it was reported that the multi-pallet loading problem is an NP-hard problem, and researchers have used non-linear integer programming or stochastic search methods to solve it [5]. The non-linear method guarantees an optimal solution, but it is a computationally expensive method, especially if the parameters in the formulation increase [17]. Contrarily, stochastic search methods provide a sub-optimal solution at a reduced computational cost [5]. In this paper, a novel ML approach was employed for solving PLP to provide a suggestion framework to evaluate the optimal position of a box in a pallet. In the proposed methodology, two -phase algorithm is developed based on a dataset from the DHL supply chain to load identical boxes onto the pallet. The first phase maximizes the number of boxes per horizontal layer, where five heuristics, one block, two-block, three-block, hollow-block, and G5 heuristics are utilized. The second phase determines the number of the horizontal layers loaded per pallet based on the maximum height, maximum weight and dynamic strength. More specifically, various ML methods, such as Support Vector Classifier (SVC), Decision Tree Classifier (DTC), K Nearest Neighbour Classifier (KNN), Random Forest Classifier (RFC), and Artificial Neural Network Classifier (ANN), were used on the dataset, and the categories of the existing pallet types were evaluated. This ML-based approach to solve PLP provides better results compared with running various genetic algorithms or heuristics each time. The results show that the optimal pallet selection process may take several hours when executing these traditional algorithms, compared with ~1 min after employing the ML methods. The results of this study report that a very high (>85%) Pallet Utilization Volume (PUV) can be obtained using ML models on the given dataset. Moreover, an accuracy of >89% was found to predict the accurate loading arrangement of boxes on a suitable pallet.
The remainder of the paper is organized as follows. A literature review is presented in Section 2, providing the background research studies and methods. In Section 3, the research methodology and classification methods are elaborated. Subsequently, the data analysis is carried out in Section 4. The results are presented and explained in Section 5. Finally, Section 6 provides the conclusion and future work.

2. Literature Review

The PLP is used to enhance performance measures, such as the number of boxes per pallet (or pallet utilization) and stability, by arranging boxes on the basis of their dimensions and weights on a rectangular pallet with known dimensions and weight limits. In the case of a 3D manufacturer’s PLP for assigning the maximum number of boxes per pallet, an optimized solution depends upon the pallet stability on the number of horizontal layers per pallet and the layout pattern of the boxes per layer [10]. In the literature, there are multiple methods for solving the PLP, such as classical mathematical methods, evolutionary methods, other intelligent optimization methods, and hybrid methods. Dowsland [18] developed a pallet optimization system to place boxes on pallets, which identified an optimal solution to the PLP within ~5 min. However, the proposed solution was not efficient for larger problems. In another study, the binary integers-based formulation was used to develop a mathematical model to arrange multiple pallets and materials compatibility with those pallets [19]. In this model, the box dimensions were not necessarily integers. Similarly, another mathematical model based on a polynomial time algorithm was developed for the 2-dimensional (2D) guillotine cutting stock problems [20]. In another similar study, Ahn et al. [21] developed a mathematical model with a staircase structure that had geometrical properties. The proposed model provided reasonable efficiency in the PLP by identifying an optimal solution. Contrary to all these classical solutions to the PLP, Schuster et al. [22] optimized the stack stability in addition to the stack volume. An important feature of this work was minimizing the number of products of various customers on the same pallet. However, the proposed model can optimally solve only small-scale problems, and it becomes computationally expensive for large problems. Furthermore, Chan et al. [23] developed a two-phase intelligent Decision Support-System (DSS) for the Air-Cargo Loading Problem. It is an efficient solution for variable-sized (or shaped) pallets to be uploaded on the Air-Cargo. This particular solution has been effectively utilized in airport cargo systems, and it successfully provides over 90% volume utilization. The common factor in all these methods is that they are based on classical mathematical models. It is evident that these models should address the PLP by performing an exhaustive search of all possibilities, which become impractical for large problem sizes. Hence, the researchers looked for alternate solutions, such as genetic algorithms or heuristics, to find faster and sub-optimal solutions.
The heuristic algorithms were also utilized in the literature to solve the PLP until the mid-1990s. It was ascertained whether they can provide optimal results with the new upper-bound methods, which are based on some structural constraints [24]. For instance, Bischoff et al. [25] used a new heuristic algorithm to solve distributors’ pallet packing problems efficiently and achieved the natural balance. Another distributor’s pallet packing problem was solved with the heuristic methods by Terno et al. [1]. In the study, a layer-wise loading strategy with the optimal 2D loading patterns was employed in the 3D solution method. Similarly, [26] developed an effective heuristic algorithm that addressed the issue of the 2D PLP. Their novel method could readily identify complicated solutions with five-block structures.
Although heuristic algorithms are utilized extensively, there are several other intelligent optimization and search methods as well. For instance, the new branch-and-bound algorithms are integer programming-based methods, which are employed to optimize the number of boxes to be loaded on a pallet. It is an efficient method that has solved over three million problems for an area ratio bound of less than 101 boxes by executing the optimal solution in less than a minute [21]. Another study on the PLP solution was carried out by Bhattacharya et al. [27] using an exact algorithm based on the depth-first strategy. Their novel methodology was based on the idea of the reduction of the size of the search tree. Thus, the final solution effectively utilizes the available system memory. In this way, more effective pruning can be performed. In the literature, there are several hybrid methods as well, which combine the classical and heuristics methods. For instance, a hybrid approach coalescing the heuristic and genetic algorithms was developed by Lau et al. [5] to solve the PLP for profit optimization. Subsequently, this hybrid approach was compared with two stochastic search methods, Simulated Annealing (SA) and Tabu search (TS), as well as a nonlinear integer programming-based branch-and-bound method. The results of the comparative analysis revealed that the proposed hybrid method was more cost-effective than stochastic search methods. In another research study, a hybrid method was utilized in Martins and Dell’s [28] study, which employed new bounds, heuristics, and exact algorithms. The proposed method was able to determine an optimal solution for approximately 99.7% of the problems. The remaining 0.3% comprised of just one box varying from the optimal solution. Li et al.’s [29] study aimed to revolutionize the warehouse design through elevating the routing optimization problem of two forklifts operating in a four-door warehouse, considered as a quadratic assignment problem. Sahin-Arslan and Ertem [30] investigated how and at what cost freight containers could be used as an inventory-holding mechanism for humanitarian logistics.
Most of the above-mentioned solutions to the PLP have the limitations of either being computationally expensive for large problem sizes or providing sub-optimal solutions. In our proposed solution for the PLP, an ML-based two-phase algorithm was developed in order to solve the 3D PLP comprising of identical boxes. In addition, the proposed solution considers the storage time and humidity without any pallet overlap and overhang [10]. Furthermore, in our proposed study, five heuristics, i.e., the one-block heuristic, three-block heuristic, five-block heuristic, hollow block heuristic, and G5-heuristic, were used to evaluate the total number of identical boxes per horizontal layer and the corresponding box loading layout or pattern on the pallet [28,31,32]. As an addition to the second phase of our previous study [6], the number of horizontal layers per pallet is computed on the basis of the dynamic compressive strength of the pallet for each of the heuristics. Consequently, the total number of boxes per horizontal layer and the total number of horizontal layers are used to determine the number of boxes per pallet for each of the aforementioned five heuristics. In the final stage, the box-loading layout that furnishes the maximum number of boxes per pallet is preferred. To the best of our knowledge, no prior study evaluated the solution for the PLP using ML methods. The models were trained and tested on real-world data acquired from the DHL supply chain; therefore, the results of this study can be significantly utilized in any similar research study. We could not compare the results since no study using traditional optimization could be found in the literature for pallet loading. Therefore, we believe that this is an original contribution to the literature.

3. Methodology

In this section, the methodology utilized for the proposed research is described. Figure 1 shows the methodology of this study. It should be noted that the relevant methods and performance measures given in the literature are significant for evaluating the methods utilized to solve the PLP in this paper. In addition, such a comprehensive evaluation provides a basis for the comparison of various methods. Our methodology is described in the following subsections.

3.1. Number of the Boxes Loaded onto the Pallet

The process to ascertain the number of identical boxes to be placed on a typical pallet was divided into two phases. The dimensions of a typical box are coded as a tuple l , w , h ,   and   m , where l is the length of the box, w is the width of the box, h is the height of the box, and m is the weight of the box. Similarly, the dimensions of the pallet are defined as a tuple L , W , H m a x ,   and   M m a x , where L is the pallet length, W is the pallet width, H m a x is the maximum allowable pallet load height, and M m a x is the maximum allowable weight on the pallet, in such a way that L l , W w . In the first phase, the total number of boxes loaded on the horizontal layer is identified. These boxes should be placed completely onto the pallet without any overlap or overhang. If the value of (pallet area)/(box area) is less than 101, many studies [25,28,31,32,33] have shown that various heuristics, such as one-block, three-block, five-block, hollow-block, and G5-heuristics, can determine the maximum number of boxes to be arranged in each horizontal layer. In the second phase, the total number of horizontal layers per pallet is calculated on the basis of H m a x . Both these phases are elaborated as follows.

3.1.1. Phase I: Determining the Box Arrangement on a Horizontal Layer

In this phase, different heuristics, such as one-block, three-block, five-block, hollow-block, and G5-heuristics, are implemented to arrange the boxes on a horizontal layer with known and fixed dimensions. Any of these five heuristics can yield the maximum number of boxes in the layer. Furthermore, three partition methods, termed feasible partition, efficient partition, and perfect partition, are utilized to fit the boxes completely on the pallet without any overlap or overhang. These methods are explained as follows:
Assuming that q , n denotes an ordered pair of non-negative integers satisfying the condition q l + n w S for a pallet dimension S (L or W), then the ordered pair q , n is known as a feasible partition of S . If q and n also satisfy the condition 0 S q l n w < l , then q , n is called an efficient partition of S . Similarly, if q and n satisfy the condition q l + n w = S , then q , n is called a perfect partition of S . The set of all feasible partitions of the pallet dimension S is denoted as F(S, l, w). The set of all efficient partitions of the pallet dimension S is denoted as PE(S, a, b), and the set of all perfect partitions of the pallet dimension S is denoted as P(S, l, w) [34,35].
In the one-block heuristic, the boxes are loaded in either H-box or V-box orientation on the basis of the ratio between the dimensions of the pallet and boxes without any overhang. For example, identical boxes with known dimensions are loaded onto the pallet; h is a dimension perpendicular to the surface of the pallet, as depicted in Figure 2. If L l W w > W l L w , where the length of the boxes is parallel to the length of the pallet, then the horizontal layout pattern for the boxes in this layer is known as the H-box pattern; otherwise, if the length of the box is parallel to the width of the pallet, the box vertical layout pattern is known as the V-box pattern. All boxes in the layer should be loaded into the layer in the uniform orientation, which means that all boxes must have either an H-box or V-box layout. There are also three possibilities to load the boxes in the layer, where either l , w h is perpendicular to the surface of the pallet.
In the three-block and five-block heuristics, the layout of the layer is divided into three and five blocks, respectively (Figure 3). The boxes in each block should be arranged uniformly in either an H-box or V-box orientation [31,36].
The hollow block heuristic can also be utilized to load identical boxes on the horizontal layer. The heuristic divides the layer layout into diagonal and main blocks, as presented in Figure 4. Diagonal blocks ( D B ) and main blocks ( M B ) are created with boxes loaded in different directions, where these blocks should cover the entire length and width of the pallet [28]. The boxes’ orientation in each block is identical.
The G5-heuristic is one of the heuristics in the PLP literature frequently used in order to maximize the total number of boxes loaded into a horizontal layer and minimize the waste area. In this heuristic, the layout of the layer is divided into five different blocks (four blocks in the corners and one in the center). The dimensions of the central block decrease if the dimensions of the other four blocks in the corners increase, and vice versa. Each block is loaded independently, and the loading process can be performed by any of the other four heuristics, namely the one-block, three-block, hollow block, and five-block heuristics. The total number of boxes per layer is calculated on the basis of the sum of the maximum number of boxes generated for each block [28]. Once the maximum number of boxes per horizontal layer is calculated using the five aforementioned heuristics, the optimal number of boxes in the layer is selected for three different possibilities based on h, b, and a as the perpendicular dimension to the pallet in each case.

3.1.2. Phase II: Computing the Number of Horizontal Layers on the Basis of the H m a x

In the second phase, the total number of boxes per pallet and the number of the horizontal layers per pallet are determined considering three parameters: (a) the total height of the horizontal layers should not exceed the H m a x ; (b) the total weight on the pallet should not be more than M m a x ; and (c) the average load on the box at the bottom horizontal layer of the pallet should be less than its dynamic compression strength, considering humidity, interlock stacking pattern, dimensions of the box, and storage time. The H m a x is determining either on the basis of storage on pallet within the warehouse, i.e., racks, floor, etc., or on the basis of transportation constraints, i.e., trailer internal height, number of horizontal layers loaded, etc. In this case, the height of the total number of the horizontal layers should be less than the H m a x since more than one horizontal layer can be used per pallet (Equation (1)). This paper assumes that all the layers have the same pattern, where overlap between layers is not allowed; therefore, all the horizontal layers are identical and have the same height, as depicted in Figure 5.
N H L m a x = H m a x B D P B
  • NHL: The maximum number of horizontal layers
  • BDPB: Box’s dimension perpendicular to the base
Furthermore, the total weight on the pallet should not be more than M m a x . This is important for several reasons. First, if there is no height limit, the number of boxes per pallet will be determined based on the M m a x per pallet. Second, the total weight of the boxes per pallet when loading on the shelves or the trailers should be less than the maximum weight capacity to avoid damage to the pallets, the shelves, and the trailers.
Compression strength is another parameter that is used to define the number of horizontal layers per pallet to maximize the total number of boxes loaded. Compression strength represents the capacity of a material or structure to withstand loads without any deterioration. For a pallet, compression strength is the maximum weight that the boxes in the bottom layer can support without any damage. In this section, pallet dynamic compression strength is calculated by modifying the McKee formula by adding considerations for humidity, storage time, interlock stacking pattern, and the pallet shape coefficients. The McKee formula is usually used to determine the static compression strength, which is a theoretical value under ideal laboratory conditions, with the temperature and humidity controlled within 73 ± 2 °F and 50% ± 2% RH, respectively [36]. On the other hand, under real conditions, dynamic compression strength is the actual compression strength of a box. Equations (2) and (3) show the static compression strength and dynamic compression strength. E C T is the Carton Edge Crush Test, which measures the ability of a corrugated board to sustain a top-to-bottom load [37]. C A L is caliper of the corrugated board, P E R is box perimeter from the top view, S S is the static compression strength, F O is the orientation coefficient form strength, F T is the storage time coefficient, F I is the interlock coefficient, F H is the humidity coefficient, and F G is the pallet shape coefficient (Table 1)
Static   Compression   Strength   S S   = 5.874 E C T   C A L 0.508   P E R 0.492
Dynamic   Compression   Strength   S D   = S S   F T   F H   F G F o F I

3.2. Machine Learning Methods for Classification

Classification is a technique employed in AI and ML that is used to label a given dataset into different classes in order to extract useful information [39]. Currently, classification methods are used in many fields, such as speech recognition [40], image classification [41], and document classification [42]. Fundamentally, there are two classification methods, which are binary and multi-class classifications [43]. In the binary classification, a given problem is divided into two situations or classes, such as male/female in gender prediction [44] and sick/not sick in disease prediction [45]. On the other hand, multi-class classification is used in problems in which there are more than two cases, such as estimating different flower types [46]. There are classification methods such as ANNs, Support Vector Machines (SVMs), KNN, Naive Bayes (NB), Decision Trees (DT), and Random Forest. In this study, all these classification methods are used because of their success and frequent use in recent research studies.
In the process of the development of ANNs, researchers were inspired by the human nervous system [47]. These ANNs consist of input, output, and hidden layers, and they are trained and tested on a real dataset to classify the data into different classes. Later on, the trained ANN models try to predict the outcome of any new data for further analysis [48]. This whole process is governed by the neurons in the layers and an activation function. This activation function (also called the objective function) is a predefined goal for a particular ANN model.
The SVM enables the use of vectors (separators) to divide the training data into areas (categories) as far away as possible [49]. It assigns the test data a certain category according to the area of a particular vector that they fall into and uses a subset of training points when making decisions in the classification process. For this reason, the SVM process uses memory efficiently and is effective for high-dimensional data.
The KNN method classifies an object in the input parameter field with the majority vote of the object’s neighbors [50]. In this way, an object is assigned to the most common class among its nearest neighbor, i.e., k (user-specified integer). This method classifies objects according to their similarity in the point of property. It is a simple method to implement and provides effective results in large test datasets [51].
The DT method is a flowchart-like tree structure in which an inner node represents the property (or attribute), a branch represents a decision rule, and each leaf node represents the result [52]. The top node in a DT is termed the root node. It learns to partition according to the attribute value and sections the tree recursively with the recursive partitioning call. This flowchart-like structure in a DT helps in decision-making [53]. Therefore, DTs are easy to understand and interpret.
The Random Forest method is a supervised learning algorithm. It can be used for both classification and regression. It is also the most flexible and easy-to-use algorithm [54]. Similar to a forest consisting of numerous trees, the random forests generate decision trees on a randomly-selected data samples, each making a guess from the tree and choosing the optimal solution by voting [55]. Furthermore, this method provides a reasonably good indication of the feature’s importance.

3.3. Evaluation Metrics

The evaluation metrics are typically used to quantify, analyze, and test the success of classification and estimation methods [56]. Global metrics such as overall accuracy, overall balanced accuracy, Cohen’s Kappa, Matthew’s Correlation Coefficient extended to multi-class, and confusion entropy ensure the quantification of multi-class classification and enable the comparison of various classification methods and techniques [57].
In the classification process, the ability of a model to perform a correct classification is quantified with the accuracy value [58], which is directly computed from the confusion matrix [57].
Accuracy = T P + T N T P + T N + F P + F N
Accuracy is a very intuitive metric that enables an overall understanding of the performance of a model on the test data [57]. However, when dealing with imbalanced datasets, accuracy has a tendency to conceal strong classification errors for classes with a limited number of units [57]. In this case, accuracy does not enable the identification of classes for which the model has suboptimal performance [57].
In the case of imbalanced datasets, balanced accuracy ensures that the prediction accuracy is not inflated because one or several classes have results that dominate the other classes [59]. This measure represents the arithmetic mean of the performance of a model for each class [59]. It is a balanced metric in the sense that it assigns the same weight and thus the same importance to each class studied [59].
Balanced   Accuracy = 1 C × p i n i ,
where p i is the correctly predicted number of data items in class i and n i is the true number of data items in class i.
As can be inferred from the formula below, the Matthews Correlation Coefficient uses all the entries of the confusion matrix both in the numerator and in the denominator. Because of this fact, it can generally be considered a balanced indicator of performance [59]. This measure takes values in the range [–1, 1], with values close to 1 indicating a strong prediction and correlation between the predicted and true labels. Values close to −1 indicate an inverse relationship between the predicted and true labels of the dataset and reflect systematic errors in the modeling process. In the case of values close to 0, the classifier makes random decisions when assigning the labels to the classes [59].
  • Matthews Correlation Coefficient for multi-class classification:
Given multi-class Confusion Matrix C:
K = c × s p k × t k s 2 p k 2 × s 2 t k 2
c = C k k the total number of elements correctly predicted; s = C i j the total number of elements; p k = C k i the total number of times class k was predicted; t k = C i k the total number of times that class k actually occurs.
  • Cohen’s Kappa for multi-class cases:
The Cohen’s Kappa Score possesses similarities to the Matthews Correlation Coefficient in the case of multi-class classification and leverages the expected accuracy, a measure that reflects the dependence obtained by chance between the predicted and the true labels [59]. The coefficient quantifies the agreement between the predicted and actual classes as follows: when K = 0, the model’s prediction is independent of the actual classification, when K = 1, the model’s prediction depends entirely on the actual classification, and when K = −1, there is no agreement between the model’s prediction and the actual classification [59].
Given multi-class Confusion Matrix C:
K = c × s p k × t k s 2 p k × t k
c = C k k the total number of elements that were correctly predicted; s = C i j the total number of elements; p k = C k i the total number of times class k was predicted; t k = C i k the total number of times that class k actually occurs.
The cross entropy quantifies the difference between two probability distributions, and it can be calculated using the formula below [60,61].
Cross   Entropy = L i k e l i h o o d R e f e r e n c e i × l o g 2 L i k e l i h o o d R e s p o n s e i
Sensitivity by class, specificity by class, precision by class, F1 by class, balanced accuracy by class, and confusion entropy by class enable us to understand the performance of different classifiers with respect to the classes being analyzed [60].
Sensitivity, also called the true positive rate, captures the proportion of positive outcomes that are correctly identified as such [60,62]. TP represents the prediction made when the model is able to correctly predict a positive outcome assigned to the correct class, whereas an FN occurs when a false prediction is assigned to the correct class [63].
Sensitivity = T P T P + F N
Specificity, also called true negative rate, captures the proportion of negative outcomes that are correctly identified as such [60,62]. In the case of TN, the false prediction is assigned to the incorrect class, while FP represents the correct estimate assigned to the incorrect class [63].
Specificity = T N T N + F P
Precision, also called positive predicted value, represents the proportion of positives that corresponds to the presence of a certain condition [60,62].
Precision = T P T P + F P
The F1-macro score is the harmonic mean of sensitivity and precision and is calculated according to the formula below [57,60]. In the computation of the F1-macro score, the largest classes are assigned the same importance as small classes [57], which makes the F1-macro score a suitable indicator of the performance of a machine learning algorithm on an imbalanced dataset. A high F1-macro value means that the algorithm performs well on all classes under consideration, whereas a low F1-macro score is an indicator of poor prediction of the classes analyzed [57].
F 1 macro = 2 C Sensitivity i × Precision i Sensitivity i + Precision i
The balanced accuracy represents, in essence, an average of recalls. It is computed according to the formula below [57].
Balanced   Accuracy = Sensitivity + Specificity 2 = T P T P + F N + T N T N + F P 2
The confusion entropy indicates how well samples belonging to different classes have been separated from each other. It exploits the misclassification of information of confusion matrices in order to quantify the confusion level of the class distribution of misclassified samples [60].
C E N j = P j , k C l o g 2 C 1 P j , k j + P k , j j l o g 2 C 1 P k , j j ,   where
P i , j i = C i j C i k + C k i  
where C i j is the entry found at position (i,j) in the confusion matrix.

4. Application and Dataset Description

This section presents our methodology to implement the ML models to solve the PLP. The ML models were trained and tested on a real dataset. Moreover, a comprehensive evaluation strategy was employed in order to compare the results with various ML algorithms.

4.1. Dataset

In this paper, the dataset comprised 15,187 data points, which contained various types of boxes and pallet-sizes. This dataset was used for the training and testing of different models, which utilized the aforementioned five heuristic algorithms to place the boxes on pallets according to their variable lengths, heights, and widths to obtain optimal results for their arrangements. This dataset is available as listed within an Excel file. The pre-processing of the dataset was first performed by data filtering to create a meaningful classification and eliminate unnecessary data points. The pre-processed dataset is extremely important for the proper training and testing process of the ML models. For instance, from this dataset, the data in accordance with the most commonly-used standard pallet sizes 42 × 42 (P1), 45 × 45 (P2), and 48 × 40 (P3) were selected for training and testing. Thus, our algorithm is applicable only for the P1, P2, and P3 pallet sizes, with only approximately 1 in 15 instances being further considered. While selecting these data, the PUV (pallet utilization volume) ratio for both the P1 and P2 pallet sizes was 85%, and the PUV ratio for the P3 pallet was 95% or above. Thus, a total of 1110 data points were finalized, with 314 for the P1 pallets, 333 for the P2 pallets, and 463 for the P3 pallets. Table 2 presents the dataset details used in this research study.

4.2. Implementation Details

All the ML models were trained and tested on a uniform dataset; 10-fold cross-validation was used for the 1110 data points for which the algorithm can be applied. Since we were dealing with an imbalanced data set, we first split the data into 10 folds, with 9 folds used for training and the remaining fold used for testing. Since we were dealing with a limited amount of data, we used an oversampling technique called Synthetic Minority Over-Sampling Technique (SMOTE) on the testing dataset in order to address the imbalanced class problem by oversampling the under-represented classes [64]. We used the SMOTE technique implemented in the Python imblearn package [65]. We computed the required metrics using the Python packages scikit-learn [66] and PyCM [60]. For each metric, the average result over 10 rounds of cross-validation is reported. The metrics were computed according to Equations (4)–(14).
All classification models were implemented in Python 3.8 and were executed for training and testing on the given dataset on a computer with Intel i7 2.4 GHz CPU and 8 GB RAM.
The classification models used in this study required a number of parameters for the tuning before the actual training phase was initiated. These parameters for each classifier are described in detail as follows. The values of these standard parameters were optimized in order to acquire better results during the training and testing phases.
For the ANN classifier, since there are three target classes (P1, P2 and P3 pallets) and four inputs (box width, length, height value and demand), a network structure with four inputs and three outputs was created, and two hidden layers each containing 10 neurons were utilized. For the activation function, sigmoid was used. Moreover, the “adam” solver was chosen, with max_iter = 10,000. The random state was set to 0. For the DTC, the parameters max depth = none, min samples split = 2, random state = none, and min_samples_leaf = 1 were selected. For the KNN classifier, the parameters n_neighbors = 5, weights = “uniform”, and algorithm = “auto” were chosen. For the Random Forest classifier, the parameters n_estimators = 100, max_depth = none, min_samples_leaf = 1, and random_state = none were used. For the SVM classifier, the parameters kernel = “rbf”, degree = 3, gamma = “scale”, coef0 = 0.0, cache_size = 200, class_weight = none, verbose = false, max_iter = −1, and random_state = none were chosen.

5. Results and Discussion

In our previous study [10], 15 real-life datasets were obtained from the DHL supply chain, and the proposed algorithm was applied to this dataset. After a detailed analysis, an algorithm was described and used for the results of other algorithms for comparison. Thus, the results comprising the total number of boxes per pallet were compared. Consequently, an improvement of 6.7% was reported compared with the previous methods by uniformly considering the same 15 real-life datasets. It was concluded that the proposed algorithm manifested an improvement over the previous state-of-the-art research.
In this research study, a current, more extensive dataset (given in Table 2) was used for training and testing with five different classification methods: ANN, DT, KNN, Random Forest, and SVM. The distribution of data according to three classes is depicted in Figure 6. It can be observed in this figure that all three classes are clustered around the box widths (Y-axis) and lengths (X-axis) of 5–20 units and 5–25 units, respectively.
Table 3 shows that the Random Forest Classifier achieved the highest accuracy on the test dataset, namely 89%, and the highest overall balanced accuracy, namely 88%. The Random Forest Classifier was closely followed by the Decision Tree Classifier, with an overall accuracy of 88% and an overall balanced accuracy of 87%. The Support Vector Machine Classifier achieved the lowest overall accuracy (74%) and the lowest overall balanced accuracy (74%).
Moreover, the Random Forest Classifier also ranked first in terms of Cohen’s Kappa, with K = 0.84, meaning that the model’s prediction depends entirely on the actual classification. The Decision Tree Classifier ranked second in terms of the Cohen’s Kappa metric, with K = 0.82. The Support Vector Machine Classifier also ranked last in terms of Cohen’s Kappa, with K = 0.62.
In terms of Matthews Correlation Coefficient, the Random Forest Classifier was the best performing model, showing that this classifier has high predictive power. The Decision Tree classifier ranked second (0.83), followed by the KNN (0.74), the ANN (0.66), and the SVM (0.63).
Regarding cross entropy, all the classifiers achieved similar results, with the Support Vector Machine classifier showing a slightly higher cross-entropy of 1.67.
In terms of sensitivity by class, the Random Forest Classifier achieved the best outcomes, reaching a sensitivity of 0.90 for class P1, 0.81 for class P2, and 0.94 for class P3. The Decision Tree classifier achieved comparable results, with a sensitivity of 0.90 for class P1, 0.8 for class P2, and 0.92 for class P3. The results are presented in Table 4.
Additionally, the Random Forest Classifier achieved the highest specificity for all three classes considered, namely 0.91 for class P1, 0.96 for class P2, and 0.97 for class P3.
It is worth mentioning that all classifiers achieved the highest specificity by class for class P3.
In terms of precision by class, the Random Forest Classifier ranked first, with class P1 having a precision of 0.84, class P2 having a precision of 0.88, and class P3 having a precision of 0.96. The best precision by class was achieved for class P3.
The Random Forest performed best in terms of the F1-macro score as well, achieving an F1-macro score of 0.86 for class P1, 0.82 for class P2, and 0.95 for class P3.
This classifier also performed best in terms of balanced accuracy by class, with a balanced accuracy for class P1 equal to 0.90, a balanced accuracy for class P2 equal to 0.88, and a balanced accuracy for class P3 equal to 0.95, showing a high predictive power.
The Random Forest Classifier displayed the lowest confusion entropy by class, namely 0.23 for class P1, 0.22 for class P2, and 0.12 for class P3.
The Confusion Matrix graphics of all five classifiers are depicted in Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11.
In Figure 7, the Confusion Matrix for the ANN classifier is presented. It can be observed that the ANN classifier correctly classified 83% of the P1 classes, 79% of the P2 classes, and 81% of the P3 classes.
Judging from Figure 8, which depicts the Confusion Matrix for the Decision Tree, the classifier managed to correctly predict 100% of classes P1, P2, and P3.
Figure 9 shows the Confusion Matrix for the KNN classifier, which managed to correctly capture 97% of the P1 classes, 92% of the P2 classes, and 94% of the P3 classes.
In Figure 10, the Confusion Matrix for the Random Forest classifier is shown. It can be observed that this classifier managed to predict 100% of classes P1, P2, and P3.
Judging from Figure 11, which illustrates the Confusion Matrix for the SVM, the classifier managed to correctly capture 73% of the P1 classes, 75% of the P2 classes, and 77% of the P3 classes.
According to Figure 12, average PUV values in P1, P2, and P3 were 90.31, 78.67, and 82.97, respectively.
The PUV values of 777 boxes were calculated for each pallet size, and the results are presented in Figure 13. It can be noted that the maximum PUV values were obtained in the case of P1 because of the smallest volume of the pallet in P1. Pallet size P3 provided the second best PUV value results because of its smaller volume compared with P1. Finally, the PUV values of the largest pallet volume (P3) were the highest because they had the largest volume.
Overall, the variety of results given in Section 5 provide an overall idea for shipment designers to choose better pallet or box sizes for the pallet loading. Furthermore, it was observed that all the ML classifiers have high accuracy, and the designer can select an appropriate set of pallets, box sizes, and configurations using these results.

6. Conclusions

This paper shows an application of ML methods in a warehouse for the PLP. Because of the global competition faced by large companies such as DHL, shipment issues must be addressed in an optimal manner to save costs, time, and energy. In logistics, storage and transportation are two key elements, as they increase the company’s expenditure. Reducing the storage and transportation costs may increase the profitability of the company. Subsequently, the use of pallets plays an important role in the transportation and storage of many products, and this process facilitates the efficient shipment of any product(s) by allowing them to be stored in any given facility. To solve the PLP for better facilitation, various studies have been carried out over time. In these studies, different methods have been attempted for efficient pallet loading consisting of boxes of the same or different sizes. The PLP involves many different factors, thereby making the solution NP-hard. Therefore, various methods have been developed for the solution of the PLP in the literature. In this paper, we developed a method to speed up the pallet-loading process. We utilized the three basic pallet classifications using ML. Our results provide a framework for shipment designers to decide which pallet to use when the box dimensions and demand are given. These results are significant in terms of saving considerable costs, time, and other resources.
However, our study has some limitations: it can be applied to only three of the most commonly-used standard pallet sizes. Consequently, our algorithm can be applied to only 1 in 15 real instances that satisfy these criteria.
For future research, we aim to develop an AI-based model that can efficiently predict a solution for pallet loading with variable-sized boxes. In addition, several other factors, such as moisture and PUV, will be considered. We also envision the application of neural networks to help us determine pallet sizes in the case involving more than three classes.

Author Contributions

B.L.A.: conceptualization, methodology, M.İ. and O.O.: software, M.İ. and O.O.: methodology, M.S.: data acquisition, writing—original draft preparation, B.L.A. and N.A.: writing—review and editing, G.S.: supervision, writing—review and editing, B.S.: funding acquisition, writing—original draft preparation. All authors have read and agreed to the published version of the manuscript.

Funding

This study received funding from King Saud University through researcher-supporting project number RSP-2021/145, and the APC was funded by King Saud University through researcher-supporting project number RSP-2021/145.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Terno, J.; Scheithauer, G.; Sommerweiß, U.; Riehme, J. An efficient approach for the multi-pallet loading problem. Eur. J. Oper. Res. 2000, 123, 372–381. [Google Scholar] [CrossRef]
  2. Hodgson, T.J. A Combined Approach to the Pallet Loading Problem. AIIE Trans. 1982, 14, 175–182. [Google Scholar] [CrossRef]
  3. Davies, A.P.; Bischoff, E.E. Weight distribution considerations in container loading. Eur. J. Oper. Res. 1999, 114, 509–527. [Google Scholar] [CrossRef]
  4. Gonçalves, J.F.; Resende, M.G.C. A parallel multi-population biased random-key genetic algorithm for a container loading problem. Comput. Oper. Res. 2012, 39, 179–190. [Google Scholar] [CrossRef]
  5. Lau, H.C.W.; Chan, T.M.; Tsui, W.T.; Ho, G.T.S.; Choy, K.L. An AI approach for optimizing multi-pallet loading operations. Expert Syst. Appl. 2009, 36, 4296–4312. [Google Scholar] [CrossRef]
  6. Barros, H.; Pereira, T.; Ramos, A.G.; Ferreira, F.A. Complexity Constraint in the Distributor’s Pallet. Mathematics 2021, 9, 1742. [Google Scholar] [CrossRef]
  7. Dell’Amico, M.; Magnani, M. Solving a Real-Life Distributor’s Pallet Loading Problem. Math. Comput. Appl. 2021, 26, 53. [Google Scholar] [CrossRef]
  8. Dias Saraiva, R.; Nepomuceno, N.; Pinheiro, P.R. A Two-Phase Approach for Single Container Loading with Weakly Heterogeneous Boxes. Algorithms 2019, 12, 67. [Google Scholar] [CrossRef] [Green Version]
  9. Tkaczyk, S.; Drozd, M.; Kędzierski, Ł.; Santarek, K. Study of the Stability of Palletized Cargo by Dynamic Test Method Performed on Laboratory Test Bench. Sensors 2021, 21, 5129. [Google Scholar] [CrossRef]
  10. Singh, M.; Almasarwah, N.; Süer, G. A Two-Phase Algorithm to Solve a 3-Dimensional Pallet Loading Problem. Procedia Manuf. 2019, 39, 1474–1481. [Google Scholar] [CrossRef]
  11. Chen, F.F.; Huang, J.; Centeno, M.A. Intelligent scheduling and control of rail-guided vehicles and load/unload operations in a flexible manufacturing system. J. Intell. Manuf. 1999, 10, 405–421. [Google Scholar] [CrossRef]
  12. Li, J.; Xiong, N.; Park, J.H.; Liu, C.; Ma, S.; Cho, S. Intelligent model design of cluster supply chain with horizontal cooperation. J. Intell. Manuf. 2012, 23, 917–931. [Google Scholar] [CrossRef]
  13. Pandian, A.P. Artificial intelligence application in smart warehousing environment for automated logistics. J. Artif. Intell. Res. Cap. Net. 2019, 1, 63–72. [Google Scholar] [CrossRef]
  14. Hiremath, N.C.; Sahu, S.; Tiwari, M.K. Multi objective outbound logistics network design for a manufacturing supply chain. J. Intell. Manuf. 2013, 24, 1071–1084. [Google Scholar] [CrossRef]
  15. Berry, T.M.; Ambaw, A.; Defraeye, T.; Coetzee, C.; Opara, U.L. Moisture adsorption in palletised corrugated fibreboard cartons under shipping conditions: A CFD modelling approach. Food Bioprod. Process. 2019, 114, 43–59. [Google Scholar] [CrossRef]
  16. Goliberenko, D. Analysis of a Particular Logistics Systems: DHL Case. Bachelor’s Thesis, University of Finance and Administration, Prague, Czech Republic, 2019. [Google Scholar]
  17. Ahn, S.; Park, C.; Yoon, K. An improved best-first branch and bound algorithm for the pallet-loading problem using a staircase structure. Expert Syst. Appl. 2015, 42, 7676–7683. [Google Scholar] [CrossRef]
  18. Dowsland, K.A. An exact algorithm for the pallet loading problem. Eur. J. Oper. Res. 1987, 31, 78–84. [Google Scholar] [CrossRef]
  19. Chen, C.S.; Sarin, S.; Ram, B. The pallet packing problem for non-uniform box sizes. Int. J. Prod. Res. 1991, 29, 1963–1968. [Google Scholar] [CrossRef]
  20. Tarnowski, A.G.; Terno, J.; Scheithauer, G. A Polynomial Time Algorithm for the Guillotine Pallet Loading Problem. INFOR Inf. Syst. Oper. Res. 1994, 32, 275–287. [Google Scholar] [CrossRef]
  21. Ahn, S.; Yoon, K.; Park, J. A best-first branch and bound algorithm for the pallet-loading problem. Int. J. Prod. Res. 2015, 53, 835–849. [Google Scholar] [CrossRef]
  22. Schuster, M.; Bormann, R.; Steidl, D.; Reynolds-Haertle, S.; Stilman, M. Stable stacking for the distributor’s pallet packing problem. In Proceedings of the 2010 IEEE/RSJ International Conference on Intelligent Robots and Systems, Taipei, Taiwan, 18–22 October 2010; pp. 3646–3651. [Google Scholar]
  23. Chan, F.T.S.; Bhagwat, R.; Kumar, N.; Tiwari, M.K.; Lam, P. Development of a decision support system for air-cargo pallets loading problem: A case study. Expert Syst. Appl. 2006, 31, 472–485. [Google Scholar] [CrossRef]
  24. Neliβen, J. How to use structural constraints to compute an upper bound for the pallet loading problem. Eur. J. Oper. Res. 1995, 84, 662–680. [Google Scholar] [CrossRef]
  25. Bischoff, E.E.; Janetz, F.; Ratcliff, M.S.W. Loading pallets with non-identical items. Eur. J. Oper. Res. 1995, 84, 681–692. [Google Scholar] [CrossRef]
  26. Young-Gun, G.; Kang, M.-K. A fast algorithm for two-dimensional pallet loading problems of large size. Eur. J. Oper. Res. 2001, 134, 193–202. [Google Scholar] [CrossRef]
  27. Bhattacharya, S.; Roy, R.; Bhattacharya, S. An exact depth-first algorithm for the pallet loading problem. Eur. J. Oper. Res. 1998, 110, 610–625. [Google Scholar] [CrossRef]
  28. Martins, G.H.A.; Dell, R.F. Solving the pallet loading problem. Eur. J. Oper. Res. 2008, 184, 429–440. [Google Scholar] [CrossRef] [Green Version]
  29. Li, J.; Zhang, F.; Wan, Z.; Sun, J.; Ke, L.G.; Zuo, J.; Li, K. Design of an optimized forklift routes for a four-door dangerous goods monolayer warehouse through genetic particle swarm optimization algorithm. Int. J. Ind. Eng. 2020, 27, 276–287. [Google Scholar]
  30. Sahin-Arslan, A.; Ertem, M.A. A warehouse design with containers for humanitarian logistics: A real-life implementation from Turkey. Int. J. Ind. Eng. 2019, 26, 139–155. [Google Scholar]
  31. Martins, G.H.A.; Dell, R.F. The minimum size instance of a Pallet Loading Problem equivalence class. Eur. J. Oper. Res. 2007, 179, 17–26. [Google Scholar] [CrossRef] [Green Version]
  32. Neliβen, J. New Approaches to the Pallet Loading Problem. Schriften zur Informatik und Angewandten Mathematik 1993, 155, 1–43. [Google Scholar]
  33. Liu, F.-H.F.; Hsiao, C.J. A three-dimensional pallet loading method for single-size boxes. J. Oper. Res. Soc. 1997, 48, 726–735. [Google Scholar] [CrossRef]
  34. Bischoff, E.; Dowsland, W.B. An Application of the Micro to Product Design and Distribution. J. Oper. Res. Soc. 1982, 33, 271–280. [Google Scholar] [CrossRef]
  35. Dowsland, K.A. The Three-Dimensional Pallet Chart: An Analysis of the Factors Affecting the Set of Feasible Layouts for a Class of Two-Dimensional Packing Problems. J. Oper. Res. Soc. 1984, 35, 895–905. [Google Scholar] [CrossRef]
  36. Frank, B. Corrugated Box Compression—A Literature Survey. Packag. Technol. Sci. 2014, 27, 105–128. [Google Scholar] [CrossRef]
  37. Cape Pack User Guide. 2012. Available online: http://docs.esko.com/docs/en-us/cape/2.13/userguide/cp213_retail_user_guide-master.pdf (accessed on 10 May 2021).
  38. Corrugated Compression Strength. (14 February 2014). Retrieved 15 March 2017. Available online: https://wiki.esko.com/display/KBA/KB82221048%3A+Cape+Pack+-+Compression+Strength+Program (accessed on 15 May 2021).
  39. Kotsiantis, S.B. Supervised Machine Learning: A Review of Classification Techniques. Informatica 2007, 31, 249–268. [Google Scholar]
  40. Biing-Hwang, J.; Wu, H.; Chin-Hui, L. Minimum classification error rate methods for speech recognition. IEEE Trans. Audio Speech Lang. Process. 1997, 5, 257–265. [Google Scholar] [CrossRef] [Green Version]
  41. Haralick, R.M.; Shanmugam, K.; Dinstein, I. Textural Features for Image Classification. IEEE Trans. Syst. Man Cybern. 1973, SMC-3, 610–621. [Google Scholar] [CrossRef] [Green Version]
  42. Manevitz, L.M.; Malik, Y. Nouvelles Acquisitions Dans L’Etude Des Orgasmes Feminins. J. Mach. Learn. Res. 2001, 2, 139–154. [Google Scholar]
  43. Mathur, A.; Foody, G.M. Multiclass and Binary SVM Classification: Implications for Training and Classification Users. IEEE Geosci. Remote. Sens. Lett. 2008, 5, 241–245. [Google Scholar] [CrossRef]
  44. Antipov, G.; Berrani, S.-A.; Dugelay, J.-L. Minimalistic CNN-based ensemble model for gender prediction from face images. Pattern Recognit. Lett. 2016, 70, 59–65. [Google Scholar] [CrossRef]
  45. Cruz, J.A.; Wishart, D.S. Applications of Machine Learning in Cancer Prediction and Prognosis. Cancer Inform. 2006, 2, 59–77. [Google Scholar] [CrossRef]
  46. De Marsico, M.; Petrosino, A.; Ricciardi, S. Iris recognition through machine learning techniques: A survey. Pattern Recognit. Lett. 2016, 82, 106–115. [Google Scholar] [CrossRef]
  47. Saritas, M.M.; Yasar, A. Performance Analysis of ANN and Naive Bayes Classification Algorithm for Data Classification. Int. J. Intell. Syst. Appl. Eng. 2019, 7, 88–91. [Google Scholar] [CrossRef] [Green Version]
  48. Jain, A.K.; Jianchang, M.; Mohiuddin, K.M. Artificial neural networks: A tutorial. Computer 1996, 29, 31–44. [Google Scholar] [CrossRef] [Green Version]
  49. Furey, T.S.; Cristianini, N.; Duffy, N.; Bednarski, D.W.; Schummer, M.; Haussler, D. Support vector machine classification and validation of cancer tissue samples using microarray expression data. Bioinformatics 2000, 16, 906–914. [Google Scholar] [CrossRef]
  50. Hu, L.-Y.; Huang, M.-W.; Ke, S.-W.; Tsai, C.-F. The distance function effect on k-nearest neighbor classification for medical datasets. SpringerPlus 2016, 5, 1304. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  51. Ramírez-Gallego, S.; Krawczyk, B.; García, S.; Woźniak, M.; Benítez, J.M.; Herrera, F. Nearest Neighbor Classification for High-Speed Big Data Streams Using Spark. IEEE Trans. Syst. Man Cybern. Syst. 2017, 47, 2727–2739. [Google Scholar] [CrossRef]
  52. Dai, Q.Y.; Zhang, C.P.; Wu, H. Research of decision tree classification algorithm in data mining. Int. J. Database Theory Appl. 2016, 9, 1–8. [Google Scholar] [CrossRef]
  53. Shahbazi, F. Using Decision Tree Classification Algorithm to Design and Construct the Credit Rating Model for Banking Customers. IOSR J. Bus. Manag. 2020, 21, 24–28. [Google Scholar] [CrossRef]
  54. Akar, Ö.; Güngör, O. Integrating multiple texture methods and NDVI to the Random Forest classification algorithm to detect tea and hazelnut plantation areas in northeast Turkey. Int. J. Remote Sens. 2015, 36, 442–464. [Google Scholar] [CrossRef]
  55. Lakshmanaprabu, S.K.; Shankar, K.; Ilayaraja, M.; Nasir, A.W.; Vijayakumar, V.; Chilamkurti, N. Random forest for big data classification in the internet of things using optimal features. Int. J. Mach. Learn. Cybern. 2019, 10, 2609–2618. [Google Scholar] [CrossRef]
  56. Chicco, D.; Jurman, G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genom. 2020, 21, 6. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  57. Grandini, M.; Bagli, E.; Visani, G. Metrics for multi-class classification: An overview. arXiv 2020, arXiv:2008.05756. [Google Scholar]
  58. Chai, K.E.K.; Anthony, S.; Coiera, E.; Magrabi, F. Using statistical text classification to identify health information technology incidents. J. Am. Med. Inform. Assoc. 2013, 20, 980–985. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  59. Gupta, A.; Tatbul, N.; Marcus, R.; Zhou, S.; Lee, I.; Gottschlich, J. Class-weighted evaluation metrics for imbalanced data classification. arXiv 2020, arXiv:2010.05995. [Google Scholar]
  60. Haghighi, S.; Jasemi, M.; Hessabi, S.; Zolanvari, A. PyCM: Multiclass confusion matrix library in Python. J. Open Source Softw. 2018, 3, 729l. [Google Scholar] [CrossRef] [Green Version]
  61. Cover, T.M.; Thomas, J.A. Elements of Information Theory; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  62. Sammut, C.; Webb, G.I. Encyclopedia of Machine Learning; Springer Science & Business Media: Berlin, Germany, 2011. [Google Scholar]
  63. Yates, A.; Etzioni, O. Unsupervised Methods for Determining Object and Relation Synonyms on the Web. J. Artif. Intell. Res. 2009, 34, 255–296. [Google Scholar] [CrossRef] [Green Version]
  64. Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef]
  65. Lemaitre, G.; Nogueira, F.; Aridas, C.K. Imbalanced-learn: A Python Toolbox to Tackle the Curse of Imbalanced Datasets in Machine Learning. J. Mach. Learn. Res. 2017, 18, 559–563. [Google Scholar]
  66. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
Figure 1. Flow chart of the proposed approach.
Figure 1. Flow chart of the proposed approach.
Applsci 11 08304 g001
Figure 2. One-block heuristic. (a) Arrangement of boxes per horizontal layer using the one-block heuristic. (b) Top view for the horizontal layer using the one-block heuristic.
Figure 2. One-block heuristic. (a) Arrangement of boxes per horizontal layer using the one-block heuristic. (b) Top view for the horizontal layer using the one-block heuristic.
Applsci 11 08304 g002
Figure 3. The three-block and five-block heuristics: (a) three-block heuristic and (b) five-block heuristic [36].
Figure 3. The three-block and five-block heuristics: (a) three-block heuristic and (b) five-block heuristic [36].
Applsci 11 08304 g003
Figure 4. Hollow block [28].
Figure 4. Hollow block [28].
Applsci 11 08304 g004
Figure 5. Pallet Loading Problem with identical horizontal layers based on H m a x .
Figure 5. Pallet Loading Problem with identical horizontal layers based on H m a x .
Applsci 11 08304 g005
Figure 6. Distribution of the 1K data points according to class.
Figure 6. Distribution of the 1K data points according to class.
Applsci 11 08304 g006
Figure 7. Normalized confusion matrix for ANN.
Figure 7. Normalized confusion matrix for ANN.
Applsci 11 08304 g007
Figure 8. Normalized confusion matrix for Decision Tree.
Figure 8. Normalized confusion matrix for Decision Tree.
Applsci 11 08304 g008
Figure 9. Normalized confusion matrix for KNN.
Figure 9. Normalized confusion matrix for KNN.
Applsci 11 08304 g009
Figure 10. Normalized confusion matrix for Random Forest.
Figure 10. Normalized confusion matrix for Random Forest.
Applsci 11 08304 g010
Figure 11. Confusion matrix for SVM classifier.
Figure 11. Confusion matrix for SVM classifier.
Applsci 11 08304 g011
Figure 12. Distribution of average PUV values for the 1 K instances for which the algorithm can be applied.
Figure 12. Distribution of average PUV values for the 1 K instances for which the algorithm can be applied.
Applsci 11 08304 g012
Figure 13. A comparison of PUV values according to pallet sizes for the 1 K instances for which the algorithm can be applied.
Figure 13. A comparison of PUV values according to pallet sizes for the 1 K instances for which the algorithm can be applied.
Applsci 11 08304 g013
Table 1. Dynamic strength factors [38].
Table 1. Dynamic strength factors [38].
Storage   Time   ( F T ) Humidity   ( F H ) Pallet   Surface   Gapped   ( F G ) Interlock   ( F I ) Perpendicular   Dimension   to   Base   ( F o )
010–0.451.1Yes0.92Yes0.601st Shortest Dimension of Box1
1–30.70.45–0.551No1No12nd Shortest Dimension of Box0.9
4–100.650.55–0.650.9 Longest Dimension of Box0.8
11–300.60.65–0.750.8
31–900.550.75–0.850.7
91–1200.50.85–10.5
121–3000.45
Table 2. The datasets used in model training and testing.
Table 2. The datasets used in model training and testing.
Total Data PointsData Points after Pre-ProcessingP1 PalletsP2 PalletsP3 Pallets
TrainingTestingTrainingTestingTrainingTesting
15,1871110283312993441746
Table 3. Evaluation of the ANN, Decision Tree, KNN, Random Forest, and Support Vector Machine on the test dataset in terms of global metrics.
Table 3. Evaluation of the ANN, Decision Tree, KNN, Random Forest, and Support Vector Machine on the test dataset in terms of global metrics.
MethodAccuracyOverall Balanced AccuracyCohen’s KappaMatthew’s Correlation CoefficientCross Entropy
ANN0.760.760.640.661.66
Decision Tree0.880.870.820.831.61
KNN0.820.810.730.741.65
Random Forest0.890.880.840.841.61
Support Vector Machine0.740.740.620.631.67
Table 4. Evaluation of the ANN, Decision Tree, KNN, Random Forest, and Support Vector Machine on the test dataset in terms of metrics by class.
Table 4. Evaluation of the ANN, Decision Tree, KNN, Random Forest, and Support Vector Machine on the test dataset in terms of metrics by class.
MethodClass (Pallet)Sensitivity by ClassSpecificity by ClassPrecision by ClassF1-Macro by ClassBalanced Accuracy by ClassConfusion Entropy by Class
ANNP10.760.890.790.750.820.36
P20.720.820.650.650.770.42
P30.790.940.910.840.860.28
Decision TreeP10.900.900.840.850.900.24
P20.800.940.850.810.870.25
P30.920.960.950.930.940.15
KNNP10.790.880.780.770.840.36
P20.810.880.760.760.850.32
P30.840.960.940.870.900.20
Random ForestP10.900.910.840.860.900.23
P20.810.960.880.820.880.22
P30.940.970.960.950.950.12
Support Vector MachineP10.730.860.720.700.790.44
P20.710.850.690.640.780.39
P30.770.900.850.800.840.32
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Aylak, B.L.; İnce, M.; Oral, O.; Süer, G.; Almasarwah, N.; Singh, M.; Salah, B. Application of Machine Learning Methods for Pallet Loading Problem. Appl. Sci. 2021, 11, 8304. https://doi.org/10.3390/app11188304

AMA Style

Aylak BL, İnce M, Oral O, Süer G, Almasarwah N, Singh M, Salah B. Application of Machine Learning Methods for Pallet Loading Problem. Applied Sciences. 2021; 11(18):8304. https://doi.org/10.3390/app11188304

Chicago/Turabian Style

Aylak, Batin Latif, Murat İnce, Okan Oral, Gürsel Süer, Najat Almasarwah, Manjeet Singh, and Bashir Salah. 2021. "Application of Machine Learning Methods for Pallet Loading Problem" Applied Sciences 11, no. 18: 8304. https://doi.org/10.3390/app11188304

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