The document discusses the development of a knee continuous passive motion (CPM) machine controlled by a hybrid proportional integral derivative (PID) and iterative learning control (ILC) algorithm to improve trajectory tracking in rehabilitation therapy. The proposed system is designed to adapt to different patient loads and maintain performance despite disturbances, showing enhanced ability to conform to therapy trajectories over time. Experimental results indicate the effectiveness of the PID-ILC controller in achieving accurate tracking and reducing steady-state errors in varying load conditions.