Next Article in Journal
Can Non-Translational Simplified Tasks Mimic Knee Kinematics During Gait? A Comparative Study of Tibiofemoral ICR Trajectories
Next Article in Special Issue
Enhancing Manufacturing Cell Formation Through Availability-Based Optimization Using the Black Widow Optimizer Metaheuristic
Previous Article in Journal
Large Animal Models for Preclinical Evaluation of Heart Valve Prostheses, Left Ventricular Assist Devices and Total Artificial Hearts: A Narrative Review
Previous Article in Special Issue
ICOA: An Improved Coati Optimization Algorithm with Multi-Strategy Enhancement for Global Optimization and Engineering Design Problems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Biomimetic Beaver Behavior Optimizer for Inverse Kinematics of Rehabilitation Robotic Arms

1
Department of Mechanical and Electrical Engineering, Liaocheng University Dongchang College, Liaocheng 252000, China
2
Key Laboratory of High Performance Scientific Computation, School of Science, Xihua University, Chengdu 610039, China
3
School of Software Engineering, Chengdu University of Information Technology, Chengdu 610225, China
4
Dazhou Key Laboratory of Government Data Security, Sichuan University of Arts and Science, Dazhou 635000, China
*
Authors to whom correspondence should be addressed.
Biomimetics 2026, 11(4), 259; https://doi.org/10.3390/biomimetics11040259
Submission received: 19 March 2026 / Revised: 4 April 2026 / Accepted: 6 April 2026 / Published: 8 April 2026
(This article belongs to the Special Issue Advanced Nature-Inspired Optimization Algorithms)

Abstract

Accurate inverse kinematics for rehabilitation robotic arms remains challenging because of strong nonlinearity, multiple feasible joint configurations, and strict joint-limit constraints. Inspired by the cooperative construction, adaptive exploration, and collective information-sharing behaviors of beavers, this study develops an improved biomimetic beaver behavior optimizer (IBBO) for optimization-based inverse kinematics solving. In the proposed framework, biologically inspired cooperative search is translated into an engineering-oriented numerical strategy through four complementary mechanisms: a strict elitist replacement with rollback to preserve population fitness consistency, a momentum-inspired information transfer scheme to accumulate effective search directions, a lightweight memetic coordinate-wise local search to strengthen late-stage exploitation, and an adaptive builder–disturbance schedule to progressively shift the search from exploration to refinement. The optimization capability of IBBO is first evaluated on the CEC2017 benchmark suite, where it demonstrates competitive accuracy and robustness. It is then applied to inverse kinematics solving for representative rehabilitation robotic arms by minimizing pose errors under joint constraints. The experimental results show that IBBO can consistently generate feasible joint solutions with improved terminal pose accuracy and stable convergence compared with baseline metaheuristics. Beyond numerical improvement, this study provides a biomimetic optimization framework that transfers beaver-inspired cooperative behaviors into rehabilitation robotics, offering an effective computational approach for constrained inverse kinematics problems.

1. Introduction

Stroke is widely recognized as a leading cause of long-term disability worldwide. A large proportion of stroke survivors experience early upper-limb motor impairment, which can substantially reduce independence in activities of daily living and negatively affect quality of life, while also imposing considerable caregiving demands and socioeconomic burden [1,2,3]. Clinical and experimental evidence suggests that intensive, repetitive, and task-oriented rehabilitation training can promote neuroplasticity and facilitate the recovery of voluntary muscle control, thereby improving upper-limb function [4]. However, conventional therapist-led rehabilitation is often limited by workforce capacity and treatment variability, and it can be difficult to deliver highly consistent, high-dose training over sustained periods [5]. With advances in medical robotics and human–robot interaction, upper-limb rehabilitation robots offer a promising approach to provide high-intensity, repeatable, and precisely controlled training, enabling standardized therapy delivery and supporting functional recovery through structured, patient-specific exercise programs [6].
In rehabilitation robotics, inverse kinematics is frequently required for real-time motion generation, assist-as-needed control, and trajectory tracking of upper-limb robotic arms or exoskeleton devices. Unlike many conventional industrial manipulators that are designed around kinematic forms amenable to analytical inverse kinematics, rehabilitation platforms often adopt patient-centric and ergonomics-driven architectures, including redundant degrees of freedom, nonstandard joint layouts, and adjustable link parameters to accommodate inter-subject variability [7]. These design characteristics, together with manufacturing tolerances and assembly-induced parameter deviations, can make closed-form inverse kinematics either unavailable or overly sensitive to model uncertainties. Consequently, numerical inverse kinematics remains the predominant approach, yet classical Jacobian-based iterative schemes may suffer from poor conditioning in the vicinity of singular or near-singular configurations, which can degrade convergence reliability and induce large, undesirable joint excursions [8,9]. To enhance robustness under joint limits and human-centered constraints, an increasingly common strategy is to formulate inverse kinematics as a constrained optimization problem that directly minimizes end-effector pose discrepancy while incorporating feasibility requirements such as range-of-motion bounds, comfort-related penalties, and smoothness regularization. This optimization perspective provides a flexible computational basis for integrating intelligent or metaheuristic solvers, which can improve global search capability and reduce sensitivity to initial guesses when addressing nonlinear, multimodal inverse kinematics in rehabilitation robotic applications [10].
To enable efficient inverse kinematics computation for general purpose robots across arbitrary target poses, recent studies increasingly adopt intelligent optimization methods. The core approach is to reformulate the robot’s kinematic constraints as an optimization-based control problem, and then obtain feasible joint configurations by solving this problem numerically. Many researchers have extensively studied this topic. For example, Khoramshahi et al. [11] proposed a task-informed framework based on a kinematic model that leverages the weighted Jacobian pseudo-inverse and its null space to quantify coordination and estimate inverse kinematics weights directly from observed kinematic data. Ning et al. [12] addressed the inverse kinematics of redundant upper-limb exoskeleton rehabilitation robots by formulating a multi-objective optimization model that integrates end-effector pose tracking, joint-motion comfort, energy consumption, motion safety, and human-like constraints, and demonstrated that an improved equilibrium optimization solver can achieve fast, accurate, and robust inverse kinematics solutions while significantly improving the human–robot motion–shape compatibility through both discrete and continuous trajectory experiments. Zhao et al. [13] addressed robot inverse kinematics by proposing an improved PSO with adaptive inertia weight adjustment and joint limit-based constraints, and solved the inverse kinematics. Slim et al. [14] proposed an intrinsically modified bat algorithm to solve robotic-arm inverse kinematics by embedding a joint-elongation minimization mechanism into the bat update rules, thereby obtaining inverse kinematics solutions with minimal joint variation from the initial configuration and demonstrating effectiveness on both benchmark comparisons and a real spherical-wrist manipulator. Chagas et al. [15] developed an optimization algorithm for humanoid robot walking based on an inverse kinematics model integrated with a genetic algorithm, aiming to enhance sagittal displacement and minimize lateral deviation during locomotion, and validated its effectiveness through both a virtual simulator and a humanoid robotic platform. Liu et al. [16] proposed an improved particle swarm optimization algorithm for solving the inverse kinematics of general robots that do not satisfy the Pieper criterion, introducing a nonlinear dynamic inertia weight adjustment strategy based on similarity to enhance robustness, and a multi-population strategy with an immigration operator to increase diversity, which demonstrated superior stability, accuracy, and convergence speed compared to standard PSO and multi-subswarm methods. Duymazlar et al. [17] proposed a swarm intelligence-based boomerang algorithm with a recursive structure for solving the inverse kinematics of robot arms, aiming to reduce computation time without sacrificing accuracy, and demonstrated its superiority over PSO variants through simulations and experiments. Although various studies have achieved progress in solving robot inverse kinematics, the motion model of a robot is inherently a high-dimensional, nonlinear, and multi-modal problem. As the degrees of freedom increase, traditional algorithms often face difficulties such as premature convergence, local optima entrapment, and reduced solution stability. These challenges highlight the need for more robust and adaptive optimization methods.
From the perspective of classical inverse kinematics theory, non-uniqueness in redundant manipulators is commonly addressed by Jacobian pseudo-inverse, damped least-squares, or null-space projection methods, where secondary objectives such as joint-limit avoidance, posture regularity, or comfort can be embedded in the null space. However, the present study focuses on the optimization-based inverse kinematics of the specific rehabilitation mechanism considered here, in which the active joint variables are solved under strict joint bounds and the passive DOFs are not treated as optimization variables. Therefore, the main emphasis of this work is on constrained multi-solution inverse kinematics solving rather than explicit null-space redundancy resolution.
To address the challenges posed by high-dimensional, nonlinear, and multi-solution characteristics in robotic inverse kinematics, this paper proposes an enhanced beaver behavior optimizer (IBBO) that integrates four complementary strategies: a strict elitist replacement with rollback to maintain population consistency; a momentum-driven information transfer mechanism to accelerate convergence; a lightweight memetic coordinate-wise search with adaptive step control for refined exploitation; and an adaptive disturbance scheduling scheme to balance exploration and exploitation throughout the optimization process. The main innovations of this work are twofold:
(a)
A biomimetic optimization framework for rehabilitation robotic-arm inverse kinematics is established by abstracting cooperative and adaptive beaver behaviors into an engineering-oriented numerical solver.
(b)
An improved beaver behavior optimizer is developed by integrating strict elitist replacement with rollback, momentum-inspired information transfer, a lightweight memetic local search, and an adaptive builder–disturbance schedule to strengthen convergence reliability and terminal accuracy.
(c)
The proposed framework is validated on both CEC2017 benchmark functions and representative rehabilitation robotic-arm inverse kinematics tasks, demonstrating improved solution accuracy, robustness, and practical feasibility under joint constraints.
The main structure of this paper is organized as follows: Section 2 introduces the inverse kinematics model of the rehabilitation robotic arm. Section 3 presents the proposed enhanced beaver behavior optimizer for optimization-based inverse kinematics. Section 4 provides experimental validation and results analysis, and Section 5 concludes with the conclusions and future work.

2. Inverse Kinematics Model of the Rehabilitation Robot

As shown in Figure 1, the upper-limb rehabilitation exoskeleton has a three-dimensional configuration with five active degrees of freedom (DOFs) and two passive DOFs. The five active DOFs correspond to the joint motions illustrated in Figure 1 and provide the primary posture and displacement control required for rehabilitation training. In the present inverse kinematics formulation, only these five active joints are treated as decision variables, whereas the two passive DOFs mainly serve as compliance-enhancing mechanical accommodations and are not explicitly optimized. Both the upper-arm and forearm modules provide an adjustable travel of approximately 0.050 m to accommodate users with different body sizes. At the elbow, passive compliance is realized through a bevel-gear pair. Specifically, the large bevel gear is connected to a short shaft that drives the main forearm assembly to follow forearm rotation, thereby enabling compliant motion. The small bevel gear is mounted on a bushing around the elbow shaft and does not rotate coaxially with it; however, it remains continuously engaged with the large gear, which improves transmission stability and connection reliability. In practical use, maintaining real-time alignment between the instantaneous rotation center of the shoulder mechanism and the anatomical shoulder joint center is challenging. Such misalignment may lead to human–robot kinematic incompatibility, discomfort, and potential safety risks. To mitigate this issue, a shoulder slider mechanism is incorporated to finely adjust the position of the instantaneous shoulder axis. Moreover, the two passive DOFs further enhance the motion compliance of the exoskeleton, thereby improving training adaptability and increasing the comfort of the affected limb.
After establishing the D-H coordinate model of the upper-limb rehabilitation robot, the obtained D-H parameters are used to derive the homogeneous pose transformation matrices between adjacent links. By sequentially multiplying these matrices along the kinematic chain, the pose of the end-effector can be expressed. To facilitate the definition of link coordinate frames, the robot model is appropriately simplified by equivalently consolidating the two shoulder-joint degrees of freedom at point O1. The resulting modified D-H coordinate system is illustrated in Figure 1.
The corresponding D-H parameters are characterized by four quantities: the link length ai, link twist αi, link offset di, and joint angle θi. The resulting D-H parameter set for the upper-limb rehabilitation robot is summarized in Table 1.
According to the Chinese national standard GB 10000–88 (Anthropometric data of Chinese adults), the typical forearm length of adults falls within 185–268 mm, while the upper-arm length is generally in the range of 252–349 mm. Considering that the proposed upper-limb rehabilitation robot provides an adjustable travel of ±50 mm for both the forearm and upper-arm modules, the link dimensions were selected to cover the target population while retaining a sufficient adjustment margin. Specifically, the forearm-related link length d4 was set to 235 mm, the upper-arm-related link length a2 was set to 310 mm, and the link length a4 was chosen as 100 mm.
In the D-H formulation, a sequence of coordinate frames {i} is assigned along the kinematic chain, where the Zi axis is aligned with the axis of joint iii. For two consecutive frames {i−1} and {i}, the link length ai−1 is defined as the distance from the Zi−1 axis to the Zi axis measured along the Xi−1 direction, and the link twist αi−1 is the angle that rotates Zi−1 into Zi about Xi−1. The link offset di denotes the signed displacement along Zi−1 from the origin of frame {i−1} to the point where the common normal intersects the joint axis, while the joint variable θi represents the rotation from Xi−1 to Xi about Zi−1. With these definitions, the homogeneous transformation between adjacent frames can be constructed, and the end-effector pose is obtained by successive multiplication of the transformations.
Although swarm and evolutionary optimizers have been widely employed to solve inverse kinematics in a derivative-free manner, the inverse kinematics of rehabilitation robotic arms remain a high-dimensional and strongly nonlinear problem with multiple feasible joint configurations and strict joint-limit constraints. As the degrees of freedom increase and the feasible region becomes narrow, metaheuristic solvers frequently encounter stagnation or premature convergence, which degrades terminal pose accuracy and makes convergence behavior difficult to guarantee. To alleviate these issues, this paper develops an IBBO for optimization-based inverse kinematics, where four complementary mechanisms are integrated to enhance solution precision and robustness, including elitist replacement with rollback, momentum-guided information transfer, a lightweight coordinate-wise memetic local search, and an adaptive disturbance scheduling strategy.
Based on the definitions above, the homogeneous transformation from frame {i} to frame {i + 1} can be derived as follows:
T i i 1 = R X ( a i ) D X ( a i ) R Z ( θ i ) D Z ( d i ) = cos θ i sin θ i 0 a i sin θ i cos α i cos θ i cos α i sin α i d i sin α i sin θ i cos α i cos θ i sin α i cos α i d i cos α i 0 0 0 1
where αi, ai, θi, and di are the standard D-H parameters describing the relative geometry between links (i−1) and i, namely the link twist, link length, joint rotation, and link offset, respectively. Accordingly, RX(αi) and RZ(θi) denote the rotation matrices generated by αi and θi about the X- and Z-axes, while DX(ai) and DZ(di) represent the corresponding translations along the X- and Z-axes.
Based on Equation (1), the successive link-to-link transformations T 1 0 , T 2 1 , T 3 2 , T 4 3 , T 5 4 can be obtained. Their ordered product yields the overall homogeneous transformation from the base frame to the end-effector frame, denoted by T 5 0 , as expressed in Equation (2):
T 5 0 = T 1 0 T 2 1 T 3 2 T 4 3 T 5 4 = n x o x a x p x n y o y a y p y n z o z a z p z 0 0 0 1 = T ( θ 1 , θ 2 , θ 3 , θ 4 , θ 5 ) = R P 0 1
In the end-effector frame, the orientation can be represented by three mutually orthogonal unit vectors n, o, and a, which define the tool’s local axes and satisfy the right-hand convention. Here, a is commonly interpreted as the approach direction of the end effector, o indicates the orientation (often associated with the tool’s transverse axis), and n completes the triad as the normal axis. The end-effector position is given by p = [px, py, pz]. Accordingly, the pose of the manipulator can be expressed as a homogeneous transformation T (θ1, θ2, θ3, θ4, θ5), obtained by chaining the link transformations between consecutive joint coordinate frames. In this formulation, R 3 × 3 denotes the rotation matrix mapping the end-effector frame to the base frame, while p denotes the translation (position) of the end-effector origin expressed in the base coordinate system.
To compute inverse kinematics for rehabilitation robotic arms, we first express the end-effector pose in the base coordinate system using a homogeneous transformation. Let the desired pose be:
T d = R d P d 0 1
where R d 3 × 3 and P d 3 denote the desired orientation and position, respectively.
For a given joint vector θ = [ θ 1 , θ 2 , θ 3 , θ 4 , θ 5 ] , the forward kinematics yields the current pose:
T ( θ ) = R ( θ ) P ( θ ) 0 1
The inverse kinematics problem seeks a feasible θ such that T(θ) matches Td as closely as possible.
To quantify the mismatch between T(θ) and Td, the pose error is decomposed into a translational component and a rotational component. The position error is defined as:
e p ( θ ) = P ( θ ) P d
The magnitude e p ( θ ) 2 measures the Euclidean distance between the current and desired end-effector positions.
For the orientation error, instead of using Euler-angle differences that may suffer from singularities, we adopt a rotation-matrix-based metric on SO(3). The relative rotation between the current and desired orientations is:
R e ( θ ) = R d T R ( θ )
The corresponding geodesic rotation-angle error is:
e R ( θ ) = cos 1 ( t r ( R e ( θ ) 1 ) 2 )
where tr(⋅) denotes the matrix trace. Here, eR(θ) ∈ [0, π] is the minimum rotation angle required to align R(θ) with Rd; smaller values indicate better orientation matching.
Safety requirements in rehabilitation robotics impose strict joint-range constraints. Therefore, each joint variable θ(i) must satisfy:
θ i min θ i θ i max , i = 1 , 2 , , n
where θ ( i ) min and θ ( i ) max denote the lower and upper bounds of the i-th joint, respectively. These constraints prevent infeasible or unsafe motions during training.
With the above definitions, the inverse kinematics problem is reformulated as a constrained optimization problem under joint limits:
min θ f ( θ ) s . t .     θ i min θ i θ i max , i = 1 , , n
where the objective function is defined as a normalized weighted sum of the position error and orientation error:
f ( θ ) = w p e ˜ p ( θ ) 2 + w R e ˜ R ( θ ) , w p + w R = 1 e ˜ p ( θ ) = e p ( θ ) L r e f ,   e ˜ R ( θ ) = e R ( θ ) π
where Lref is a characteristic length used to normalize the translational error, and π denotes the maximum possible geodesic rotation angle on SO(3). In this way, both error terms become dimensionless and comparable in magnitude. In this study, Lref is chosen as the characteristic arm length of the rehabilitation robot. Unless otherwise specified, wp = wR = 0.5 is adopted to provide a balanced treatment of translational and rotational accuracy.

3. Biomimetic Beaver-Inspired Optimization for Inverse Kinematics of Rehabilitation Robotic Arms

The BBO is a bio-inspired population-based metaheuristic that models the collective survival strategies observed in beavers during habitat construction and resource management [18]. In nature, beavers exhibit a mixture of cooperative building, information sharing, and adaptive exploration when searching for suitable locations and materials to construct dams and lodges. Such behaviors naturally reflect two complementary search patterns in optimization: global exploration, where individuals probe different regions to maintain diversity and avoid premature convergence, and local exploitation, where promising solutions are refined by learning from high-quality experiences. Motivated by this principle, BBO represents each candidate solution as an individual “beaver” and updates the population through an iteration-dependent transition mechanism that gradually shifts the search from exploration to exploitation. In the exploration stage, the population can be divided into elite “architects” and non-elite “explorers”, where architects emphasize structured information exchange among good solutions, while explorers perform guided learning combined with stochastic perturbations to discover unseen regions. In the exploitation stage, individuals refine their states by jointly learning from randomly selected peers and the current global best solution, thereby accelerating convergence. Owing to its simple structure, derivative-free nature, and strong adaptability to nonlinear constrained problems, BBO provides a convenient optimization backbone for inverse kinematics, where the objective is typically nonconvex and admits multiple feasible joint configurations under joint-limit constraints.

3.1. Beaver Behavior Optimizer-Based Inverse Kinematics

BBO is a population-based metaheuristic. Each candidate solution (one “beaver”) is a joint vector θi(t) at iteration t:
θ i ( k ) = [ θ i , 1 ( t ) , , θ i , D ( t ) ] ,   t = 1 , , N
where N is the population size, T denotes the maximum number of iterations, and D is the number of joints (decision variables).
Each joint is initialized uniformly within limits:
θ i , j = θ j l + ( θ j u θ j l ) r a n d ,   i = 1 , , N ;   j = 1 , , D
where rand∼U(0,1). θ, θj are joint vector and its j-th component (radians), respectively. θ j u , θ j l represent lower and upper joint limits, respectively. Compute fitness f ( θ i , j ) using Equation (9), and store the best solution:
θ b e s t ( t ) = arg min θ i ( t ) f ( θ i ( t ) )
BBO uses a smooth increasing factor to shift from global exploration to local exploitation:
E ( t ) = sin ( π t 2 T ) ,   t = 1 , , T
Draw r∼U(0,1). If r ≤ E(t), execute exploitation; otherwise, execute exploration.
In exploitation, each beaver learns from a randomly selected peer ki and from the global best:
θ i , j ( t + 1 ) = θ i , j ( t ) + r 1 ( θ k , j ( t ) θ i , j ( t ) ) + r 2 ( θ b e s t , j ( t ) θ i , j ( t ) )
where r1, r2∼U(0,1). This update encourages rapid improvement by contracting the search around promising regions.
It should be emphasized that this peer-and-best learning pattern is an inherent part of the original BBO dam-maintenance exploitation mechanism, and it is presented here as a baseline component rather than a newly introduced operator.
In exploration, the population is sorted by fitness. The top fraction (e.g., 25%) forms an elite set of architects A , and the rest are explorers.
Architect update (elite mutual learning). For an architect i A , randomly pick another architect k A :
θ i , j ( t + 1 ) = θ i , j ( t ) + ( r 3 < 0.5 ) + r 4 ( θ k , j ( t ) θ i , j ( t ) )
where r3, r4∼U(0,1). ( ) is the indicator function.
Explorer update (learn from elites + stochastic probing). For an explorer i A , pick an architect k A and apply:
θ i , j ( t + 1 ) = θ i , j ( t ) + ( r 5 < 0.5 ) r 6 ( θ k , j ( t ) θ i , j ( t ) ) + σ j ( t ) N ( 0 , 1 )
where r5, r6∼U(0,1). N ( 0 , 1 ) is standard Gaussian noise, and the noise amplitude decays with iterations:
σ j ( t ) = cos ( π t 2 T ) θ j u θ j l η
where η is a scaling factor that controls the magnitude of the Gaussian perturbation.
Thus, early iterations explore broadly; later iterations reduce randomness to preserve convergence.
After updating, each joint is clamped to its feasible interval:
θ i , j ( t + 1 ) = min ( max ( θ i , j ( t + 1 ) ,   θ j l ) ,   θ j u )
Then evaluate the new fitness f ( θ i , j ( t + 1 ) ) . A common acceptance rule is greedy:
θ i ( t + 1 ) = θ i ( t + 1 ) ,   f ( θ i ( t + 1 ) ) < f ( θ i ( t ) ) θ i ( t ) ,   o t h e r w i s e
and update θ b e s t ( t ) according to Equation (13).
After T iterations, BBO outputs the inverse kinematics solution:
θ = θ b e s t ( T ) ,   f = f ( θ )

3.2. Improved Beaver Behavior Optimizer for Inverse Kinematics

To improve the terminal accuracy and numerical stability of BBO for highly nonlinear inverse kinematics, the Improved Beaver Behavior Optimizer (IBBO) is adopted as the search engine. The baseline BBO exploration framework described in Section 3.1 is preserved, including the architect–explorer role division and the associated update rules. Four targeted mechanisms are incorporated to enhance precision-oriented convergence: (1) rollback-consistent elitist replacement to preserve state–fitness consistency; (2) momentum-guided exploitation to promote smoother late-stage refinement; (3) late-stage coordinate-wise refinement for low-cost tail optimization; and (4) an adaptive architect ratio during exploration to regulate information flow and maintain population diversity across iterations. Under the same joint-limit constraints, these mechanisms are integrated into the iterative optimization of joint vectors θi(t), resulting in more reliable convergence and reduced terminal pose mismatch.
(1)
Elitist replacement with rollback consistency
For the i-th individual, a trial candidate θ i ( t ) is generated by the update rule (either exploration or exploitation), and its fitness is computed as f i ( t ) = f ( θ i ( t ) ) . IBBO adopts a strict elitist acceptance with rollback to ensure that the stored state “position–fitness” is always consistent:
θ i ( t + 1 ) = θ i ( t ) ,   f i ( t ) < f ( θ i ( t ) ) θ i ( t ) ,   o t h e r w i s e ,   f ( θ i ( t + 1 ) ) = f i ( t ) ,   f i ( t ) < f ( θ i ( t ) ) f ( θ i ( t ) ) ,   o t h e r w i s e
Then the global best is updated accordingly:
θ b e s t ( t + 1 ) = arg min i { 1 , , N } f ( θ i ( t + 1 ) )
where θ i ( t ) denotes the trial joint vector generated at iteration t, f i ( t ) is the corresponding fitness value, and the rollback rule restores θi(t) whenever no improvement is achieved, thereby preventing hidden “position updated but fitness not updated” inconsistencies.
(2)
Momentum-exploitation update
The exploitation update keeps the original BBO dam-maintenance learning structure unchanged; the proposed enhancement targets late-stage stability and solution polishing through a momentum-style information carryover within the same BBO exploitation framework. In the exploitation stage, IBBO introduces a momentum memory v i ( t ) = [ v i , 1 ( t ) , , v i , D ( t ) ] to guide late-stage refinement. Select a random peer ki. The momentum update is:
v i ( t + 1 ) = w ( t ) v i ( t ) + c 1 ( t ) r 1 ( θ k ( t ) θ i ( t ) ) + c 2 ( t ) r 2 ( θ b e s t ( t ) θ i ( t ) )
where w(t) is the inertia weight, c1(t) and c2(t) are learning coefficients, r1, r2 ∈ [0, 1] are element-wise random vectors, ⊙ denotes the Hadamard product, vi(t) is momentum vector of the i-th individual.
The trial position is generated by:
θ i ( t ) = θ i ( t ) + v i ( t + 1 ) + ε ( t )
where ε(t) is the perturbation, a small Gaussian noise with a decaying amplitude:
ε ( t ) ~ N ( 0 ,   σ 2 ( t ) I ) ,   σ ( t ) = α ( 1 t T ) ( u 1 )
where σ ( t ) is the iteration-dependent standard deviation, which gradually decays as the iteration index t increases.
(3)
Late-stage coordinate refinement (memetic local search)
To further reduce the residual inverse kinematics error in the tail stage, IBBO performs a lightweight coordinate refinement on the current best solution θbest(t) when t > 0.7T. Every K iterations, for the j-th coordinate, a rapidly decaying step size is defined as:
Δ j ( t ) = Δ 0 ( 1 t T ) 2 ( θ j u θ j l )
where Δ j ( t ) is coordinate refinement step size, Δ 0 denotes initial refinement scale, T represents the maximum number of iterations.
Two trial candidates are constructed:
θ + = θ b e s t ( t ) + Δ j ( t ) e j ,   θ = θ b e s t ( t ) Δ j ( t ) e j
where ej is the j-th standard basis vector. After clamping θ+ and θ to joint limits, the best solution is refined as:
θ b e s t ( t ) arg min { f ( θ b e s t ( t ) ) ,   f ( θ + ) ,   f ( θ ) }
(4)
Iteration-dependent architect ratio schedule in exploration stage
To avoid using a fixed architect proportion (e.g., 25%) throughout the search, IBBO introduces an iteration-dependent architect ratio in the exploration stage. This adaptive design aims to allocate more architects in early iterations to form effective guidance channels and gradually reduce the architect proportion to preserve diversity and prevent premature convergence in the later stage.
Specifically, the architect ratio is scheduled as:
ρ A ( t ) = ρ max ( ρ max ρ min ) t T ,   t = 1 , , T
where ρA(t) is the architect ratio at iteration t. ρmax and ρmin are upper and lower bounds of architect ratio, respectively.
The linear schedule is adopted as a simple and reproducible annealing strategy to gradually relax elite dominance and preserve diversity toward the end of the search. Compared with feedback-driven schedules, this design introduces no extra diversity estimator or tuning parameters, which improves stability.
The number of architects at iteration t is determined by:
N A ( t ) = max { 2 ,   ρ A ( t ) N }
where ⌊⋅⌋ denotes the floor operator.
After sorting individuals by fitness (ascending order), the architect set A ( t ) is constructed as the indices of the top NA(t) individuals:
A ( t ) = { i | i T o p N A ( t )   a c c r d i n g t o f ( θ i ( t ) ) }
Then, the architect update and explorer update in the exploration stage follow the same forms as Equations (16) and (17) in Section 3.1, except that the architect set A is replaced by A ( t ) , and the architect count is no longer fixed.
Algorithm 1 presents the detailed pseudocode of the proposed IBBO. The algorithmic flow is organized in a step-by-step manner, including population initialization, fitness evaluation, iterative position updating, and termination checking. Each major operator and update rule is explicitly specified to ensure reproducibility and to clarify how IBBO balances exploration and exploitation across iterations.
Algorithm 1 IBBO
Input: objective function f(⋅), population size N, max iteration T, dimension D, joint bounds θl, θu
/--Note: Initialization--/
1.Initialize: population θiθl + (θuθl)⊙ rand (1,D) for i = 1, …, N.
2.Evaluate fitness fif(θi) for i = 1, …, N.
3.Set global best (θ,f)←argminifi
4.Initialize momentum vi←0 for all i.
5.Set stagnation counters: stall←0, lastBestf.
6.for t = 1 to T
7.   Compute phase factor E←sin (π/2) t/T).
8.   Compute architect ratio ρA(t)←ρmax − (ρmaxρmint/T
9.   NA(t)←max(2, round(ρA(t)N)).
10.   Sort individuals by fitness (ascending) and set architects A as the best NA(t) indices.
11.   Update momentum parameters w(t), c1(t), c2(t)
12.   for i = 1 to N
13.      Store rollback state: θiθi, fifi.
14.      if rand < E then (Exploitation with momentum)
15.          Randomly choose ki, draw r1, r2 ∈ [0, 1]
16.          Update velocity viw(t)vi + c1(t)r1⊙(θkθi) + c2(t)r2⊙(θθi).
17.          Generate candidate θii + vi + ε(t),
18.          where ε(t)∼N(0, σ2(t)I) and σ(t) = α(1 − t/T)(θuθl).
19.      else (Exploration with roles)
20.           if i A  then (Architect update)
21.               Choose k A , ki. For each dimension j:
22.               θi,jθi,j + Π(r3 < 0.5)r4(θk,jθi,j), Π(⋅) ∈ {0,1}
23.           else (Explorer update)
24.               Choose k A . For each dimension j:
25.               with prob. 0.5: θi,jθi,j + r4(θk,jθi,j);
26.               otherwise perturb:
27.               θ′i,jθi,j + cos(((π/2)t/T))( θ j u θ j l ) N (0,1)/η
28.            end if
29.       end if
30.      Clamp bounds: θi←min(max(θi,θl),θu).
31.      Evaluate candidate fitness fi′←f(θi).
32.      if fi′ < fi then θiθi′, fifi
33.      else rollback θiθi, fifi.
34.       end if
35.      if fi < f then (θ,f)←(θi,fi).
36.       end if
37.    end for
38.   if t > 0.7 T and mod(t,K) = 0 then perform coordinate refinement on θ:
39.      Try θ+ = θ + Δj(t)ej, θ = θ − Δj(t)ej,
40.      where Δj(t) = Δ0(1 − t/T)2( θ j u θ j l ), keep the best.
41.    end if
42.   Record convergence f(t)←f.
43.end for
44.Return θ, f
Output: best joint solution θ, best fitness f∗.
This section establishes a complete optimization-based framework for solving the inverse kinematics of rehabilitation robots. The inverse kinematics task is first formulated as a continuous constrained optimization problem with joint-limit bounds, where the pose discrepancy is defined as the fitness to be minimized, and a BBO-driven population search is adopted to iteratively evolve candidate joint vectors from global exploration to local exploitation. On this basis, the IBBO is incorporated to further strengthen precision-oriented convergence without changing the baseline BBO exploration structure. Specifically, rollback-consistent elitist replacement is introduced to maintain strict state–fitness consistency, a momentum-guided exploitation update is embedded to enable a smoother transition from exploration to fine refinement and improve late-stage accuracy, and a late-stage coordinate refinement is applied to achieve low-cost tail optimization. In addition, an adaptive architect ratio is employed in the exploration stage to dynamically balance guidance intensity and population diversity over iterations. Collectively, these mechanisms enhance convergence reliability and terminal accuracy under identical joint constraints and provide a unified and reproducible procedure to obtain the optimal joint solution θ for subsequent experiments and practical deployment.

3.3. Convergence and Complexity Analysis of IBBO

3.3.1. Convergence Discussion

IBBO is a stochastic population-based metaheuristic. Let the population at iteration t be Θ ( t ) = { θ i ( t ) } i = 1 N , and let f(θ) denote the objective function. The algorithm evolves Θ(t) through phase-controlled exploitation and exploration updates, combined with feasibility preservation, elitist acceptance, and late-stage local refinement.
Boundedness and feasibility preservation. All candidate joint vectors are constrained within the feasible domain Ω = [ θ l ,   θ u ] by the bound-clamping operation after each update. Therefore, the search trajectory of every individual remains bounded and feasible throughout the evolution. This boundedness prevents numerical divergence and ensures that the optimization process is well-defined over a compact domain.
Monotonic best-so-far property induced by rollback-consistent elitism. IBBO adopts a strict elitist acceptance with rollback. For each individual, the pre-update state is stored, and the updated candidate is accepted only if it yields a better fitness value; otherwise, the individual is restored to its previous state. Consequently, the best-so-far fitness value fbest(t) is monotonically non-increasing for minimization problems, because any accepted update cannot worsen the current best, and any rejected update is discarded via rollback. This property guarantees that the algorithm never loses the best solution found so far and provides a stable descending sequence of best-so-far objective values.
Stochastic reachability and global exploration capability. IBBO contains multiple sources of randomness, including phase switching between exploitation and exploration, random selection of peers/architects, and stochastic perturbations in the exploration updates. In particular, the exploration stage introduces continuous random perturbations, which yield a nonzero probability of generating candidate solutions in different neighborhoods within the feasible domain. Under mild regularity assumptions, these stochastic operators imply that IBBO can repeatedly sample the feasible space with nonzero probability while preserving the best solution via elitist rollback. This constitutes the standard sufficient condition used in the metaheuristic literature for global convergence in probability, meaning that the probability of visiting the global optimum increases as the number of iterations grows.
Late-stage refinement and enhancement of terminal accuracy. In addition to population evolution, IBBO activates a coordinate-wise local refinement for the best solution in the late stage of the run. This refinement probes the current best along coordinate directions with a step size that shrinks over iterations, and only improving moves are retained. Once the population enters a high-quality basin of attraction, such a shrinking-step local search increases the likelihood of further decreasing the objective and strengthens tail-end exploitation, which is particularly important for inverse kinematics tasks that demand high terminal pose accuracy.
The convergence behavior of IBBO is supported by three complementary properties: bounded feasible search enforced by clamping, monotonic non-increasing best-so-far fitness ensured by rollback-consistent elitism, and nonzero-probability exploration due to stochastic phase-controlled updates. The additional late-stage coordinate refinement further improves local convergence behavior and final solution polishing near high-quality feasible regions.

3.3.2. Computational Complexity

Let N be the population size, T the maximum number of iterations, and D the decision dimension (number of joints). Denote by Cf the computational cost of one fitness evaluation, which typically includes forward kinematics computation and pose-error evaluation in the inverse kinematics setting.
In each iteration, generating candidate solutions and performing element-wise updates, including exploitation/exploration updates and bound clamping, require O ( N D ) time. Identifying architects requires sorting the population by fitness, which costs O ( N log N ) per iteration. Fitness evaluation dominates the runtime and costs O ( N C f ) per iteration because each candidate solution must be evaluated once.
Therefore, the overall complexity of the main evolutionary loop is
O ( T ( N C f + N D + N log N ) )
Cost of late-stage coordinate refinement. The coordinate-wise refinement is executed intermittently in the late stage. Each invocation probes the best solution along coordinate directions and requires O ( D C f ) time (up to a small constant factor depending on the number of trial moves per coordinate). If the refinement is triggered every K iterations in the final portion of the run, the additional cost is approximately:
O ( T K D C f )
which is typically negligible compared with O ( T N C f ) when N is moderate or large.
Memory complexity. IBBO stores the population Θ(t) and auxiliary vectors such as momentum and temporary candidates. The dominant memory usage is O ( N D ) , while additional scalars (best fitness, counters, and scheduling parameters) contribute negligible overhead.

4. Experimental Validation

4.1. Benchmark Function Experiments

This section reports numerical experiments on benchmark functions to evaluate the convergence behavior and overall optimization performance of the proposed IBBO. To ensure a fair and statistically reliable comparison, IBBO is evaluated against the original BBO, PSO [19], the puma optimizer algorithm (PO) [20], and the whale optimization algorithm (WOA) [21], using identical parameter settings and termination criteria. Each algorithm is independently run 30 times on each benchmark function. The mean (Ave) and standard deviation (Std) of the best objective values obtained are reported, where AVG reflects overall solution quality and STD quantifies robustness and run-to-run stability. In addition, algorithms are ranked on each test function according to their performance (lower ranks indicate better performance). The ranks are then aggregated across all functions to produce an overall ranking, providing a comprehensive assessment of IBBO’s competitiveness relative to the baseline methods.
A comprehensive performance evaluation of IBBO was conducted against representative competitors on the CEC2022 benchmark suite under 20-dimensional scenarios. Figure 2 illustrates the convergence behaviors by plotting the progression of the best fitness value over iterations for each test function, enabling a direct comparison of convergence speed and final solution quality across algorithms. Table 2 reports the quantitative results in terms of the Ave and Std over 30 independent runs, reflecting both optimization accuracy and robustness. In addition, Table 3 summarizes the statistical analyses, including F-ranking, the Wilcoxon signed-rank test, and the corresponding p-values (predominantly p < 0.05), to rigorously assess whether IBBO achieves statistically significant improvements over competing methods on each function.
Figure 2 illustrates the convergence profiles of IBBO and four competing algorithms on the CEC2022 benchmark suite by plotting the best-so-far fitness over 1000 iterations (the fitness axis is shown on a logarithmic scale). Overall, IBBO demonstrates a more rapid reduction in fitness during the early iterations for most test functions, suggesting an effective global exploration ability that enables the search to move quickly away from poor regions of the landscape. In the subsequent iterations, the IBBO curve typically continues to decrease smoothly with limited oscillations or abrupt rebounds, indicating stable exploitation and reliable refinement. For several representative functions (e.g., F4, F7–F10, and F12), IBBO not only converges faster but also attains lower terminal fitness than the compared methods, implying superior solution quality and a diminished risk of premature convergence. In contrast, PO and WOA often exhibit early stagnation, characterized by long plateaus at comparatively higher fitness values, which suggests inadequate local improvement once the search becomes trapped in suboptimal basins. Although some competitors remain competitive on a few functions (e.g., F3 and F11) in the later stage, IBBO consistently maintains a close or leading performance across the suite, underscoring its favorable trade-off between exploration and exploitation in the 20-dimensional setting.
Table 2 reports the quantitative performance of IBBO and the competing algorithms on the CEC2022 benchmark suite in the 20-dimensional setting, where the Ave and Std are computed over 30 independent runs. Overall, IBBO achieves the lowest mean objective value on 11 of the 12 functions and, concurrently, yields the smallest Std on 11 of the 12 functions, indicating consistently superior accuracy together with strong robustness. Notably, IBBO demonstrates clear advantages on challenging problems with large dynamic ranges, such as F1 and F6, where it attains objective values that are orders of magnitude lower than those produced by PSO, PO, and WOA, while also exhibiting substantially reduced run-to-run variability. For another subset of functions (e.g., F4–F5 and F7–F10), IBBO not only converges to lower final fitness levels than the competing methods but also maintains markedly smaller dispersion, suggesting reliable convergence behavior and a reduced propensity for premature convergence in suboptimal basins. The only exception is F11, on which PSO attains a marginally lower mean; however, IBBO remains highly competitive with a negligible gap and preserves stable performance. Taken together, the results in Table 2 substantiate the effectiveness of IBBO in achieving a favorable trade-off between exploration and exploitation and highlight its strong performance consistency across diverse CEC2022 function categories under 20-dimensional scenarios.
Table 3 provides a statistical verification of the comparative results by reporting the per-function F-ranking alongside pairwise Wilcoxon signed-rank tests with IBBO as the reference method under the CEC2022 20-dimensional setting. IBBO achieves the top rank (F-ranking = 1) on 11 of the 12 functions, which is consistent with its overall superiority across the benchmark suite. More importantly, for nearly all functions, PSO, PO, WOA, and BBO are annotated with Wilcoxon “(+)” and associated with p < 0.05, indicating that their performance is significantly inferior to IBBO and that IBBO’s improvements are unlikely to be explained by random variability across independent runs. This statistical evidence is particularly compelling in the comparison with the baseline BBO: although BBO frequently attains the second-best rank, the Wilcoxon results with p < 0.05 confirm that IBBO still delivers statistically significant gains on most functions. The only exception is F11, where PSO attains a better rank and exhibits a Wilcoxon “(−)” outcome (p < 0.05), implying a statistically significant advantage over IBBO for this specific case. Taken together, the ranking outcomes and significance tests substantiate the robustness and reliability of IBBO’s performance advantages across diverse CEC2022 problem categories in the 20-dimensional scenario.

4.2. Robot Inverse Kinematics Experiments

4.2.1. Sensitivity Analysis of Weighting Coefficients

Before conducting the formal inverse kinematics comparison experiments, a sensitivity analysis of the weighting coefficients was carried out to determine a suitable trade-off between translational and rotational accuracy in the normalized objective function. As discussed in Section 2, the inverse kinematics objective is formulated as a weighted combination of the normalized position error and normalized orientation error, where the coefficients wp and wR control the relative emphasis on translation and rotation, respectively, under the constraint wp + wR = 1. Since different weight settings may bias the optimizer toward different solution characteristics, it is necessary to examine their influence before selecting the final configuration for subsequent experiments.
To this end, five representative weight settings were tested, namely (wp,wR) = (0.1,0.9), (0.3,0.7), (0.5,0.5), (0.7,0.3), and (0.9,0.1). For each setting, IBBO was independently run 20 times on the same representative inverse kinematics task, and the mean position error, mean angular error, and convergence behavior were recorded. It should be noted that the Frobenius-norm pose error was retained only as an auxiliary evaluation metric and was not included in the optimization objective itself.
Figure 3 illustrates the sensitivity of translational and rotational accuracy to different weight settings. A clear trade-off can be observed. When the rotational term is overly emphasized, i.e., (wp,wR) = (0.1,0.9), the mean angular error remains very small, but the mean position error increases sharply, indicating that excessive preference for orientation matching may significantly degrade translational accuracy. Conversely, when the position term dominates, i.e., (wp,wR) = (0.9,0.1), the mean position error remains small, whereas the angular error rises substantially, showing that excessive emphasis on translation can impair orientation alignment. These results confirm that the two coefficients indeed regulate the balance between the two pose components and that extreme settings are not suitable for achieving overall inverse kinematics accuracy. More importantly, the intermediate settings (0.3,0.7), (0.5,0.5), and (0.7,0.3) all lead to much smaller errors than the two extreme cases, indicating that a moderate weighting strategy is preferable. Among them, (0.3,0.7) and (0.5,0.5) exhibit particularly favorable performance, with both translational and rotational errors remaining at consistently low levels. This suggests that the normalized objective formulation is effective and that the proposed solver is not overly sensitive to moderate weight variations around the balanced region.
Figure 4 further compares the convergence curves under different weight settings. The setting (0.1,0.9) converges to a relatively high fitness plateau and shows limited late-stage refinement, implying that overemphasizing orientation is detrimental to the overall optimization objective. By contrast, the intermediate settings exhibit smoother and deeper convergence. In particular, (0.3,0.7) achieves the lowest terminal fitness and maintains a stable descending trend throughout the optimization process, indicating a favorable balance between early exploration and late-stage exploitation. Although (0.9,0.1) also reaches a low final fitness in the very late stage, its associated angular error in Figure 3 is clearly larger, which makes it less suitable for rehabilitation-oriented inverse kinematics tasks that require simultaneous translational and rotational consistency.
Considering both the accuracy trade-off in Figure 3 and the convergence quality in Figure 4, the weight setting (wp,wR) = (0.3,0.7) was selected for the subsequent inverse kinematics experiments. This setting provides low translational and rotational errors simultaneously while also yielding the most desirable convergence behavior among the tested candidates. Therefore, it was adopted as the default coefficient configuration in the following subsection.

4.2.2. Inverse Kinematics Performance Evaluation

In this subsection, robot inverse kinematics is solved using the proposed IBBO algorithm, while the original BBO is adopted as a baseline for comparison. This choice is motivated by the benchmark-function evaluation in the previous section, which has already demonstrated the effectiveness and robustness of IBBO. The experiments are conducted on the rehabilitation mechanism under study. The robot is initialized at a given joint configuration θ0, where θ0 denotes the vector of initial joint angles. A target end-effector pose p is then selected (including both position and orientation). For each algorithm, an inverse kinematics solution is obtained and subsequently substituted into the forward kinematics model to compute the corresponding end-effector homogeneous transformation matrix. The predicted pose is compared with the desired target to quantify the inverse kinematics accuracy. Specifically, three evaluation metrics are adopted: the Frobenius-norm error of the end-effector pose transformation matrix, which quantifies the overall deviation between the predicted transformation and the target transformation; the position error, computed from the difference between the corresponding translational components; and the orientation error, obtained from the rotational components of the two transformations. Together, these metrics characterize both translational and rotational accuracy, thereby enabling an objective comparison between the improved beaver behavior optimizer and the baseline beaver behavior optimizer for inverse kinematics solving on the rehabilitation mechanism.
Table 4 presents a pointwise comparison of the computed inverse-kinematics results obtained by the two algorithms for 10 arbitrary target end-effector pose points. Figure 5 then compares the convergence curves during inverse kinematics solving. Figure 6, Figure 7 and Figure 8 report the error comparisons from different perspectives: Figure 6 summarizes the Frobenius-norm errors of the pose transformation matrix, Figure 7 compares the position errors derived from the translational components, and Figure 8 compares the orientation (angular) errors derived from the rotational components. In addition to these pointwise and metric-wise evaluations, Figure 9 visualizes the distributions of the experimental outcomes using boxplots, covering the objective function value, Frobenius-norm error, position error, and angular error. Figure 10 compares the runtime of the two algorithms. Finally, Figure 11 provides a target-point-wise error comparison.
Table 4 compares the inverse-kinematics solutions obtained by IBBO and BBO for ten arbitrary target pose points using three complementary accuracy indicators: the Frobenius-norm error of the pose transformation, the position error, and the orientation error. The results show that the relative performance is target-dependent; however, IBBO exhibits clear advantages at several challenging points where BBO produces large deviations. For example, at Point 1 and Point 9, IBBO substantially reduces both norm_F and the position error, while also achieving lower overall pose discrepancies. IBBO also yields consistently competitive solutions on Points 3 and 10, with lower errors across all reported metrics. In contrast, BBO attains smaller errors on some targets (e.g., Points 5–8) in terms of both translational and rotational components, indicating that it can perform well on certain pose instances. Overall, Table 4 suggests that IBBO provides improved robustness against difficult target poses by mitigating large pose and position deviations, while maintaining comparable orientation accuracy on most points.
Figure 5 compares the convergence behaviors of IBBO and BBO for inverse kinematics solving by plotting the best-so-far objective value f versus iteration on a logarithmic scale. Both methods exhibit a rapid decrease in the early stage, indicating effective initial exploration. However, IBBO continues to achieve further improvements throughout the optimization process and maintains a consistently lower best fitness trajectory after the initial transient phase. In contrast, BBO quickly enters a long plateau at a higher fitness level, suggesting premature stagnation and limited refinement capability in later iterations. Notably, IBBO shows multiple stepwise reductions in the mid-to-late stage and eventually reaches a substantially lower terminal objective value, demonstrating stronger exploitation and better convergence quality. Overall, the convergence curves indicate that IBBO provides a more reliable search process for the inverse kinematics objective, achieving both faster progress after early iterations and a lower final solution cost than the baseline method.
Figure 6, Figure 7 and Figure 8 provide a statistical comparison of inverse-kinematics accuracy across the evaluated target poses by summarizing four descriptive indicators: Max, Mean, RMSE, and Std for the Frobenius-norm pose error, position error, and orientation error, respectively. As shown in Figure 6, the improved optimizer yields markedly smaller values for all four statistics of the Frobenius-norm error, indicating a substantially lower overall deviation of the predicted pose transformation matrix from the target and a reduced worst-case discrepancy. Consistently, Figure 7 demonstrates that the position errors produced by the improved method are significantly reduced in terms of Max, Mean, RMSE, and Std, implying both higher translational accuracy and improved robustness across different target points. A similar trend is observed for rotational performance in Figure 8, where the improved method achieves much smaller angular-error statistics, including a noticeably reduced maximum error and tighter dispersion, reflecting more reliable orientation matching. Collectively, these three figures confirm that the improved optimizer enhances inverse-kinematics solution quality in a comprehensive manner—simultaneously lowering typical errors (Mean/RMSE), suppressing outliers (Max), and improving consistency (Std) for both translation and rotation across the tested targets.
Figure 9 presents boxplot-based comparisons of the two algorithms over 20 independent runs in terms of the objective value f, the Frobenius-norm pose error (norm_F), the position error, and the angular error. Across all four metrics, the distributions associated with IBBO are concentrated at markedly lower levels than those of BBO, indicating consistently improved solution quality. IBBO exhibits a substantially lower median and a tighter interquartile range for both f and norm_F, suggesting not only better optimization outcomes but also stronger robustness with reduced run-to-run variability. Similar patterns are observed for the position and angular errors, where IBBO yields smaller central tendency and generally narrower spread, implying more reliable translational and rotational accuracy across repeated trials. By contrast, BBO shows higher medians and wider dispersion in all metrics, reflecting greater sensitivity to stochastic initialization and a higher likelihood of suboptimal convergence. Overall, the boxplots provide distributional evidence that IBBO improves both accuracy and stability for inverse kinematics solving on the rehabilitation mechanism.
Figure 10 compares the average runtime of the two algorithms for inverse kinematics solving. The results indicate that IBBO and BBO require comparable computational time, with both methods exhibiting mean runtimes on the order of approximately one second. This observation suggests that the accuracy and robustness improvements achieved by IBBO are not obtained at the expense of a substantial increase in computational cost. Therefore, IBBO provides a favorable performance–efficiency trade-off, making it suitable for practical inverse kinematics applications in rehabilitation robotics where both precision and runtime are important.
Figure 11 compares the target-wise error profiles of IBBO and BBO by plotting the Frobenius-norm pose error, position error, and angular error for each evaluated target point. Across the three subplots, IBBO maintains consistently low error levels with only minor fluctuations, indicating stable inverse-kinematics performance over different poses. In contrast, BBO exhibits pronounced error spikes at several points, leading to substantially larger norm_F and position errors and, in some cases, elevated angular errors. These peaks suggest that the baseline method is more sensitive to target-dependent difficulty and may occasionally converge to suboptimal solutions. Overall, the pointwise comparisons demonstrate that IBBO not only improves average accuracy but also effectively suppresses worst-case deviations, thereby providing more reliable pose tracking across a diverse set of target configurations.
Overall, the inverse-kinematics experiments consistently demonstrate the superiority of IBBO over the baseline BBO. IBBO converges to a lower objective value without premature stagnation, as reflected by the convergence curves. Across target poses, IBBO achieves markedly smaller Frobenius-norm, position, and orientation errors, with reduced Max, Mean, RMSE and Std statistics and tighter boxplot distributions, indicating improved accuracy and robustness. The target-wise comparisons further show that IBBO effectively suppresses error spikes that occur in BBO, yielding more stable performance across different poses. Importantly, these gains are obtained with a comparable mean runtime, confirming a favorable accuracy–efficiency trade-off for practical inverse-kinematics solving in rehabilitation robotics.
Although the current study evaluates solution quality mainly by the end-effector pose error, this criterion does not fully capture the practical requirements of rehabilitation robotics. In real rehabilitation scenarios, an optimal inverse kinematics solution should also consider patient comfort, motion safety, joint tolerance, and clinical appropriateness, many of which may rely on therapist experience or patient-specific feedback [22,23]. Therefore, the present work should be regarded as a numerical optimization framework for inverse kinematics, rather than a complete human-centered rehabilitation decision model. In future work, human feedback can be incorporated into the optimization process by introducing comfort-related penalty terms, safety-aware constraints, or clinician-evaluated preference scores, thereby extending the proposed IBBO framework toward human-in-the-loop rehabilitation optimization.

5. Conclusions

To address the persistent challenges of inverse kinematics in rehabilitation robotic arms, including strong nonlinearity, multiple feasible joint configurations, and strict joint-limit constraints, this study proposed an improved beaver behavior optimizer (IBBO) for optimization-based inverse kinematics solving. By incorporating strict elitist replacement with rollback, momentum-inspired information transfer, a lightweight memetic coordinate-wise local search, and an adaptive builder-disturbance schedule, the proposed method enhances the balance between exploration and exploitation while alleviating premature convergence. The effectiveness of IBBO was validated through both benchmark-function tests and inverse kinematics experiments on rehabilitation robotic arms. The main conclusions are summarized as follows.
(1)
Competitive optimization capability and robustness. The benchmark results demonstrate that IBBO exhibits strong optimization performance, achieving competitive solution accuracy together with stable run-to-run behavior. These results indicate that the proposed method is a reliable metaheuristic solver for nonlinear and constrained optimization problems.
(2)
Improved convergence performance in inverse kinematics optimization. In the inverse kinematics tasks, IBBO shows a more favorable convergence pattern than the baseline optimizer. It effectively avoids early stagnation and continues refining solutions toward lower objective values during the later search stages, indicating stronger exploitation capability and improved convergence quality.
(3)
Higher pose accuracy with comparable computational efficiency. For rehabilitation-robot inverse kinematics, IBBO achieves lower pose errors, as reflected by reduced Frobenius-norm error, position error, and orientation error. In addition, it produces tighter error distributions and fewer target-dependent error spikes while maintaining a comparable mean runtime. This demonstrates that IBBO provides a better trade-off between solution accuracy and computational efficiency.
Overall, the results confirm that IBBO is an effective and robust optimization framework for solving inverse kinematics problems in rehabilitation robotic arms. Beyond its numerical advantages, the proposed method also shows the potential of translating beaver-inspired adaptive and cooperative behaviors into practical computational strategies for rehabilitation robotics.
Future work will focus on extending the proposed framework to more complex rehabilitation mechanisms and task scenarios, incorporating richer constraint models such as collision avoidance and dynamic feasibility, and exploring hybrid strategies with learning-based warm starts or adaptive parameter control to further improve generalization, stability, and real-time applicability.

Author Contributions

Conceptualization, S.F. and Y.D.; methodology, S.F.; software, Y.D.; validation, Z.L.; formal analysis, S.F.; investigation, S.F.; resources, Z.L.; data curation, Z.L.; writing—original draft preparation, S.F.; writing—review and editing, Y.D.; visualization, Y.D.; supervision, Y.D.; project administration, Z.L.; funding acquisition, Z.L. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported by the Dazhou Key Laboratory of Government Data Security (ZSAQ202502).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data generated and analyzed during this study are included in this published article. The MATLAB implementation of the Improved Beaver Behavior Optimizer (IBBO) is publicly available at: https://github.com/DYHuestc/IBBO (accessed on 18 March 2026).

Acknowledgments

The authors would like to express their sincere gratitude to their research team for their support, constructive suggestions, and helpful discussions throughout this study.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Cao, Q.; Li, L.; Li, J.; Li, R.; Wang, X. A methodology to quantify human–robot interaction forces: A case study of a 4-DOFs upper extremity rehabilitation robot. Robotica 2025, 43, 1469–1490. [Google Scholar] [CrossRef]
  2. Wu, J.; Wang, H.; Zhang, G.; Liu, Y.; Zhao, J.; Cai, H. An investigation into the application of an RL-GA-based multi-modal motion somatosensory optimization control strategy for a novel rehabilitation robot. IEEE Robot. Autom. Lett. 2025, 10, 8778–8785. [Google Scholar] [CrossRef]
  3. Xu, W.; Li, G.; Li, R. Design of home-based rehabilitation robot using joint-automated-combat-knowledge virtual simulation for patients with upper limb hemiplegia. Sens. Mater. 2025, 37, 4567–4585. [Google Scholar] [CrossRef]
  4. Zhou, L.; Zhang, B.; Kang, R.; Wang, Y.; Qin, J.; Xiao, Q.; Hui, V. Efficacy of the conventional rehabilitation robot and bio-signal feedback-based rehabilitation robot on upper-limb function in patients with stroke: A systematic review and network meta-analysis. NeuroRehabilitation 2025, 57, 169–180. [Google Scholar] [CrossRef]
  5. Su, D.; Hu, Z.; Wu, J.; Shang, P.; Luo, Z. Review of adaptive control for stroke lower limb exoskeleton rehabilitation robot based on motion intention recognition. Front. Neurorobot. 2023, 17, 1186175. [Google Scholar] [CrossRef]
  6. Xue, X.; Yang, X.; Deng, Z. Efficacy of rehabilitation robot-assisted gait training on lower extremity dyskinesia in patients with Parkinson’s disease: A systematic review and meta-analysis. Ageing Res. Rev. 2023, 85, 101837. [Google Scholar] [CrossRef] [PubMed]
  7. Alam, N.; Hasan, S.; Mashud, G.A.; Bhujel, S. Neural network for enhancing robot-assisted rehabilitation: A systematic review. Actuators 2025, 14, 16. [Google Scholar] [CrossRef]
  8. Zhang, Z.; Huang, W. Exoskeleton robot gait training and its impact on the gut microbiota-brain axis in incomplete spinal cord injury patients: A narrative review of rehabilitation mechanisms. J. Multidiscip. Healthc. 2025, 18, 6411–6430. [Google Scholar] [CrossRef]
  9. Yang, Y.; Teo, H.H.; King, Y.J. Towards intelligent human–robot interaction for upper limb rehabilitation: A review of emerging modalities and strategies. IEEE Access 2025, 13, 185513–185532. [Google Scholar] [CrossRef]
  10. Li, L.; Qiang, F.; Sarah, T.; Nick, P.; Andrew, W. A scoping review of design requirements for a home-based upper limb rehabilitation robot for stroke. Top. Stroke Rehabil. 2021, 29, 449–463. [Google Scholar] [CrossRef]
  11. Khoramshahi, M.; Roby-Brami, A.; Parry, R.; Jarrassé, N. Identification of inverse kinematic parameters in redundant systems: Towards quantification of inter-joint coordination in the human upper extremity. PLoS ONE 2022, 17, e0278228. [Google Scholar] [CrossRef]
  12. Ning, Y.; Sang, L.; Wang, H.; Wang, Q.; Vladareanu, L.; Niu, J. Upper limb exoskeleton rehabilitation robot inverse kinematics modeling and solution method based on multi-objective optimization. Sci. Rep. 2024, 14, 25476. [Google Scholar] [CrossRef] [PubMed]
  13. Zhao, G.; Jiang, D.; Liu, X.; Tong, X.; Sun, Y.; Tao, B.; Fang, Z. A tandem robotic arm inverse kinematic solution based on an improved particle swarm algorithm. Front. Bioeng. Biotechnol. 2022, 10, 832829. [Google Scholar] [CrossRef]
  14. Slim, M.; Rokbani, N.; Neji, B.; Terres, M.A.; Beyrouthy, T. Inverse kinematic solver based on bat algorithm for robotic arm path planning. Robotics 2023, 12, 38. [Google Scholar] [CrossRef]
  15. Chagas, F.S.; de Farias, L.D.P.; Bechina, A.A.A.; Ramos, A.L.; Rosa, P.F. Walking optimization algorithm for humanoid robots using genetic algorithm. In Proceedings of the 2024 10th International Conference on Control, Decision and Information Technologies (CoDIT), Vallette, Malta, 1–4 July 2024; pp. 2348–2353. [Google Scholar]
  16. Liu, Y.; Xi, J.; Bai, H.; Wang, Z.; Sun, L. A general robot inverse kinematics solution method based on improved PSO algorithm. IEEE Access 2021, 9, 32341–32350. [Google Scholar] [CrossRef]
  17. Duymazlar, O.; Engin, D. Boomerang algorithm based on swarm optimization for inverse kinematics of 6 DOF open chain manipulators. Turk. J. Electr. Eng. Comput. Sci. 2023, 31, 342–359. [Google Scholar] [CrossRef]
  18. Ouyang, K.; Wei, D.; Sha, X.; Yu, J.; Zhao, Y.; Qiu, M.; Chen, H. Beaver behavior optimizer: A novel metaheuristic algorithm for solar PV parameter identification and engineering problems. J. Adv. Res. 2025. [Google Scholar] [CrossRef]
  19. Song, M.; An, M.; He, W.; Wu, Y. Research on land use optimization based on PSO-GA model with the goals of increasing economic benefits and ecosystem services value. Sustain. Cities Soc. 2025, 119, 106072. [Google Scholar] [CrossRef]
  20. Kmich, M.; El Ghouate, N.; Bencharqui, A.; Karmouni, H.; Sayyouri, M.; Askar, S.S.; Abouhawwash, M. Chaotic Puma Optimizer algorithm for controlling wheeled mobile robots. Eng. Sci. Technol. Int. J. 2025, 63, 101982. [Google Scholar] [CrossRef]
  21. Makhadmeh, S.N.; Kassaymeh, S.; Rjoub, G.; Bataineh, B.; Sanjalawe, Y.; Al-Betar, M.A. Recent advances in multi-objective whale optimization algorithm, its versions and applications. J. King Saud Univ. Comput. Inf. Sci. 2025, 37, 200. [Google Scholar] [CrossRef]
  22. Chen, T.; Chen, X.; Chen, W.; Heaton, H.; Liu, J.; Wang, Z.; Yin, W. Learning to optimize: A primer and a benchmark. J. Mach. Learn. Res. 2022, 23, 8562–8620. [Google Scholar]
  23. Tao, L.; Tong, X.; Tan, C.W. Learning to Optimize by Differentiable Programming. arXiv 2026, arXiv:2601.16510. [Google Scholar] [CrossRef]
Figure 1. Structure of the rehabilitation robot and its coordinate system.
Figure 1. Structure of the rehabilitation robot and its coordinate system.
Biomimetics 11 00259 g001
Figure 2. Progression of best fitness over iterations on the CEC 2022 benchmark suite.
Figure 2. Progression of best fitness over iterations on the CEC 2022 benchmark suite.
Biomimetics 11 00259 g002aBiomimetics 11 00259 g002bBiomimetics 11 00259 g002cBiomimetics 11 00259 g002d
Figure 3. Sensitivity of translational and rotational accuracy to weight settings.
Figure 3. Sensitivity of translational and rotational accuracy to weight settings.
Biomimetics 11 00259 g003
Figure 4. Convergence curves under different weight settings.
Figure 4. Convergence curves under different weight settings.
Biomimetics 11 00259 g004
Figure 5. Comparison of convergence curves for inverse kinematics solving.
Figure 5. Comparison of convergence curves for inverse kinematics solving.
Biomimetics 11 00259 g005
Figure 6. Comparison of Frobenius-norm errors.
Figure 6. Comparison of Frobenius-norm errors.
Biomimetics 11 00259 g006
Figure 7. Comparison of position errors.
Figure 7. Comparison of position errors.
Biomimetics 11 00259 g007
Figure 8. Comparison of orientation errors.
Figure 8. Comparison of orientation errors.
Biomimetics 11 00259 g008
Figure 9. Boxplots of experimental results for the two algorithms.
Figure 9. Boxplots of experimental results for the two algorithms.
Biomimetics 11 00259 g009aBiomimetics 11 00259 g009b
Figure 10. Runtime comparison between the two algorithms.
Figure 10. Runtime comparison between the two algorithms.
Biomimetics 11 00259 g010
Figure 11. Target-point error comparison between the two algorithms.
Figure 11. Target-point error comparison between the two algorithms.
Biomimetics 11 00259 g011
Table 1. Upper limb rehabilitation robot D-H parameters.
Table 1. Upper limb rehabilitation robot D-H parameters.
Joint iLink Length ai/mmJoint Offset di/mmLink Twist Angle αi/degJoint Angle θi/deg
100−90θ1 ∈ [−90, 45]
200−90θ2 ∈ [−45, 90]
3a300θ3 ∈ [0, 140]
40d4−90θ4 ∈ [−60, 30]
5a50−90θ5 ∈ [−30, 30]
Table 2. Experimental results on the CEC 2022 (Dim = 20).
Table 2. Experimental results on the CEC 2022 (Dim = 20).
FunctionMetricPSOPOWOABBOIBBO
F1Ave3.05304 × 1032.89714 × 1046.29064 × 1043.00324 × 1023.00143 × 102
Std6.76512 × 1037.58679 × 1033.39375 × 1042.75830 × 10−16.53649 × 10−2
F2Ave1.54237 × 1039.88878 × 1024.69160 × 1024.58889 × 1024.55881 × 102
Std4.82963 × 1021.85662 × 1022.81762 × 1011.21226 × 1011.18816 × 101
F3Ave6.04006 × 1026.49557 × 1026.76798 × 1026.02051 × 1026.00405 × 102
Std3.551878.555391.06468 × 1012.676481.15530
F4Ave8.40677 × 1029.46254 × 1029.66368 × 1028.39732 × 1028.21396 × 102
Std1.18035 × 1011.58013 × 1012.33459 × 1011.27921 × 1016.15098
F5Ave9.96522 × 1023.03894 × 1033.48720 × 1031.02328 × 1039.00510 × 102
Std1.68575 × 1026.95422 × 1027.98237 × 1021.30824 × 1026.33159 × 10−1
F6Ave4.47208 × 1063.20078 × 1086.48664 × 1084.51101e × 1033.66682e × 103
Std1.31239 × 1071.22075 × 1088.15979 × 1083.10977 × 1031.39488 × 103
F7Ave2.06033 × 1032.14170 × 1032.23363 × 1032.06585 × 10332.05024 × 103
Std3.38500 × 1012.86065 × 1016.47122 × 1013.63439 × 1011.25879 × 101
F8Ave2.28720 × 1032.28581 × 1032.34168 × 1032.25941 × 1032.22541 × 103
Std6.79818 × 1013.36396 × 1011.12329 × 1025.47716 × 1012.28352
F9Ave2.51849 × 1032.67595 × 1032.82493 × 1032.48085 × 1032.48083 × 103
Std4.78258 × 1014.88987 × 1011.07099 × 1026.26016 × 10−23.57038 × 10−2
F10Ave3.14269 × 1033.49186 × 1036.19334 × 1033.01343 × 1032.55368 × 103
Std5.04244 × 1021.65755 × 1031.17447 × 1034.36370 × 1021.91182 × 102
F11Ave2.90000 × 1033.05014 × 1048.90454 × 1032.90417 × 1032.90245 × 103
Std1.35814 × 10−117.48845 × 1031.26489 × 1032.435736.34413
F12Ave3.01848 × 1033.12555 × 1033.29696e × 1032.96383 × 1032.94768 × 103
Std5.38569 × 1013.66788 × 1011.84033 × 1022.25913 × 1016.87448
Table 3. Summary of statistical significance tests and ranking results on the CEC 2022 (Dim = 20).
Table 3. Summary of statistical significance tests and ranking results on the CEC 2022 (Dim = 20).
FunctionMetricPSOPOWOABBOIBBO
F1F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F2F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F3F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F4F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F5F-ranking24531
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F6F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F7F-ranking24531
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F8F-ranking24531
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F9F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F10F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F11F-ranking15432
Wilcoxon(-)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
F12F-ranking34521
Wilcoxon(+)(+)(+)(+)
p-valuep < 0.05p < 0.05p < 0.05p < 0.05
Table 4. Comparison of the results of the two algorithms for 10 arbitrary target pose points.
Table 4. Comparison of the results of the two algorithms for 10 arbitrary target pose points.
PointIBBOBBO
norm_Fpos_error
(mm)
ang_error
(deg)
norm_Fpos_error
(mm)
ang_error
(deg)
10.02250.02250.06310.45320.45320.0351
20.01280.01280.00100.00350.00330.0461
30.00680.00680.00040.03690.03690.0008
40.03140.03140.01280.02590.01990.0151
50.00790.00790.01340.00110.00520.0004
60.00300.00300.00130.00180.00180.0007
70.03700.037460.00440.01560.00110.0041
80.02630.02630.00740.02230.02230.0019
90.11030.11030.00470.35380.35380.0064
100.01540.01540.01570.02620.02610.0488
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

Fan, S.; Deng, Y.; Li, Z. An Improved Biomimetic Beaver Behavior Optimizer for Inverse Kinematics of Rehabilitation Robotic Arms. Biomimetics 2026, 11, 259. https://doi.org/10.3390/biomimetics11040259

AMA Style

Fan S, Deng Y, Li Z. An Improved Biomimetic Beaver Behavior Optimizer for Inverse Kinematics of Rehabilitation Robotic Arms. Biomimetics. 2026; 11(4):259. https://doi.org/10.3390/biomimetics11040259

Chicago/Turabian Style

Fan, Shuxin, Yonghong Deng, and Zhibin Li. 2026. "An Improved Biomimetic Beaver Behavior Optimizer for Inverse Kinematics of Rehabilitation Robotic Arms" Biomimetics 11, no. 4: 259. https://doi.org/10.3390/biomimetics11040259

APA Style

Fan, S., Deng, Y., & Li, Z. (2026). An Improved Biomimetic Beaver Behavior Optimizer for Inverse Kinematics of Rehabilitation Robotic Arms. Biomimetics, 11(4), 259. https://doi.org/10.3390/biomimetics11040259

Article Metrics

Back to TopTop