The present invention relates to a
system for
rehabilitation of a patient having a physical impairment by providing
music therapy, the
system comprising a computer
system having a processor configured by
machine-readable instructions which, when executed, configure the processor to receive, from a sensor in communication with the computer system, biomechanical data for the patient regarding
repetitive movements of the patient, and determine a baseline condition from the biomechanical data, wherein the biomechanical data is measured using the sensor, determine a beat tempo having a
constant frequency based on the baseline condition, provide music to the patient, the music having beat signals at the beat tempo, provide a cue to the patient to perform each repetitive movement in time with an associated beat
signal, receive time-stamped biomechanical data of the patient relating to the
repetitive movements performed by the patient in time with the beat signals, analyze the time-stamped biomechanical data to identify a respective onset time of each of the
repetitive movements performed by the patient, determine an entrainment parameter based on the respective onset time for each of the repetitive movements and an associated beat
signal, wherein the entrainment parameter represents the
delay between the beat of each beat
signal and the onset time of each of the plurality of repetitive movements, modify the music based on the entrainment parameter, and wherein the processor repeats the foregoing receive, analyze, determine and modify operations throughout the therapy session, whereby the music provided to the patient is dynamically modified in near real-time as a function of the entrainment parameter.