Abstract
Due to the continuous rise in energy costs for industrial robots (IRs), energy conservation has become one of the primary concerns in modern industry. This article presents a new, efficient approach for optimal trajectory planning of industrial robots in terms of time, jerk, and energy, while taking into consideration the kinematic constraints of the robot. A fifth-order B-spline interpolation method is adopted for curve fitting the trajectory in joint space to ensure smooth and continuous jerk in the robot’s articulation movements. The adjustable parameters of the trajectory are then optimized using the non-dominated sorting genetic algorithm II (NSGA-II) to minimize traveling time, jerk, and energy consumption (EC) throughout the trajectory. Unlike time and jerk, establishing a precise mathematical relationship between energy consumption and the dynamics of a robot across different trajectories is challenging and not easily applicable. This study uses the deep learning technique long short-term memory (LSTM) to accurately uncover the quantitative relationships between trajectory operational parameters and energy consumption. The main advantage of this approach, compared to other proposed optimizations, is that it can predict and optimize the robot’s energy consumption before the real-time execution of the task, and it does not require setting a priori the overall execution time of the trajectory. The results on a six degree of freedom industrial robot demonstrate that the suggested approach reduces energy consumption by 49.87% and average absolute jerk by 60.56% compared to chord length distribution method with the same trajectory execution time.
Keywords
1. Introduction
Robot manipulators are nowadays increasingly being integrated into assembly and manufacturing lines due to their ability to increase efficiency, flexibility, and safety (Rezali et al., 2024). However, higher demands regarding the motion performance of the industrial robots are also emphasized, notably minimum time, minimum jerk, and minimum energy during the trajectory planning.
Trajectory planning plays a crucial role in improving the productivity of industrial robots for several reasons: trajectory planning minimizes unnecessary movements, reducing cycle time; well-planned trajectories result in smoother motion profiles for the robot, minimizing jerky movements and vibrations that can lead to wear and tear on mechanical components; and optimized trajectories can reduce energy consumption by minimizing unnecessary accelerations and decelerations, leading to more efficient operation and lower operating costs. Thus, one of the main concerns associated with the use of robot manipulators is the optimization of trajectory planning, considering the three mentioned criteria.
Time-minimum trajectory planning is one of the requirements to drive higher production rates of robotic cells by determine a minimal time required to traverse a predefined path of the task while adhering to physical constraints of robot and without compromising the quality of the task. In recent years, many researches have addressed this problem; in Oberherber et al. (2015), the trajectory is represented by splines, and then optimized using dynamic programming (DP) algorithm to provide time-optimal trajectory and smoothness. In Kaserer et al. (2018), the authors present a new DP algorithm to obtain a time-optimal trajectory considering torque and jerk boundaries, and then compare it to the sequential convex programming (SCP) method. Serdar, in his work Kucuk (2016), developed a numerical method to obtain a trajectory that avoids collisions and robot singularities. He then constructed the trajectory using cubic splines and optimized it with a particle swarm optimization algorithm for optimal execution time. Further research on time-optimal trajectory is addressed using numerical methods, such as Kunz and Stilman (2012); Pham (2014); Pham and Quang-Cuong (2017, 2018); and Wang et al. (2023), where the work focuses on finding an appropriate time scaling to locate the switches points between maximum acceleration and maximum deceleration, reducing time trajectory. However, considering only the time factor in robot trajectory planning is not sufficient, especially given the growing cost of energy resources.
The trajectory minimum time of a robot can have a significant influence on jerk, which is the rate of change of acceleration. Jerk has an important role in determining how smoothly and efficiently a robot can move from one point to another, but it is an undesirable factor. Several studies have addressed to minimize both time and jerk in trajectory planning. In the work of Gasparetto and Zanotto (2010), third- and fifth-order B-spline interpolations are used for trajectory planning. Their approach optimizes a single objective function that combines execution time and the integral of squared jerk. However, this method is not suitable for scenarios with a non-convex solution set. In Li et al. (2018), the motion profile is generated using quintic B-spline curves for pick-and-place parallel robot to achieve C4-continuity, considering two performance indices based on acceleration and jerk. Junsen et al. Huang et al. (2018) also applied a 5th-order B-spline curve to interpolate the trajectory in joint space and optimized it using the elitist non-dominated sorting genetic algorithm (NSGA-II), considering time and jerk as objectives. In Lu et al. (2020), the viapoints of trajectory in Cartesian space are interpolated using 5th-degree polynomials and then optimized using a sequential quadratic programming (SQP) algorithm, with the objective function aimed at minimizing joint jerks. Zhang et al. (2021) also applied SQP algorithm to obtain time–jerk optimal trajectory for a robotic excavator. In Zhao et al. (2022), to manage the trade-off issue between the jerk and the time, hybrid meta-heuristic algorithms are used to optimize the objective function, where particle swarm optimization and improved whale optimization algorithm (PSO-IWOA) are merged to enhance the convergence of the optimal solution. But as we know, the required time to accomplish tasks and the jerk profile of a robot’s movement can significantly influence its energy consumption. Optimizing motion profiles, reducing task execution delays, and ensuring the efficient operation of components are key strategies for minimizing energy consumption in robotic systems (Gultekin et al., 2021).
The energy consumption minimization of a robot manipulator is an essential requirement to reduce the operating costs of the robotic applications, particularly in light of the growing cost of energy resources (Soori et al., 2023), and is also significant to reduce the effects on the environment (Rocha et al., 2021; Javaid et al., 2021). This has motivated academic research groups to focus on research into energy consumption recently. The authors in Carabin and Scalera (2020) present a method for minimum-energy trajectory planning in industrial robotic systems based on the modeling of an electro-mechanical system with one degree of freedom. While this method may be suitable for 1-DOF systems, it is not ideal for high-DOF systems such as those with six degrees of freedom. In Vidussi et al. (2021), an energy analysis of robot manipulators is presented to demonstrate the strong correlation between the inertia ellipsoid index and the robot’s effective energy consumption, based on the dynamic and electro-mechanical models of a 3-DOF SCARA robot. However, the authors do not account for the power consumption of the electronic components in the system cabinet. In Gadaleta et al. (2019), a software tool is designed that can interact with offline programming simulators of robots used in industrial applications, allowing it to compute and optimize motion parameters in terms of energy. A new investigation into energy consumption is carried out using a data-driven method, where the robot’s energy profile is modeled using an artificial neural network to predict it (Zhang and Yan, 2021; Jiang et al., 2023). In Li et al. (2023), the energy is optimized based on the robot’s dynamics, where joint torque is considered an objective function and optimized using the SQP algorithm. However, most research focusing on robot energy consumption does not pay attention to time and jerk, despite the importance of these criteria.
As concluded in the above discussion, limited works have been conducted on the consideration of execution time, jerk, and energy consumption simultaneously, except for some works that take all of them into account. As in Wu et al. (2021), the trajectory is planned using the method of non-uniform rational B-splines (NURBS) which takes into account time, energy, and jerk. In Chen et al. (2023), the trajectory of robot is interpolated by a quintic B-spline and optimized with a quantum-behaved particle swarm optimization (QPSO) algorithm to obtain time–jerk–energy optimal trajectory for a parallel robot. However, in these works, the authors consider the joints accelerations to represent consumption of energy, which is insufficient to express the actual energy consumed by the robot, primarily related to the torque provided by the actuators. This is difficult due to the unavailability of the exact dynamic model of the robot.
Despite these advancements in the field of trajectory planning, several deficiencies still exist: (1) The absence of an explicit mathematical relationship for energy consumption in robotic systems often leads to the use of indirect indicators, such as acceleration, to estimate energy usage. (2) Important factors, such as jerk (the rate of change of acceleration), are often overlooked during the optimization process. Neglecting jerk constraints can result in increased vibrations when the planned trajectory is executed by the robot manipulator. (3) Limited research has been conducted on the simultaneous consideration of execution time, energy consumption, and jerk, all of which are critical factors for achieving optimal performance in robotic trajectory planning.
In light of these requirements, this work focuses on trajectory planning to optimize the time, jerk, and energy. The highlights of this study are as follows: • A 5th-order B-spline is applied in conjunction with a multi-objective optimization technique to construct the robot trajectory to ensure a smooth and continuous trajectory up to the jerk, which is a crucial factor for achieving precise and efficient robot motion. • In the absence of an explicit relationship with energy, a predictive model of the energy consumption profile is designed using a long short-term memory (LSTM) technique, which is used as objective function in the optimization. It also enables the prediction of the robot’s energy consumption prior to the real-time execution of a task. • The trajectory is optimized using NSGA-II to minimize time, jerk, and energy along the trajectory planning. • To demonstrate the effectiveness of our method, we compare it with a classical trajectory planning method.
The outline of this article is as follows. In Section 2, the optimization problem of trajectory planning is stated. In Section 3, LSTM network is described for designing a model for predicting energy consumption profile. In Section 4, the NSGA-II tool is applied to find the time–energy–jerk optimal trajectory for a 6-DOF industrial robot. In Section 5, simulation results are presented with relevant discussions, and then compared with the classical method. Finally, Section 6 concludes the work.
2. Problem statements
2.1. Time–energy–jerk optimization problem formulation
To realize the motion path of a manipulator robot, it is necessary for the robot to move through a sequence of waypoints (or viapoints) in Cartesian space. As Gasparetto mentions in Gasparetto et al. (2015), the robot trajectories generally are planned in the joint space, and in this work, the trajectory planned is carried out in the joint space. Consecutive waypoints in Cartesian space are transformed into joint space via the inverse kinematic model. From the waypoints in joint space, the trajectory would be made then optimized to minimize certain objectives.
The trajectory must be sufficiently smooth to avoid excessive mechanical vibrations, and the travel time should be minimized as much as possible, especially the consumed energy, which must be kept to a minimum. This consideration includes kinematic limits such as velocity, acceleration, and jerk.
Different performance indices are used to evaluate the planned trajectory. In Gasparetto and Zanotto (2008, 2007), sum of time and integral of square jerk has been defined as a term in the objective function. In Kyriakopoulos and Saridis (1988), maximum jerk’s value is considered. In this paper, the performance indices for execution time, jerk, and energy consumption are presented in equations (1)–(3).
The robot trajectory planning translates into multi-objective optimization problem and can be defined mathematically as follows.
Minimize:
Subject to:
Explanation of symbols in the optimization problem formulation.
2.2. Trajectory planning by 5th-order B-spline in joint space
In robot programming applications, it is necessary to plan smooth and continuous trajectories until third derivative (jerk) (Simon, 2004). For this purpose, it is recommended to use B-spline method, as it offers great flexibility in shaping the trajectory and also can be optimized to accomplish the best possible trajectory in terms of time, jerk, and energy efficiency. It’s expressed by the following equation:
The continuity of the jerk requires adopting a fifth-degree B-spline (p = 5). The trajectory in the Cartesian space is discretized into number of waypoints and two virtual (vp = (2) points are added at the second and second-last position of the waypoints sequence to obtain a smooth trajectory (no jerk) at either extremities (Gasparetto and Zanotto, 2008). These points are then mapped into joint space through the robot’s inverse kinematic model to find the viapoints q
k
(k = 0, …, n), which are interpolated at times t
k
. The goal is to find the control points d
j
, j = 0, …, m that ensure
It is first necessary to define the knot vector
The length of knot vector is n + 2p + vp + 1 = n knot + 1; in B-spline function calculations, the relation between n knot , m, and p is n knot − p − 1 = m; thus the control points number is n + vp + p = m + 1.
To determine the control point vector
From equation (9), n + vp + p equations are required to build a square system of m + 1 equations and m + 1 unknown control points, and the extra p + 1 can be provided by imposing initial and final conditions of velocity, acceleration, and jerk of trajectory.
The formulas of velocity, acceleration, and jerk can be obtained by differentiating equation (5) up to the third order.
The velocity, acceleration, and jerk at waypoints can be described as following:
The initial and final values of velocity, acceleration, and jerk can be expressed as follows:
Thus, the control points can be obtained by equation (22):
Considering that the control points vector relies on the times intervals between waypoints, alterations to the trajectory’s velocity, acceleration, and jerk may arise.
3. Prediction model of energy consumption using LSTM
As stated in the problem formulation, an energy consumption model is required to construct an optimization objective function. To determine the energy consumed by the manipulator robot, one must either analyze and extract the mathematical relationship between the current, voltage, and time of each servo motor of the robot to calculate power, which is difficult to resolve, or describe it by torque through robot dynamic model which is difficult to obtain in practice.
Methods based on deep learning have recently gained popularity for creating models to predict the robot’s energy consumption. This is due to their simple modeling approach, which avoids complex dynamic modeling processes (Yan and Zhang, 2021; Lin et al., 2024; He et al., 2020).
LSTM is an improved version of the theory of recurrent neural network (RNN) regression, due to its ability to identify non-linear and complex relationships (Graves, 2012). In this study LSTM is applied to establish the relationship between the executed trajectory and its corresponding consumed energy.
The components of the proposed LSTM network are data preprocessing module, input layer, three LSTM layers, dropout layer, fully connected layer, and regression layer. The data preprocessing module normalizes the training data and removes features with constant values that may have a negative impact on training. The LSTM layers can learn from sequences data and retain information over time steps and exploit deep relationships between energy consumption and input variables. To prevent LSTM over-fitting risk, a dropout layer is adopted. The fully connected layer is added for learning non-linear combinations of data features. The regression layer calculates the error loss in output layer for the regression task. Figure 1 illustrates the architecture of our proposed LSTM network for regression. The input sequence of our designing LSTM network can be represented as Schematic of the proposed LSTM network.

3.1. Structure of LSTM cell
The LSTM cell is the alternative element of the neuron in RNNs, capable of modeling long-term dependencies through the use of memory cells to store information and gates to regulate its flow between them (see Figure 2). LSTM cell architecture.
The flow of information is regulated by the forget gate G
t
, input gate I
t
, output gate O
t
, and also cell candidate
4. Time–jerk–energy optimization using NSGA-II
The NSGA-II is multi-optimization method that was developed by Deb et al. (2002) has proven its effectiveness in various fields where optimization problems involve multiple conflicting objectives. This method aims to efficiently explore the solution space, maintain diversity among solutions, and identify solutions for conflicting objectives called Pareto-optimal solutions.
In the NSGA-II process, the offspring population Q t is initially formed by utilizing the parental population P it , along with the standard genetic operators. Subsequently, P it and Q it are merged to form a new population R it , of size 2P. Then, the R it population is classified based on non-domination sorting method. In new generation, the parent population Pit+1 is filled by non-dominated fronts increasingly until the population size achieves P. Solutions are sorted based on crowding distance in descending order. This scenario is illustrated in Algorithm 1.
According to the section analysis, solving the problem of time–jerk–energy optimal trajectory planning consists of finding the control points of the B-spline curve, which relies on the time instants of the waypoints. In this study, the optimizer works to find appropriate time instants for the waypoints of the trajectory, minimizing the objectives described in equations (1)–(3) under the kinematic constraints described in equation (4).
In the optimization procedure, the optimizer defines the instants of time t
k
corresponding to the predefined waypoints of the reference trajectory. The generated trajectory is tested against the constraints, then evaluated through the objective functions, and optimizes the sequence of t
k
, repeating the process until the objective is achieved. Figure 3 illustrates the optimization flowchart. Flowchart of optimization.
5. Results and discussion
To demonstrate the feasibility of the proposed approach, simulation experiments are carried out on an industrial robot model the of 6-DOF Fanuc M710iC70 (see Figure 4). 3D robot model of Fanuc M710iC70.
The proposed approach is implemented in the MATLAB/Simulink software environment. The simulation computer is configured with a 3.5 GHz dual-core processor and 8 GB of RAM. The computation time for training the LSTM model is approximately 27 minutes, while the computation time for the optimization process is 17 minutes. The simulation experiments focus on three main aspects:
Robot energy consumption model: This involves designing an energy consumption profile model for the robot, which is based on data collection, training, and validation using a test sample.
Process optimization: This aspect involves running the process optimization to obtain optimal time parameters, which results in an optimal trajectory in terms of time, jerk, and energy.
Method comparison: This provides a comparison between the proposed approach and one of the classical methods in trajectory planning of robots to evaluate the effectiveness of our approach.
5.1. Robot energy consumption model
For training the energy model, input/output data were extracted from the experimental simulations. The position, velocity, and acceleration are considered input data, and the integral of the absolute value of the corresponding torque, representing energy consumption, is taken as output data. In this study, the input data consist of the position, velocity, and acceleration of six robot joints, as the movement of a single joint can affect the robot’s overall energy consumption, while in the output data, we preferred to take the sum of energy consumption of all joints to avoid complexity in calculation, as well as the total energy being what matters to us for an IR system.
Parameters of proposed LSTM.
The LSTM model was trained using different numbers of trajectories (50, 100, 150, and 200) to evaluate its performance in terms of root mean squared error (RMSE) and achieve maximum accuracy. As shown in Figures 5–7, the RMSE decreases as the number of trajectories increases, indicating improved model performance with larger training sets. At 200 trajectories, the RMSE stabilizes at iteration 2000, suggesting that further increasing the number of trajectories may not significantly enhance accuracy beyond this point as depicted in Figure 8. Training model performance with 50 trajectories. Training model performance with 100 trajectories. Training model performance with 150 trajectories. Training model performance with 200 trajectories.



After training the adopted energy model, the result showed an improvement in the convergence speed of the EC model for the robot. This suggests that the model has reached a satisfactory level of accuracy in predicting power consumption more rapidly compared to previous iterations. Throughout the training process, the training loss stabilized smoothly. This implies that the model’s performance plateaued, indicating that further training iterations were unlikely to yield significant improvements or that the model had reached a satisfactory level of performance without over-fitting to the training data. Figure 9 shows the evolution of energy consumption along a random trajectory and shows that the trained model can predict the robot’s EC and has good consistency with the experimental data. Test samples of EC predicted versus EC measured.
5.2. Running the optimization process
Kinematic constraints of the robot joints.
Waypoints of trajectory in joint space (°).
Figure 10 illustrates the optimal Pareto front of the time–jerk–energy optimization obtained by NSGA-II. In the Pareto front solutions, the trajectory time varies between 9.5 s and 11.99 s, and the jerk index ranges from 71.73 deg./s3 to 156.91 deg./s3 while the energy consumption index from 26534 N.m.s to 30238 N.m.s. The shortest execution time with the greatest value of jerk is for solution A, while the energy value lies intermediate between their limiting values; meanwhile, solution C requires a longer traveling time but exhibits the least jerk and is highly energy consuming. In terms of execution time, option B is better than solution C. It also performs better than solution A when it comes to jerk, while surpassing both solutions A and C in terms of energy consumption. Therefore, it can be considered a compromise solution that provides a good balance between the competing objectives. The final selection of solutions from the Pareto front depends on the specific problem and the preferences of the decision-maker. This process may involve choosing one or more solutions and considering factors such as computational cost. Pareto front of time–jerk–energy optimization.
Time intervals of solution 11.49s.

The position of joints of robot trajectory: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6.

The velocity of joints of robot trajectory: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6.

The acceleration of joints of robot trajectory: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6.

The jerk of joints of robot trajectory: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6.
Additionally, all kinematic limits are respected, proving that NSGA-II selects solutions that best meet specific needs and constraints. In Figure 14, the jerk curve is smooth and continuous, which increases the accuracy of the trajectory movement, avoids actuator vibrations, and reduces energy consumption. Figure 15 represents the trajectory of robot’s end-effector, while p1⋯p7 are waypoints in Cartesian space. Figure 16 shows the measured and predicted energy consumption during the trajectory, both of which exhibit nearly the same growth. This demonstrates that our LSTM model maintained its effectiveness during the optimization process. Path of robot’s end-effector. Energy consumption for the trajectory with an execution time of 11.49s.

5.3. Comparison of the suggested approach with the classical method
This section compares the proposed approach with the classical method for trajectory planning in terms of energy and jerk. In trajectory planning using the B-spline method, determination the time instants corresponding to the interpolated waypoints is needed. This section presents a comparison in obtaining the time vector between the suggested approach and one of the most widespread methods found in the literature Piegl and Tiller (1995), known as the chord length distribution.
5.3.1. Chord length distribution method
In the chord length distribution method, which is referred to by the expression “the classic method” in this article, the time parameter vector
The waypoints of the robot’s trajectory are labeled as D0, D1, D2,…,D
n
. The length between two consecutive waypoints D
k
and Dk+1 is written as
Therefore,
Time intervals from the classic method.
The comparison of the trajectory is shown in Figures 17–20 in regard to position, velocity, acceleration, and jerk. Figure 21 shows energy consuming comparison. Comparison of proposed method and chord length distribution for the position of the six joints of trajectory with an execution time of 11.49s: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6. Comparison of proposed method and chord length distribution for the velocity of the six joints of trajectory with an execution time of 11.49s: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6. Comparison of proposed method and chord length distribution for the acceleration of the six joints of trajectory with an execution time of 11.49s: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6. Comparison of proposed method and chord length distribution for the jerk of the six joints of trajectory with an execution time of 11.49s: (a) Joint 1, (b) Joint 2, (c) Joint 3, (d) Joint 4, (e) Joint 5, and (f) Joint 6. Comparison of energy consumption between proposed method and classical method with an execution time of 11.49s.




Figure 17 shows the position of the six joints using the proposed approach and the conventional method. The execution time is the same for both methods, and the passage of the trajectory of the six joints over the waypoints is respected, but at different time instants. The movement of the joint departs progressive from the initial point compared to the classical method, and, as is known, the startup phase is important in terms of energy consumption. The velocity is shown in Figure 18, which indicates that the variation in velocity resulting from the proposed approach is smoother than of the classical method. It also shows that the maximum velocity of each joint remains within the kinematic constraints for the proposed approach, whereas in the classical method, the velocity exceeds the kinematic limits in the second and third joints. For acceleration, as illustrated in Figure 19, in classical method the maximum acceleration value of the first, fourth, and fifth joints is within the kinematic constraint limits, while the values for the second, third, and sixth joints exceed the constraint limits. So far, we can say that this method does not meet our needs. In contrast, the maximum values of acceleration of the six joints are within the acceleration limits of the kinematic constraints in our proposed method. As is known, jerk is an important criterion in trajectory planning. In Figure 20, the jerk result from the classical method has peak values that also exceed the kinematic constraints, which confirms weakness of the classical method. In contrast, the jerk results of the proposed method respect the jerk constraints of the robot.
The joints’ kinematic indices for both methods.
The indices to optimal trajectory for the two methods.
6. Conclusion
This study offers a significant view of approaches and real-world methods used for planning the trajectory of industrial robots before their real-time implementation. Execution time, jerk, and energy consumption are taken into account to find an optimal trajectory intended to achieve maximum performance and robot protection by reducing vibrations and energy consumption.
The challenge faced by this study is finding a compromise solution of trade-off between time, jerk, and energy in the absence of an explicit energy expression. First, the robot trajectory planning problem is translated into a problem of multi-objectives optimization which includes the objectives of time, jerk, and energy consumption, while constraints include the robot’s kinematic limits. Second, energy objective model is constructed using a deep learning approach (LSTM). After that, a multi-objective optimization tool called NSGA-II is employed to solve the optimization problem. Finally, our proposed approach is compared with the classical method of chord length distribution with the same execution time to prove the superiority of the proposed approach. However, a significant challenge facing this method is the extensive data requirements for network learning, as is the case with all techniques based on deep learning.
The outline of our future work is as follows: • The present study considers a scenario in which the robot controller uses a B-spline method for building the trajectory and the trajectory planner has access to the controller for setting optimal parameters. However, most robot manufacturing companies do not provide access to their software. Our next research aim is to identify the method model used for trajectory planning in robots and then use it for optimization. • We will conduct real-world experiments to examine the practicality and reliability of the proposed approach in real-world scenarios.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
