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:
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
can be obtained. Their ordered product yields the overall homogeneous transformation from the base frame to the end-effector frame, denoted by
, as expressed in Equation (2):
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, 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:
where
and
denote the desired orientation and position, respectively.
For a given joint vector
, the forward kinematics yields the current pose:
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:
The magnitude 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:
The corresponding geodesic rotation-angle error is:
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:
where
and
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:
where the objective function is defined as a normalized weighted sum of the position error and orientation error:
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:
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:
where
rand∼U(0,1).
θ,
θj are joint vector and its
j-th component (radians), respectively.
represent lower and upper joint limits, respectively. Compute fitness
using Equation (9), and store the best solution:
BBO uses a smooth increasing factor to shift from global exploration to local exploitation:
Draw r∼U(0,1). If r ≤ E(t), execute exploitation; otherwise, execute exploration.
In exploitation, each beaver learns from a randomly selected peer
k ≠
i and from the global best:
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 , and the rest are explorers.
Architect update (elite mutual learning). For an architect
, randomly pick another architect
:
where
r3,
r4∼U(0,1).
is the indicator function.
Explorer update (learn from elites + stochastic probing). For an explorer
, pick an architect
and apply:
where
r5,
r6∼U(0,1).
is standard Gaussian noise, and the noise amplitude decays with iterations:
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:
Then evaluate the new fitness
. A common acceptance rule is greedy:
and update
according to Equation (13).
After
T iterations, BBO outputs the inverse kinematics solution:
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
is generated by the update rule (either exploration or exploitation), and its fitness is computed as
. IBBO adopts a strict elitist acceptance with rollback to ensure that the stored state “position–fitness” is always consistent:
Then the global best is updated accordingly:
where
denotes the trial joint vector generated at iteration
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
to guide late-stage refinement. Select a random peer
k ≠
i. The momentum update is:
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:
where
ε(t) is the perturbation, a small Gaussian noise with a decaying amplitude:
where
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.7
T. Every
K iterations, for the
j-th coordinate, a rapidly decaying step size is defined as:
where
is coordinate refinement step size,
denotes initial refinement scale,
T represents the maximum number of iterations.
Two trial candidates are constructed:
where
ej is the
j-th standard basis vector. After clamping
θ+ and
θ− to joint limits, the best solution is refined as:
- (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:
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:
where ⌊⋅⌋ denotes the floor operator.
After sorting individuals by fitness (ascending order), the architect set
is constructed as the indices of the top
NA(
t) individuals:
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
is replaced by
, 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 fi←f(θ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, lastBest←f∗. |
| 6. | for t = 1 to T |
| 7. | Compute phase factor E←sin (π/2) t/T). |
| 8. | Compute architect ratio ρA(t)←ρmax − (ρmax − ρmin)·t/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, fi←fi. |
| 14. | if rand < E then (Exploitation with momentum) |
| 15. | Randomly choose k ≠ i, draw r1, r2 ∈ [0, 1] |
| 16. | Update velocity vi←w(t)vi + c1(t)r1⊙(θk − θi) + c2(t)r2⊙(θ∗ − θi). |
| 17. | Generate candidate θ′i←i + 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∈ then (Architect update) |
| 21. | Choose k ∈ , k ≠ i. 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 ∈ . 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))( − )(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′, fi←fi′ |
| 33. | else rollback θi←θi, fi←fi. |
| 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( − ), 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 , 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 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 time. Identifying architects requires sorting the population by fitness, which costs per iteration. Fitness evaluation dominates the runtime and costs per iteration because each candidate solution must be evaluated once.
Therefore, the overall complexity of the main evolutionary loop is
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
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:
which is typically negligible compared with
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 , while additional scalars (best fitness, counters, and scheduling parameters) contribute negligible overhead.
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.