Next Article in Journal
A Dynamic Position Embedding-Based Model for Student Classroom Complete Meta-Action Recognition
Next Article in Special Issue
Diffusion Models-Based Purification for Common Corruptions on Robust 3D Object Detection
Previous Article in Journal
Modeling and Performance Analysis of LBT-Based RF-Powered NR-U Network for IoT
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Integrating Heuristic Methods with Deep Reinforcement Learning for Online 3D Bin-Packing Optimization

Department of Electrical and Computer Engineering, Tamkang University, New Taipei City 25137, Taiwan
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(16), 5370; https://doi.org/10.3390/s24165370
Submission received: 9 July 2024 / Revised: 14 August 2024 / Accepted: 16 August 2024 / Published: 20 August 2024
(This article belongs to the Special Issue Vision Sensors for Object Detection and Tracking)

Abstract

:
This study proposes a method named Hybrid Heuristic Proximal Policy Optimization (HHPPO) to implement online 3D bin-packing tasks. Some heuristic algorithms for bin-packing and the Proximal Policy Optimization (PPO) algorithm of deep reinforcement learning are integrated to implement this method. In the heuristic algorithms for bin-packing, an extreme point priority sorting method is proposed to sort the generated extreme points according to their waste spaces to improve space utilization. In addition, a 3D grid representation of the space status of the container is used, and some partial support constraints are proposed to increase the possibilities for stacking objects and enhance overall space utilization. In the PPO algorithm, some heuristic algorithms are integrated, and the reward function and the action space of the policy network are designed so that the proposed method can effectively complete the online 3D bin-packing task. Some experimental results illustrate that the proposed method has good results in achieving online 3D bin-packing tasks in some simulation environments. In addition, an environment with image vision is constructed to show that the proposed method indeed enables an actual robot manipulator to successfully and effectively complete the bin-packing task in a real environment.

1. Introduction

The three-dimensional bin-packing (3D-BP) problem is a classic combinatorial optimization problem aimed at arranging objects within container boxes to maximize space utilization [1,2]. Historically, the manual arrangement of items for packing has been labor-intensive and often yields suboptimal packing configurations. The 3D-BP problem is widely regarded as an NP-hard problem and can be categorized into offline and online. In the offline 3D-BP problem, the numbers and sizes of objects are known in advance, while the online 3D-BP problem is more challenging as it requires packing objects neatly into containers without prior knowledge of their quantities or sizes.
In the realm of packing problems, the one-dimensional bin-packing (1D-BP) problem stands out as a typical combinatorial optimization challenge, aiming to fit numerous items into the fewest number of boxes with predetermined capacities [3,4]. A review of relevant algorithms addressing the 1D-BP problem over the past two decades reveals its complexity and provides insights into its solution [5]. As dimensions increase, from two dimensions (2D) to three dimensions (3D), packing complexity escalates accordingly.
Early studies on 3D packing tasks primarily relied on well-designed heuristic algorithms [2,6,7,8], often inspired by manual packing experiences. For instance, research [9] introduced the layer-based approach three-dimensional bin-packing problem, dividing boxes into layers along two possible directions to maximize item arrangements. Expanding upon this approach, research [10] has proposed a three-stage layer-based heuristic to tackle the three-dimensional single-bin-size bin-packing problem. Additionally, research [11] presented a multi-objective 3D packing algorithm optimizing container usage and balancing weights across containers. The research in [12] combined research [9,11] to devise a multi-stage optimization algorithm for solving the 3D-BP problem.
Despite the effectiveness of heuristic algorithms, inherent limitations exist, such as lack of learning capabilities [13] and exponential growth in solution time with increasing problem sizes [14], rendering reliance solely on heuristic algorithms impractical for achieving optimal packing. Recently, deep reinforcement learning (DRL) has demonstrated promising performance across various domains, prompting its application in 3D packing problems [15,16,17,18,19,20]. Leveraging DRL enables continuous learning from manual packing experiences, aligning packing outcomes with human preferences. Particularly, addressing online 3D-BP using DRL has become a recent research trend [21,22]. Methods such as model-based reinforcement learning proposed by the research in [23], based on research [24], optimize container space utilization through DRL. Effective and easily implementable constrained DRL methods within the actor–critic framework were introduced by research [25]. Moreover, research [26] proposed an adjustable robust reinforcement learning approach to tackle online 3D-BP, effectively adjusting robustness weights to achieve an ideal balance of policy performance across various environmental conditions.
Given the NP-hard nature of the 3D-BP problem and the limitations of heuristic algorithms, there is a clear research gap in developing effective and efficient methods for online 3D-BP. This study aims to address this gap by combining reasonable constraints and heuristic algorithms with DRL to improve space utilization in practical scenarios involving robot manipulators for packing. These constraints include placement direction constraints and partial support constraints, which are necessary due to the limitations of robot manipulators without specially designed end effectors. The placement direction constraints prohibit the rotation of objects along the x and y axes, while partial support constraints increase the possibilities for stacking objects and enhance overall container space utilization.
This study is organized into four sections. Section 1 introduces the background and research objectives. Section 2 details the methodology for solving the 3D-BP problem using heuristic algorithms in conjunction with a DRL system. Section 3 describes the experimental environment established for the online 3D-BP task, along with the presentation of simulation and actual experimental results. Finally, Section 4 provides the conclusions and future work.

2. Methodology

This study adopts the classic and mainstream extreme point heuristic algorithm [27] within the realm of heuristic algorithms and enhances it with custom-designed modifications tailored to the overall online 3D-BP tasks.

2.1. Extreme Point Sorting Method

In the packing task, the current placement point of each item utilizes the extreme point method proposed by research [27], where each item’s stacking generates three extreme points: upper, left-front, and right-rear. Placing items at the upper extreme point may result in residual space due to varying item sizes. This residual space cannot accommodate all items, leading to space wastage. To minimize space wastage, we devise the extreme point priority sorting method to place items in positions with minimal wasted space. The operation flow is shown in Figure 1.
The method calculates the residual space generated after placing the current item at all placement points. If the residual space cannot accommodate all previously placed items, it is considered wasted space. If the residual space can accommodate one item, it is considered available space. All placement points are sorted based on wasted space, with those producing less wasted space prioritized. The prioritization sequence for placement points is as follows: points with no residual space, points with available space, and finally, points with wasted space, arranged from lowest to highest wasted space. Algorithm 1 provides the pseudocode for the extreme point priority sorting method.
Algorithm 1: Extreme Point Priority Sorting Method
  • Input EP: List of Extreme Points
  • Input I: Item to be added to the 3D bin
  • Input K: List of items already in the 3D bin
  • function Calculate_remain_space(I, EP):
  •   return space remaining
  • function Dec_waste_space(rem_spacei):
  •   if space remaining < for all object ∈ K
  •     return True
  • function Max_score(EP, score_list):
  •   return EP list ← score from high to low
  • for all i ∈ EP do
  •   rem_spacei = Cauculate_remain_space(I, i)
  •   if Dec_waste_space(rem_spacei) then
  •     score_list ← - rem_spacei
  •   else
  •     score_list ← 0
  •   end if
  • end for
  • return Max_score(EP, score_list)
When placing objects of different sizes, L-shaped residual spaces can be formed. Before calculating the residual space, the space generated after placement is divided into two residual spaces: one along the x-axis and one along the y-axis. The space division method follows the approach mentioned in the research of [5]. The outermost vertices of the object cut the residual space along the x-axis and y-axis. To utilize the space more efficiently, the direction with the longer residual axis is given a larger space. The overlapping space is defined as transferable space, which is allocated to the residual space along the longer axis.

2.2. Packing Constraints

Packing constraints are rules derived from manual packing experiences, designed to optimize the packing task. This study uses container space state representation to implement the constraints of the heuristic algorithm and packing constraints, including a simple non-complete support constraint.

2.2.1. Container Space State Representation

To enable the heuristic algorithm and related constraints to function effectively in the packing task, the state of the container space must first be represented. There are various methods for handling container space. For instance, the method used by study [28] involves cutting the remaining container space after placing an item and using an algorithm to determine whether the item can be placed to fit the remaining space. In contrast, study [25] proposed creating a 2D height map for container space projection, where the values filled in the 2D map represent the current height. However, the height map overlooks three-dimensional information, potentially causing discrepancies in some situations. To address this, study [13] proposed using a 3D grid to represent three different space states, wasted space, available space, and unavailable space, using the 3D grid as input to neural networks.
Building on the method by study [13], this study proposes creating a 3D grid to represent container space states, but with consideration for the support state of the space. The container space is divided into grids with a volume of 1, where each grid’s value indicates the current space state. The three defined space states, as shown in Figure 2, are space occupied, empty space without item support, and empty space with item support. This container space state representation allows for the evaluation of the rationality of item stacking within the container.

2.2.2. Partial Support Constraints

In traditional methods for stacking objects, complete support constraints are used to maintain static stability. This requires that the bottom of the object be fully supported by other objects or the container itself, prohibiting any overhanging placements. However, complete support constraints overly restrict space utilization and limit the heuristic algorithm’s flexibility.
In this study, we introduce partial support constraints to allow for more effective space use while maintaining stability. This is achieved through the object’s area and the center of the bottom of the object, with three main constraints: half the length of the object Lobject must be less than the length of the placement space Lspace, half the width of the object Wobject must be less than the width of the placement space Wspace, and the position directly below the center of the object objectpos must be supported by another object or the container. These constraints are mathematically represented by
1 2 L o b j e c t < L s p a c e
1 2 W o b j e c t < W s p a c e
o b j e c t p o s = ( x c e n t e r ,   y c e n t e r ,     z c e n t e r )
By adhering to these three constraints, objects achieve partial support, ensuring stability and preventing collapse due to inadequate support. Combining the extreme point method with partial support constraints increases the possibilities for item placement, thereby enhancing space utilization.

2.3. Integration of the Heuristic Algorithm with Deep Reinforcement Learning

In online 3D-BP tasks, training solely with DRL can result in poor training outcomes due to significant discrepancies in the definition of strategy quality. Therefore, heuristic algorithms are typically integrated into the training process. This section explains how heuristic algorithms and constraints are integrated into DRL, divided into three parts: extreme points and extreme point priority sorting constraints, deepest bottom left with fill, and reward function design.

2.3.1. Extreme Points and Extreme Point Priority Sorting Constraints

This study integrates extreme points and the extreme point priority sorting method into the action strategy of DRL. When placing objects into the target container, the current extreme point is identified using the extreme point algorithm, which becomes the chosen placement for the action strategy. As illustrated in Figure 3, the currently placed object generates three extreme points: upper, right, and front. The extreme points generated by previously placed objects are categorized as other extreme points. The upper extreme point is classified as another extreme point in the strategy selection. Thus, the action strategy offers three placement positions and two placement directions. Among the other extreme points, many placement points exist. Using the designed extreme point priority sorting method, the wasted space caused by each placement is calculated and sorted, arranging the extreme points from least to most wasted space. To determine whether an object can be placed in the container, the 3D grid state of the container is used to prevent unreasonable placement scenarios.

2.3.2. Deepest Bottom Left with Fill

The Deepest Bottom Left with Fill (DBLF) heuristic algorithm [29] aims to place objects as close to the target container’s corners and edges as possible. Building on the method by the research in [13], this study integrates DBLF into deep reinforcement learning by creating a 3D grid-based placement score space, similar to the 3D grid state method for container space. The container space is divided into grids with a volume of 1, where each grid’s value represents the placement score of an object.
Initially, the space score values are set to decrease from the bottom-left corner to the top-right corner, as illustrated in Figure 4. The figure shows a 2D score distribution, and each layer follows the depicted distribution. Stacking these distributions forms the initial 3D score space. The scoring is primarily based on whether there are objects near the space. As shown in Figure 5, if a space is already occupied, its grid score is removed; if a space is unoccupied but has neighboring objects, its grid score is increased by 3 points; if a space is unoccupied and has no neighboring objects, its grid score remains unchanged.
The reward function is designed to encourage the placement of objects in higher-scoring spaces, achieving the DBLF algorithm’s effect. This method ensures that objects are placed efficiently, maximizing space utilization by guiding the placement towards optimal positions within the container.

2.3.3. Reward Function Design

This study uses Proximal Policy Optimization (PPO) [30] combined with heuristic algorithms to train the online 3D-BP task. The reward function, a critical component in integrating heuristic algorithms, is primarily based on the placement score of objects. The reward score is derived from the placement space score, supplemented by the wasted space generated after placing the object. The less wasted space produced, the higher the reward score.
The feasibility of the chosen placement position and direction also affects the reward score. If an object cannot be placed, a penalty is applied by deducting an appropriate amount from the reward score. The final total reward score considers the current space utilization rate for overall scoring. The reward function in the online 3D-BP environment uses a proportional addition format. When an object cannot be placed, it signifies the end of an episode. The total reward for that episode, R t o t a l , can be expressed by
R t o t a l = γ · i = 0 n S i n + β · w a s t e f i r s t + β · σ S r a t i o
where S i is the score obtained from placing the i object, and n is the total number of objects placed in that episode. The first term represents the average placement score for the episode. w a s t e f i r s t is the area of the unused space at the bottom of the container at the end of the episode. σ is a standard for space utilization, which is not a standard deviation but an average value of the standard measure for space utilization, adjusted after running the bin-packing task multiple times. The exact number of runs can vary. S r a t i o is the overall space utilization ratio for the episode, which can be expressed by
S r a t i o = i = 0 n v i L · W · H · 100
where v i is the volume of the current object, and L, W, H are the length, width, and height of the container, respectively. The third term represents the difference between the space utilization and the standard value. β and γ are constant proportions that must satisfy the condition 2 β + γ = 1 . In Equation (4), S i refers to the score obtained from placing the i object, which is also the reward R s t e p for each placement step. The formula can be expressed by
R s t e p = S i =   ρ · S score p o s i ,   o r i i μ · w a s t e i ,     i f   a c t i o n i = 0   o r   a c t i o n i = 1     ω · S i 1 + τ · S score p o s i ,   o r i i ,                 i f   a c t i o n i = 2    
where S score refers to the grid score, which is the sum of the scores of the grids occupied by the placed object. posi represents the position of the i placement, o r i i i denotes the orientation of the i placement, and w a s t e i is the wasted space generated during the i object placement. S i 1 is the score obtained from the previous placement, and a c t i o n i is the action taken for the i placement. The constants ρ , μ , τ , and ω are predefined ratios. When a c t i o n i = 0 ,   1 , it indicates that the action strategy selects the front extreme point or the right extreme point. In these cases, S i is calculated by subtracting the ratio of wasted space from the placement score. When a c t i o n i = 2 , it indicates that the action strategy selects other extreme points, which have been filtered through the extreme point priority sorting method. These selected points are generally the best current positions. To prevent the heuristic algorithm from overly interfering with the learning of the action strategy, Si is set to the sum of the placement score from the i−1 placement and a proportion of the grid score from the current placement. The reward parameters used in the function are listed in Table 1.
During the bin-packing process, two situations may arise: (i) The currently chosen placement position is not feasible, while other positions are feasible. (ii) The currently chosen orientation is not feasible, while another orientation is feasible. For these situations, two penalty mechanisms are designed to deduct placement scores and described by
S i = S i 10 ,   i f   D s t a c k p o s i ,   o r i i = F a l s e             a n d   D s t a c k p o s n ,   o r i i = T r u e S i 5 ,   i f   D s t a c k p o s i ,   o r i i = F a l s e             a n d   ( D s t a c k p o s i ,   o r i n = T r u e               o r   D s t a c k p o s n ,   o r i n = T r u e )
where D s t a c k is used to determine if the placement is feasible through the grid state S s t a t e . If the grid states occupied by the placement position comply with the constraints, the D s t a c k outputs True; otherwise, it outputs False. The variables p o s n and o r i n represent the new placement position and orientation, respectively. If either of the two situations occur, the episode continues, but an appropriate placement score S i is deducted as a penalty for making an incorrect choice. By integrating these penalties and constraints into the reward function, the deep reinforcement learning model is guided to improve its decision-making process, leading to more efficient and optimal packing solutions.

3. Results and Discussion

3.1. System Architecture and Experimental Environment

The overall system architecture of this study is shown in Figure 6. In the motion control section of the robot manipulator, the MoveIt! motion planning module is utilized to plan the movements of the robot manipulator. This ensures that the manipulator can avoid all obstacles in its path and move quickly and accurately to the target position. In the visual assistance part, RGB-D images from a depth camera are used to obtain the three-dimensional length information and position of the target object. The obtained target object position is then converted into coordinates so that the robot manipulator can reach the target object to retrieve it. The information about the target object obtained is one of the inputs for the deep reinforcement learning system. Finally, the Robot Operating System (ROS) is used to transmit information between various modules and components, allowing the robot manipulator to complete the online 3D packing task. An actual experimental environment of this study is shown in Figure 7. The depth camera is mounted above the inspection area on the workbench to obtain the position and information of the target objects. The robot manipulator is installed on the right side of the workbench, with its end effector being a suction cup used for picking up target objects.

3.2. Result of Model Training

The model is based on the one provided by research [31], which shares similar constraints with this online 3D-BP task, considering only two orientations for the current object,   o r i ( 0 ,   0 ,   0 ) and o r i ( 0 ,   0 ,   90 ) . The dimensions of the objects and the container box are shown in Table 2.
To evaluate the proposed method, 100 test runs were conducted using the same model. The results are illustrated in Figure 8. Figure 8a,b show the packing results with space utilization rates of 90.08% and 90.06%, respectively. Figure 8c depicts the space utilization rate for each round of the 100 tests The proposed method achieved an average space utilization rate of approximately 83%, with the highest utilization reaching about 92% and the lowest around 74%. Figure 8d shows the number of objects placed in each of the 100 test tests. The average number of objects placed per round is around 455, with the maximum being 510 and the minimum being 405.
To compare the proposed HHPPO method with the model provided by research [31], Table 3 shows an improvement in the same model, with an average space utilization increase of 3%. The top 5% space utilization increased by up to 6%, and the bottom 5% space utilization improved by 3.4%. Additionally, Table 4 shows that the average number of objects placed increased by approximately 15. The test results confirm the effectiveness of the proposed method.
We also performed predictions on Model 2. The dimensions of the objects and the container box are shown in Table 5. We conducted 100 tests, and the results are illustrated in Figure 9. Figure 9a,b show the object placement results for a space utilization rate of 85.07%, from top and bottom views, respectively. Figure 9c presents the space utilization rate for each round of the 100 tests. It shows that the proposed method achieves an average space utilization rate of approximately 65% for Model 2. The highest space utilization rate is around 80%, and the lowest is about 48%. Figure 9d displays the number of objects placed in each of the 100 tests. The average number of objects placed per round is approximately 80, with the maximum being 105 and the minimum being 63. The result presents more challenges in achieving high space utilization compared to Model 1. This is because the sizes of all objects are closer to the size of the target container, making it difficult to completely fill the container. Moreover, the varying lengths and widths of the objects add to the complexity of stacking them neatly.

3.3. Experimental Results of Model Implement

The information on the objects used in the experiment is shown in Table 6. The experiments in this study are divided into two parts: online 3D-BP tasks simulated in Gazebo and tasks executed by a real robot in a real environment. Figure 10 shows the online 3D-BP task in the Gazebo simulation. Figure 11 depicts the storyboard of the online 3D-BP task in the real environment, and Figure 12 shows the front and rear views of the completed online 3D-BP task.

4. Conclusions

This study proposes the use of a PPO algorithm combined with heuristic algorithms to achieve online 3D-BP tasks. By leveraging visual assistance, the task can be completed in simulated and real-world environments using an actual robot manipulator. The main contributions comprise two parts: (i) In the heuristic algorithm for bin-packing, the proposed extreme point priority sorting method enhances space utilization by ranking the extreme points generated by the extreme point method based on wasted space. A 3D grid representation of container space is introduced, along with some partial support constraints designed according to the methods outlined in this study. (ii) In the deep reinforcement learning integration, a method combining heuristic algorithms with deep reinforcement learning is presented. The PPO algorithm is used, incorporating reward function design and the action space of the policy network. This combination integrates the extreme point method, DBLF algorithm, and the designed extreme point priority sorting heuristic algorithms, demonstrating promising results in the experiments. These contributions collectively advance the effectiveness and efficiency of the online 3D-BP task, providing an approach that can be applied in both simulated and real-world environments. In future work, unpacking algorithms will be used to create a more robust and efficient method to achieve efficient online 3D-BP tasks in dynamic environments. The objectives are to improve space utilization by minimizing the gaps between boxes through an advanced unpacking algorithm.

Author Contributions

Conceptualization, C.-C.W.; methodology, C.-C.W., T.-T.T. and C.-K.O.; software, T.-T.T. and C.-K.O.; validation, T.-T.T. and C.-K.O.; formal analysis, C.-C.W., T.-T.T. and C.-K.O.; investigation, T.-T.T. and C.-K.O.; resources, C.-C.W.; data curation, T.-T.T. and C.-K.O.; writing—original draft preparation, T.-T.T. and C.-K.O.; writing—review and editing, C.-C.W.; visualization, T.-T.T. and C.-K.O.; supervision, C.-C.W.; project administration, C.-C.W.; funding acquisition, C.-C.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partly supported by the National Science and Technology Council (NSTC) of Taiwan, R.O.C. under grant number NSTC 112-2221-E-032-035-MY2.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Martello, S.; Pisinger, D.; Vigo, D. The three-dimensional bin packing problem. Oper. Res. 2000, 48, 256–267. [Google Scholar] [CrossRef]
  2. Li, T.-H.S.; Liu, C.Y.; Kuo, P.H.; Fang, N.C.; Li, C.H.; Cheng, C.W.; Hsieh, C.Y.; Wu, L.F.; Liang, J.J.; Chen, C.Y. A three-dimensional adaptive PSO-based packing algorithm for an IoT-based automated e-fulfillment packaging system. IEEE Access 2017, 5, 9188–9205. [Google Scholar] [CrossRef]
  3. Fleszar, K.; Hindi, K.S. New heuristics for one-dimensional bin-packing. Comput. Oper. Res. 2002, 29, 821–839. [Google Scholar] [CrossRef]
  4. González-San-Martín, J.; Cruz-Reyes, L.; Gómez-Santillán, C.; Fraire, H.; Rangel-Valdez, N.; Dorronsoro, B.; Quiroz-Castellanos, M. Comparative Study of Heuristics for the One-Dimensional Bin Packing Problem. In Hybrid Intelligent Systems Based on Extensions of Fuzzy Logic, Neural Networks and Metaheuristics; Castillo, O., Melin, P., Eds.; Springer: Cham, Switzerland, 2023; pp. 293–305. [Google Scholar] [CrossRef]
  5. Zhao, H.; Zhu, C.; Xu, X.; Huang, H.; Xu, K. Learning practically feasible policies for online 3D bin packing. Sci. China Inf. Sci. 2022, 65, 112105. [Google Scholar] [CrossRef]
  6. Ma, Y.; Hong, X.; Dong, S.; Cheng, C.K. 3D CBL: An efficient algorithm for general 3D packing problems. In Proceedings of the 48th Midwest Symposium on Circuits and Systems, Covington, KY, USA, 7–10 August 2005; pp. 1079–1082. [Google Scholar]
  7. Gonçalves, J.F.; Resende, M.G. A biased random key genetic algorithm for 2D and 3D bin packing problems. Int. J. Prod. Econ. 2013, 145, 500–510. [Google Scholar] [CrossRef]
  8. Chen, C.-S.; Lee, S.-M.; Shen, Q. An analytical model for the container loading problem. Eur. J. Oper. Res. 1995, 80, 68–76. [Google Scholar] [CrossRef]
  9. Hasan, J.; Kaabi, J.; Harrath, Y. Multi-objective 3D bin-packing problem. In Proceedings of the 8th International Conference on Modeling Simulation and Applied Optimization (ICMSAO), Manama, Bahrain, 15–17 April 2019; pp. 1–5. [Google Scholar]
  10. Harrath, Y. A three-stage layer-based heuristic to solve the 3D bin-packing problem under balancing constraint. J. King Saud Univ.-Comput. Inf. Sci. 2022, 34, 6425–6431. [Google Scholar] [CrossRef]
  11. Kaabi, J.; Harrath, Y.; Bououdina, H.E.; Qasim, A.T. Toward smart logistics: A new algorithm for a multi-objective 3D bin packing problem. In Proceedings of the Smart Cities Symposium, Zallaq, Bahrain, 22–23 April 2018; pp. 1–5. [Google Scholar]
  12. Hsayri, M.; Tlili, M. A novel multi stage optimization algorithm for a 3D-BPP resolution. In Proceedings of the 17th International Conference on Innovations in Intelligent Systems and Applications (INISTA), Hammamet, Tunisia, 20–23 September 2023; pp. 1–5. [Google Scholar]
  13. Yang, S.; Song, S.; Chu, S.; Song, R.; Cheng, J.; Li, Y.; Zhang, W. Heuristics Integrated deep reinforcement learning for online 3D bin packing. IEEE Trans. Autom. Sci. Eng. 2023, 21, 939–950. [Google Scholar] [CrossRef]
  14. Zhu, W.; Chen, S.; Dai, M.; Tao, J. Solving a 3D bin packing problem with stacking constraints. Comput. Ind. Eng. 2024, 188, 109814. [Google Scholar] [CrossRef]
  15. Duan, L.; Hu, H.; Qian, Y.; Gong, Y.; Zhang, X.; Xu, Y.; Wei, J. A multi-task selected learning approach for solving 3D flexible bin packing problem. arXiv 2018, arXiv:1804.06896. [Google Scholar]
  16. Que, Q.; Yang, F.; Zhang, D. Solving 3D packing problem using transformer network and reinforcement learning. Expert Syst. Appl. 2023, 214, 119153. [Google Scholar] [CrossRef]
  17. Murdivien, S.A.; Um, J. Boxstacker: Deep reinforcement learning for 3D bin packing problem in virtual environment of logistics systems. Sensors 2023, 23, 6928. [Google Scholar] [CrossRef] [PubMed]
  18. Hu, H.; Zhang, X.; Yan, X.; Wang, L.; Xu, Y. Solving a new 3D bin packing problem with deep reinforcement learning method. arXiv 2017, arXiv:1708.05930. [Google Scholar]
  19. Nguyen, T.-H.; Nguyen, X.-T. Space splitting and merging technique for online 3-D bin packing. Mathematics 2023, 11, 1912. [Google Scholar] [CrossRef]
  20. Fang, J.; Rao, Y.; Zhao, X.; Du, B. A hybrid reinforcement learning algorithm for 2D irregular packing problems. Mathematics 2023, 11, 327. [Google Scholar] [CrossRef]
  21. Qi, M.; Zhang, L. Online 3D packing problem based on bi-value guidance. J. Comput. Commun. 2023, 11, 156–173. [Google Scholar] [CrossRef]
  22. Verma, R.; Singhal, A.; Khadilkar, H.; Basumatary, A.; Nayak, S.; Singh, H.V.; Kumar, S.; Sinha, R. A generalized reinforcement learning algorithm for online 3D bin-packing. arXiv 2020, arXiv:2007.00463. [Google Scholar]
  23. Puche, A.V.; Lee, S. Online 3D bin packing reinforcement learning solution with buffer. In Proceedings of the International Conference on Intelligent Robots and Systems (IROS), Kyoto, Japan, 23–27 October 2022; pp. 8902–8909. [Google Scholar]
  24. Wu, Y.; Mansimov, E.; Grosse, R.B.; Liao, S.; Ba, J. Scalable trust-region method for deep reinforcement learning using Kronecker-factored approximation. Adv. Neural Inf. Process. Syst. 2017, 30, 1–10. [Google Scholar]
  25. Zhao, H.; She, Q.; Zhu, C.; Yang, Y.; Xu, K. Online 3D bin packing with constrained deep reinforcement learning. Proc. AAAI Conf. Artif. Intell. 2021, 35, 741–749. [Google Scholar] [CrossRef]
  26. Pan, Y.; Chen, Y.; Lin, F. Adjustable robust reinforcement learning for online 3D bin packing. In Proceedings of the 37th Conference on Neural Information Processing Systems (NeurIPS 2023), New Orleans, LA, USA, 10 December 2023; pp. 1–29. Available online: https://proceedings.neurips.cc/paper_files/paper/2023/file/a345ed605675c7c484e740a8ceaa6b45-Paper-Conference.pdf (accessed on 8 July 2024).
  27. Crainic, T.G.; Perboli, G.; Tadei, R. Extreme point-based heuristics for three-dimensional bin packing. Informs J. Comput. 2008, 20, 368–384. [Google Scholar] [CrossRef]
  28. Liu, K.; Lv, X.-f. Research on palletizing and packing based on heuristic algorithm. J. Phys. Conf. Ser. 2023, 2449, 012040. [Google Scholar] [CrossRef]
  29. Karabulut, K.; İnceoğlu, M.M. A hybrid genetic algorithm for packing in 3D with deepest bottom left with fill method. In Proceedings of the International Conference on Advances in Information Systems, Izmir, Turkey, 20–22 October 2004; Springer: Berlin/Heidelberg, Germany, 2004; pp. 441–450. [Google Scholar]
  30. Schulman, J.; Wolski, F.; Dhariwal, P.; Radford, A.; Klimov, O. Proximal policy optimization algorithms. arXiv 2017, arXiv:1707.06347. [Google Scholar]
  31. Nguyen, T.-H.; Tran, V.-T.; Doan, P.-Q.; Mac, T.-T. A novel heuristic algorithm for online 3D bin packing. In Proceedings of the 21st International Conference on Control, Automation and Systems (ICCAS), Jeju, Republic of Korea, 12–15 October 2021; pp. 1993–1997. [Google Scholar]
Figure 1. Flowchart of the extreme points priority sorted.
Figure 1. Flowchart of the extreme points priority sorted.
Sensors 24 05370 g001
Figure 2. Three-dimensional grid state diagram.
Figure 2. Three-dimensional grid state diagram.
Sensors 24 05370 g002
Figure 3. Action strategy diagram.
Figure 3. Action strategy diagram.
Sensors 24 05370 g003
Figure 4. Diagram of initial space score.
Figure 4. Diagram of initial space score.
Sensors 24 05370 g004
Figure 5. Diagram of space score.
Figure 5. Diagram of space score.
Sensors 24 05370 g005
Figure 6. System architecture of the proposed method for 3D-BP tasks.
Figure 6. System architecture of the proposed method for 3D-BP tasks.
Sensors 24 05370 g006
Figure 7. Experimental environment of a real 3D-BP task using a robot manipulator.
Figure 7. Experimental environment of a real 3D-BP task using a robot manipulator.
Sensors 24 05370 g007
Figure 8. Test results of Model 1. (a) Top view of the packed result. (b) Bottom view of the packed result. (c) Space utilization rate for each round of the 100 tests. (d) Number of objects placed in each of the 100 tests.
Figure 8. Test results of Model 1. (a) Top view of the packed result. (b) Bottom view of the packed result. (c) Space utilization rate for each round of the 100 tests. (d) Number of objects placed in each of the 100 tests.
Sensors 24 05370 g008aSensors 24 05370 g008b
Figure 9. Test results of Model 2. (a) Top view of the packed result. (b) Bottom view of the packed result. (c) Space utilization rate for each round of the 100 tests. (d) Number of objects placed in each of the 100 tests.
Figure 9. Test results of Model 2. (a) Top view of the packed result. (b) Bottom view of the packed result. (c) Space utilization rate for each round of the 100 tests. (d) Number of objects placed in each of the 100 tests.
Sensors 24 05370 g009aSensors 24 05370 g009b
Figure 10. Snapshot of the online 3D-BP task simulation in Gazebo based on the proposed method. (a) The robot sucks the first object and approaches the packing bin. (b) The robot moves the first object towards the pre-determined position inside the bin. (c) The robot sucks the second object and approaches the packing bin. (d) The robot moves the second object towards the pre-determined position inside the bin. (e) The robot sucks the third object and approaches the packing bin. (f) The robot moves the third object towards the pre-determined position inside the bin. (g) The robot sucks the fourth object and approaches the packing bin. (h) The robot moves the fourth object towards the pre-determined position inside the bin. (i) The robot sucks the fifth object and approaches the packing bin. (j) The robot moves the fifth object towards the pre-determined position inside the bin. (k) The robot sucks the sixth object and approaches the packing bin. (l) The robot moves the sixth object towards the pre-determined position inside the bin.
Figure 10. Snapshot of the online 3D-BP task simulation in Gazebo based on the proposed method. (a) The robot sucks the first object and approaches the packing bin. (b) The robot moves the first object towards the pre-determined position inside the bin. (c) The robot sucks the second object and approaches the packing bin. (d) The robot moves the second object towards the pre-determined position inside the bin. (e) The robot sucks the third object and approaches the packing bin. (f) The robot moves the third object towards the pre-determined position inside the bin. (g) The robot sucks the fourth object and approaches the packing bin. (h) The robot moves the fourth object towards the pre-determined position inside the bin. (i) The robot sucks the fifth object and approaches the packing bin. (j) The robot moves the fifth object towards the pre-determined position inside the bin. (k) The robot sucks the sixth object and approaches the packing bin. (l) The robot moves the sixth object towards the pre-determined position inside the bin.
Sensors 24 05370 g010aSensors 24 05370 g010b
Figure 11. Snapshot of the online 3D-BP task with real robot manipulator based on the proposed method. (a) The robot sucks the first object and approaches the packing bin. (b) The robot moves the first object towards the pre-determined position inside the bin. (c) The robot sucks the second object and approaches the packing bin. (d) The robot moves the second object towards the pre-determined position inside the bin. (e) The robot sucks the third object and approaches the packing bin. (f) The robot moves the third object towards the pre-determined position inside the bin. (g) The robot sucks the fourth object and approaches the packing bin. (h) The robot moves the fourth object towards the pre-determined position inside the bin. (i) The robot sucks the fifth object and l approaches the packing bin. (j) The robot moves the fifth object towards the pre-determined position inside the bin. (k) The robot sucks the sixth object and approaches the packing bin. (l) The robot moves the sixth object towards the pre-determined position inside the bin.
Figure 11. Snapshot of the online 3D-BP task with real robot manipulator based on the proposed method. (a) The robot sucks the first object and approaches the packing bin. (b) The robot moves the first object towards the pre-determined position inside the bin. (c) The robot sucks the second object and approaches the packing bin. (d) The robot moves the second object towards the pre-determined position inside the bin. (e) The robot sucks the third object and approaches the packing bin. (f) The robot moves the third object towards the pre-determined position inside the bin. (g) The robot sucks the fourth object and approaches the packing bin. (h) The robot moves the fourth object towards the pre-determined position inside the bin. (i) The robot sucks the fifth object and l approaches the packing bin. (j) The robot moves the fifth object towards the pre-determined position inside the bin. (k) The robot sucks the sixth object and approaches the packing bin. (l) The robot moves the sixth object towards the pre-determined position inside the bin.
Sensors 24 05370 g011aSensors 24 05370 g011b
Figure 12. Results of an online 3D-BP task by the proposed method for a real robot manipulator. (a) Top-front view of the bin. (b) Side view of the bin.
Figure 12. Results of an online 3D-BP task by the proposed method for a real robot manipulator. (a) Top-front view of the bin. (b) Side view of the bin.
Sensors 24 05370 g012
Table 1. Parameter table of reward function.
Table 1. Parameter table of reward function.
ParametersDefinitionValue
σ Standard for space utilization80
β Constant0.2
γ Constant0.6
L Length of container400 (cm)
W Width of container300 (cm)
H Height of container200 (cm)
ρ Constant0.7
μ Constant0.3
τ Constant0.2
ω Constant0.8
Table 2. Object information of Model 1.
Table 2. Object information of Model 1.
ObjectSize (cm)Color
Object 130 × 40 × 20Orange
Object 230 × 50 × 20Blue
Object 340 × 50 × 20Purple
Object 430 × 50 × 40Green
Object 540 × 50 × 30Light blue
Container400 × 300 × 200Wood color (transparent)
Table 3. Space utilization in each round between research [31] and the proposed method.
Table 3. Space utilization in each round between research [31] and the proposed method.
Space UtilizationResearch [31]HHPPOComparison
Highest85%92%Increase 7%
Top 5%83.2%89.2%Increase 6%
Average80%83%Increase 3%
Bottom 5%72.4%75.8%Increase 3.4%
Lowest70%74%Increase 4%
Table 4. Number of objects placed in each round between research [31] and the proposed method.
Table 4. Number of objects placed in each round between research [31] and the proposed method.
Space UtilizationResearch [31]HHPPOComparison
Highest475505Increase 30
Top 5%473500Increase 27
Average440455Increase 15
Bottom 5%410424Increase 14
Lowest395405Increase 10
Table 5. Object information of Model 2.
Table 5. Object information of Model 2.
ObjectSize (cm)Color
Object 150 × 100 × 20Red
Object 230 × 90 × 10Brown
Object 350 × 50 × 50Blue
Object 460 × 60 × 10Green
Container300 × 200 × 150Wood color (transparent)
Table 6. Object information of implement model.
Table 6. Object information of implement model.
ObjectSize (cm)Color
Object 121 × 28 × 10Red
Object 221 × 25 × 12Green
Object 312 × 25 × 23Blue
Object 421 × 4 × 12Yellow
Object 511 × 7 × 18Pink
Object 622 × 6 × 11Orange
Container35 × 35 × 24Wood color
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

Wong, C.-C.; Tsai, T.-T.; Ou, C.-K. Integrating Heuristic Methods with Deep Reinforcement Learning for Online 3D Bin-Packing Optimization. Sensors 2024, 24, 5370. https://doi.org/10.3390/s24165370

AMA Style

Wong C-C, Tsai T-T, Ou C-K. Integrating Heuristic Methods with Deep Reinforcement Learning for Online 3D Bin-Packing Optimization. Sensors. 2024; 24(16):5370. https://doi.org/10.3390/s24165370

Chicago/Turabian Style

Wong, Ching-Chang, Tai-Ting Tsai, and Can-Kun Ou. 2024. "Integrating Heuristic Methods with Deep Reinforcement Learning for Online 3D Bin-Packing Optimization" Sensors 24, no. 16: 5370. https://doi.org/10.3390/s24165370

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