SINERGI Vol. No. October 2025: 811-818 http://publikasi. id/index. php/sinergi http://doi. org/10. 22441/sinergi. Adaptive high-level control for robot-assisted rehabilitation: A Discrete Event System approach Abu Ubaidah Shamsudin1*. Shahrul Naim Sidek2. Ahmad Jazlan Haja Mohideen2. Mohd Noor Fakhzan Mohd Kazim3. Mohd Faid Yahya4. Carl Salaan5 Faculty of Electric and Electronic Engineering. Universiti Tun Hussein Onn Malaysia (UTHM). Malaysia Department of Mechatronics Engineering. Kulliyyah of Engineering. International Islamic University Malaysia. Malaysia Faculty of Electrical Engineering Technology. University Malaysia Perlis. Malaysia Department of Mechatronics Engineering. Faculty of Electrical Engineering. Universiti Teknikal Malaysia Melaka. Malaysia Center for Mechatronics and Robotics. Mindanao State University-Iligan Institute of Technology. Philippines Abstract This research introduces a two-degree-of-freedom rehabilitation robotic platform to enhance Constraint-Induced Movement Therapy (CIMT) for post-stroke upper limb rehabilitation. Unlike conventional CIMT, that depends on therapist intervention, the proposed system integrates a control framework balancing assistance and autonomy to improve patient engagement and recovery efficiency. The main contribution is a hybrid control architecture combining a low-level impedance controller with a high-level discrete event system (DES) This dual-layer control enables real-time adaptation to a patientAos motor impairment stage, offering dynamic and personalized The high-level controller, structured around the Chedoke-McMaster Assessment (CMA), facilitates intelligent transitions between rehabilitation states, ensuring robotic assistance matches recovery progress. The design emphasizes simplicity, portability, and user-friendliness, employing a lightweight, cabledriven mechanism that produces smooth and natural movements, closely replicating manual therapy. Experiments with healthy subjects simulating impaired conditions demonstrated the systemAos ability to adjust assistance levels and movement velocities according to motor function stages. The results confirm the feasibility of an adaptive, patient-centric control framework that enhances motor engagement and supports progressive rehabilitation. Future work will focus on clinical validation with stroke patients, expanding movement directions, and long-term evaluation of therapeutic outcomes in realworld settings. Overall, this study offers a scalable, data-driven approach bridging robotic automation and therapist-guided rehabilitation, opening new possibilities for improving neuroplasticity and motor recovery after stroke. Keywords: Chedoke-McMaster. Discrete Event System Approach. Rehabilitation Robot. Article History: Received: December 28, 2024 Revised: March 15, 2025 Accepted: June 16, 2025 Published: September 5, 2025 Corresponding Author: Abu Ubaidah bin Shamsudin Faculty of Electrical and Electronic Engineering. Universiti Tun Hussein Onn Malaysia Email: ubaidah@uthm. This is an open-access article under the CC BY-SA license. INTRODUCTION Robot-assisted rehabilitation has emerged as a promising approach to enhance and quantify Constraint-Induced Movement Therapy (CIMT) for individuals with upper limb impairment following a stroke . By limiting movement of the unaffected limb. CIMT, an evidence-based rehabilitation technique, encourages patients to use their impaired limb, thereby promoting neuroplasticity and the recovery of motor function . Despite its efficacy, traditional CIMT is labor-intensive and only available to a limited Ubaidah et al. Adaptive high-level control for robot-assisted rehabilitation: A Discrete . SINERGI Vol. No. October 2025: 811-818 number of patients due to its heavy reliance on therapist intervention. By lowering the workload of high-intensity, repetitive, and task-specific trainingAiall of which are essential for motor recoveryAirobotic systems offer a revolutionary solution in this regard . Additionally, these systems provide quantifiable performance monitoring, which allows for realtime therapy modifications in response to patient progress . Furthermore, by automating certain patient care tasks, robotic-assisted rehabilitation can maximize resource allocation and free up therapists to concentrate on more intricate interventions . To improve stroke rehabilitation, several robotic CIMT platforms have been created. Using a master-slave control principle, the six-DOF Mirror Image Movement Enable (MIME) system applies forces to the injured limb to aid in rehabilitation . To encourage sustained participation and adherence to rehabilitation exercises, other robotic systems use socially assistive robots and gamification . Furthermore, some robotic devices actively assess movement impairments and compensate for deficits during therapy, acting as both therapeutic assistants and diagnostic tools . Additionally, by fusing exoskeleton and end-effector designs, hybrid rehabilitation robots use adaptive control techniques to customize interventions according to the needs of each patient . The CURER exoskeleton, which uses a lightweight, cabledriven design for upper-limb rehabilitation, and the xArm-5 robotic manipulator, which combines Industrial Internet of Things (IIoT) capabilities for remote therapy and augmented reality-assisted rehabilitation . Even with these developments, there is still a significant gap in simulating the organic, minimally interventionist guidance of human The use of subtle fingertip guidance by therapists in manual rehabilitation promotes neuroplasticity and motor relearning by enabling patients to initiate movement with little external force . Achieving this delicate balance between autonomy and assistance in robotic systems is difficult, though, and calls for sophisticated control strategies that can adjust to the unique motor impairments of each patient . This study addresses these issues by two-degree-of-freedom rehabilitation robotic platform that is intended to improve upper-limb therapy while maintaining ease of use, portability, and flexibility. The system's lightweight, cable-driven mechanism closely resembles therapist-guided rehabilitation, and it was inspired by the ARM Guide robot. This work's main innovation is its hybrid control framework, which combines a high-level discrete event system (DES)-based controller built around the Chedoke-McMaster Assessment (CMA) with a low-level impedance controller to guarantee fluid, natural motion execution. This configuration is rarely seen in portable rehabilitation robots. This architecture enables dynamic, stage-specific support that adheres to clinical assessment Additionally, the system receives realtime feedback on patient engagement from the force sensors embedded in the end-effector, which allows it to adjust the therapy's intensity based on user effort. These features work together to provide a scalable, data-driven, patient-centered rehabilitation solution that links therapist-guided This paper presents the complete design, control architecture, and experimental validation of the proposed system. Preliminary tests using healthy subjects that simulate motor impairments suggest that the platform could offer intelligently adjusts to patient needs. METHOD Rehabilitation Robot Design and Kinematic Analysis The workspace requirements of ConstraintInduced Movement Therapy (CIMT) guided the rehabilitation robot's design and kinematic analysis, which concentrated on the normal range of motion required for this type of therapy. Primary movements of forward-backward movement, as illustrated in Figures 1. The workspace was carefully mapped to ensure the robot could assist the patient within the necessary range of motion, ensuring that all therapeutic movements are well within the robotAos capabilities. The design of the rehabilitation robot was developed based on the workspace requirements of Constraint-Induced Movement Therapy (CIMT), ensuring that the system could facilitate movements essential for upper-limb recovery. The primary motion involved in CIMT, which consists of forward and backward arm movements, was carefully mapped to align with the natural range of motion observed in stroke patients, as illustrated in Figure 1. This approach ensures that the robotic system can effectively assist patients by providing movement within the necessary therapeutic range. By reinforcing taskspecific and repetitive training, which are key principles in neurorehabilitation, the system promotes motor recovery through controlled and adaptive rehabilitation exercises . The rehabilitation robot, depicted in Figure 2, consists of several key components designed to Ubaidah et al. Adaptive high-level control for robot-assisted rehabilitation: A Discrete . p-ISSN: 1410-2331 e-ISSN: 2460-1217 enhance rehabilitation therapy. The mechanical structure was developed using Google SketchUp for 3D modeling, while fabrication was carried out using a water jet cutter to ensure high precision and efficient assembly. The system comprises four major subsystems. The first subsystem features a rotational axis actuator responsible for the yaw motion of the robot, enabling smooth sideto-side movement of the patientAos arm through a brushless DC motor that provides controlled rotation . The second subsystem consists of a linear guide and a locking mechanism, which facilitates forward and backward movement of the robotAos end-effector while maintaining stability through an active locking feature when required. The third subsystem includes a linear guide actuator powered by a brushless DC motor (AXH. , which ensures precise linear motion that replicates natural rehabilitation movements . The fourth subsystem consists of the gripperbased end-effector, which serves as the primary interface between the patient and the robotic The gripper is embedded with four force sensors, strategically placed to measure forces exerted in two axes: left-right and front-back. These sensors provide real-time monitoring of patient engagement, allowing for dynamic adjustments to therapy intensity based on individual performance . The integration of these subsystems allows the robot to effectively simultaneously tracking patient progress, ensuring that therapy remains data-driven and adaptive to individual needs. Figure 1. Forward and backward arm movement workspace for rehabilitation Figure 2. Prototype of robot-assisted rehabilitation system Chedoke-McMaster High Level Controller The robot-assisted rehabilitation system is the control architecture of the rehabilitation robot is structured around the Chedoke-McMaster Assessment (CMA), a widely used clinical tool for evaluating motor impairment in stroke patients. The high-level controller operates as a supervisory system that dynamically adjusts rehabilitation therapy based on the patientAos motor function stage. In parallel, a low-level controller regulates the impedance of the robot to ensure smooth and natural movement execution . To facilitate real-time transitions between rehabilitation states, the high-level controller employs a Discrete Event System (DES). This framework categorizes patient recovery states and ensures that therapy adjustments are personalized based on individual impairments. The general structure of the DES controller is illustrated in Figure 3. The rehabilitation process begins when the patient initiates movement using their affected arm while holding onto the robotic The force sensors embedded in the gripper continuously measure the forces exerted by the patient, mapping them to their corresponding CMA-defined recovery stages. When the system detects weak force output, the velocity of movement is gradually increased to provide active assistance. Conversely, if the patient exhibits sufficient force output, the system applies resistive forces to encourage independent movement, thus promoting active engagement in the rehabilitation process . The CMA-based control model is translated into control states under the DES framework, as summarized in Table 1. additional state, labeled as State 8, represents the condition in which the patientAos arm has reached the desired rehabilitation position. Ubaidah et al. Adaptive high-level control for robot-assisted rehabilitation: A Discrete . SINERGI Vol. No. October 2025: 811-818 Table 2: List of action symbols and definitions Control Symbol r 1E r 2E r 3E r 4E r 5E r 6E r 7E r 8E Definition of actions The client needs total assistance with maximum speed . Maximal assistance with Speed maximum . Moderate assistance . Minimal assistance . Clients needs supervision . Client is modified independent but needs assistance from devices . Client is timely and safely independent . Negate flag value Table 3: List of plant symbols and definitions Plant Symbol x 1E x 2E x 3E x 4E Figure 3. General structure of the DES controller Each control state is assigned a unique control symbol that the corresponding rehabilitation therapy mode. The list of control actions is provided in Table 2, while Table 3 presents the plant symbols used for transitioning between control states. The transitions within the DES controller are triggered by real-time sensor feedback obtained primarily from force and position sensors. The finite automaton illustrating these transitions is shown in Figure 4. The plant symbols generated from the sensor inputs determine the patientAos functional state and guide their progression through different rehabilitation This structured approach enables adaptive trajectory modifications based on the forces exerted by the patient, allowing velocity scaling for progressive assistance while integrating real-time feedback to dynamically adjust therapy intensity. x 5E x 6E x 7E x 8E Impairment inventory generated from the force sensors Flaccid paralysis: 0% of normal strength (N) Spasticity is present and felt as a resistance to passive movement: 0%-10% of normal strength (N) Marked spasticity but voluntary movement present within synergistic patterns: 10%-50% of normal strength (N) Spasticity decreases: 50%-80% of normal strength (N) Spasticity wanes but is evident with rapid movement at the extremes of range:80a%% of normal strength(N) Coordination and patterns of movement are near normal: 90%-100% of normal strength (N) Normal movement: 90%-100% of normal strength(N) Patient's arm arrived at the desired position . or origin . Table 1: List of control states Control State State 1. cEya ) State 2 . cEya ) State 3. cEyc ) State 4. cEye ) State 5. cEye ) State 6. cEyi ) State 7. cEyi ) State 8. cEyn ) CMA Stage Patient CMA Stage 1 CMA Stage 2 CMA Stage 3 CMA Stage 4 CMA Stage 5 CMA Stage 6 CMA Stage 7 Patient arm has reached the desired position or initial position Figure 4. Finite automaton of robot assisted rehabilitation controller The experimental setup, illustrated in Figure 5, consists of a supervisory controller implemented on a host PC, as shown in Figure 6, interfacing with the robotic platform through a microcontroller-based communication system. The MATLAB Stateflow toolbox in Simulink is used to develop both the high-level DES-based Ubaidah et al. Adaptive high-level control for robot-assisted rehabilitation: A Discrete . p-ISSN: 1410-2331 e-ISSN: 2460-1217 controller and the low-level impedance controller, ensuring real-time communication between the PC and the robotic system, as shown in Figure 7. The Atmel microcontroller plays a vital role in signal processing by converting analog inputs from the sensors into digital data, which is transmitted via UART through a USB connection to the host PC. Additionally, the microcontroller receives digital commands from Simulink, which are converted back into analog signals to control the brushless DC motor driver that actuates the robotic platform. The system includes two brushless DC motors with built-in velocity control, which ensures precise and repeatable movements during rehabilitation. A multi-turn potentiometer is used as a position sensor to monitor the robotic armAos gripper position, ensuring accurate execution of therapeutic trajectories. Furthermore, the system is equipped with four Flexi-Force sensors capable of measuring forces within a 0100N range, allowing real-time monitoring of patient effort and dynamic adjustments to therapy intensity based on force constraints. The continuous monitoring of rehabilitation progress, with the robotic system adapting in real-time to the patientAos motor recovery state. The integration of force feedback, trajectory control, and real-time sensor data enables a highly responsive rehabilitation system that ensures therapy remains personalized, effective, and adaptable. The block representation of the experimental setup is shown in Figure 5, while the detailed Simulink block diagram of the control implementation is provided in Figure 6. Figure 5. Experimental setup Figure 6. Block representation of experimental Figure 7. The simulink block diagram The integration of these hardware and rehabilitation system operates efficiently, allowing for precise control of the robotic movements while simultaneously providing real-time feedback to the therapist and patient. RESULTS AND DISCUSSION The supervisory hybrid real-time control system was evaluated for its effectiveness in state transitions and patient state assessment, with experiments conducted on a healthy subject. The subject simulated stroke patient impairment at Chedoke-McMaster (CMA) impairment level 2, during which the supervisory hybrid control automatically selected maximal assistance as the appropriate therapy for this condition. The subject's right hand was placed on the robotic gripper, and the system dynamically adjusted the therapy based on force sensor input data, demonstrating the system's responsiveness to varying levels of simulated impairment. These results confirm the systemAos ability to adapt rehabilitation assistance in real time, based on force feedback, thereby offering a personalized therapeutic experience. For deployment in clinical settings, structured therapist training and compatibility with current rehabilitation protocols will be necessary to ensure effective and safe integration into existing healthcare environments. States triggered by force sensors' inputs on the high-level DES control The high-level control system responded to the force sensor inputs by triggering appropriate states corresponding to the patient's condition. the subject mimicked the impaired state, the system engaged in maximal assistance, adjusting the velocity and movement to match the impaired motor functions . Force inputs at specific points in the rehabilitation cycle, as depicted in Figure 8, showed key transitions between stages. For instance, when the force input reached 0 N at point A, corresponding to CMA stage 4, low velocity was applied to prevent overwhelming the subject while promoting gradual control improvement . At points B and C, force inputs fluctuated between -20 N and -60 N and returned Ubaidah et al. Adaptive high-level control for robot-assisted rehabilitation: A Discrete . SINERGI Vol. No. October 2025: 811-818 to 0 N, respectively, marking the onset of spasticity and the need for controlled movement. Plant input produced by all the statesAo highlevel controllers The system's ability to adapt to spasticity, especially in stages 2 and 6, demonstrated its capacity to facilitate rehabilitation. As the force input increased to between 40 N and 60 N at point D, stage 6 was triggered, where coordination improved, and a moderate velocity was introduced to challenge the patient while ensuring correct movement patterns. This adaptive response highlights the systemAos effectiveness in delivering tailored rehabilitation that progresses with the patient's recovery . Furthermore, the dynamic interaction between the supervisory control states and the plant inputs, as shown in Figure 9, illustrated how the system's transitions fostered patient engagement, independence, and motor skill development. Throughout therapy, the system alternated between forward and backward motions to ensure coordination and active participation, consistent with established findings linking brain signals to motor movements . order to maintain patient safety, the system offered maximum assistance at a lower velocity when patients showed limited voluntary In order to encourage independence and strengthen motor learning, the system increased velocity as the patient's motor function improved . Figure 8. Force input for the system Figure 9. High-Level Control Triggers the State Figure 10. Velocity Output Velocity produced by all the plant inputs The way the supervisory control states adjust the system's velocity output and customize the rehabilitation process to the patient's requirements is further illustrated in Figure 10. represent the patient's degree of impairment, the different velocities, such as 3 cm/s for minimal assistance and 2 cm/s for maximal assistance were carefully selected. The velocity increased to rehabilitation progress as the patient's abilities This adaptive control strategy aligns with studies emphasizing the significance of assistance levels and velocity in maximizing stroke recovery . CONCLUSION This study demonstrates that the integration of a high-level supervisory control framework with precise plant inputs in a robotassisted rehabilitation system can significantly enhance patient engagement and improve recovery outcomes. A key novelty of this system lies in the discrete event system (DES)-based high-level controller structured around the Chedoke-McMaster Assessment (CMA), which represents a novel approach in the context of portable rehabilitation platforms. This architecture enables structured, stage-specific adaptation of therapy based on patient motor impairment, supported by real-time force feedback that dynamically adjusts movement velocity and assistance level. In addition, the lightweight, cable-driven mechanical design closely mimics therapist-guided movements while maintaining portability and ease of use. Experimental validation with healthy subjects simulating impaired conditions confirmed the systemAos ability to deliver adaptive, personalized rehabilitation. While the findings establish feasibility, clinical validation involving stroke patients remains a critical next step. Moreover, the current system is limited to forward-backward planar motion suited Ubaidah et al. Adaptive high-level control for robot-assisted rehabilitation: A Discrete . p-ISSN: 1410-2331 e-ISSN: 2460-1217 for Constraint-Induced Movement Therapy (CIMT). future work will focus on expanding the long-term evaluations, and improving clinical applicability. For deployment in clinical settings, structured therapist training and compatibility with existing rehabilitation protocols will be necessary to ensure effective integration and broader adoption. ACKNOWLEDGMENT This research was funded by a grant from the Ministry of Higher Education of Malaysia through the Fundamental Research Grant Scheme (FRGS/1/2022/ICT02/UTHM/03/. REFERENCES