the preferred embodiments of the present invention will now be described with reference to the drawings . identical elements in the various figures are identified , as far as possible , with the same reference numerals . reference will now be made in detail to embodiments of the present invention . such embodiments are provided by way of explanation of the present invention , which is not intended to be limited thereto . in fact , those of ordinary skill in the art may appreciate upon reading the present specification and viewing the present drawings that various modifications and variations can be made thereto without deviating from the innovative concepts of the invention . referring to fig1 , there is a first embodiment of the present invention . the rehabilitation device 1 has a first vertical support 19 and a second vertical support 18 . the second vertical support 18 is further supported by a rear support 7 . the first vertical support 19 has a pivoting joint 6 . the pivoting joint 6 permits articulation of the first vertical support 19 . this motion can draw the first vertical support 19 either towards or away from the user while positioned on the rehabilitation device 1 . the movement of the first vertical support 19 is controlled by a linear actuator 34 that extends between and connects the first vertical support 19 and second vertical support 18 . by changing the position of the first vertical support 19 , the hip and knee joint angles of the user can be manipulated as well . the rehabilitation device 1 has a motor / resistance unit ( mru ) 35 . this unit 35 can perform a number of functions including providing a powered drive mechanism for rotating the pedals . this is particularly useful when the rehabilitation device 1 is being used by an individual with extremely limited use of their legs . additionally , the motor resistance unit 35 can create an artificial resistance . this further adds to the rehabilitation device 1 as a way to increase muscle tone and strength . additionally , the rehabilitation device 1 shall have a microprocessor / display unit 20 which has been programmed with algorithms that control the rehabilitation process . these are manifested in the analysis , control , and reporting software ( acrs ). this software enables the rehab units to communicate with an offsite central data server . it also provides for communications to originate from the server and be displayed on the microprocessor / display unit 20 . this can , in turn , provide various functionality including downloading patient configuration parameters , and sending patient data to the database for instant analysis at third party locations such a physical therapist / rehabilitation or physician &# 39 ; s office . the central data server provides cloud based storage and access to all data and communicates with other devices and programs with access to the database . in turn , the patients can access the same through a number of different devices . this provides for a secure login / logout for the patients , as well as the ability to monitor their data and progress against benchmarks and others . additionally , functionality is included for the sharing of progress through social media . from the clinician side , the functionality is substantially similar , however , it also provides for the ability to customize the microprocessor / display unit 20 operation for each individual patient through various control parameters . equally as important , the software provides administrative protocols for manipulation of certain data or certain algorithms . the microprocessor / display unit 20 has a touch screen display used for data entry and performance readout . the microprocessor / display unit 20 may be attached in a variety of areas on the rehabilitation device 1 in order to best give the user access to the settings . in some cases , it may not be desirable to have an attached display , in which case the data is simply sent to a remote display by wired or wireless protocols . this would prevent user manipulation and give a greater breadth of control to the rehabilitation technician . if the microprocessor / display unit 20 is wireless it may operate off any number of protocols in the art including but not limited to wi - fi , ant , zigbee , bluetooth ®, and the like . the microprocessor / display unit 20 may have either resistive or capacitive touch capabilities . each has its unique advantages and may be employed to best suit the needs of the receiving entity . resistive touchscreens are comprised of several layers , with the top two layers separated by a minute distance . this technology has a low associated cost and is highly resistant to contaminants and liquids . additionally , the resistive touchscreens still function when a user is wearing a glove or similar skin covering structure . thus , it has found a practical purpose in many hospital settings . capacitive resistance typically employs a glass layer coated with a transparent conductor . these screens see a much higher associated cost and cannot be used if an individual is wearing , for example , latex gloves . in that case , the user would need a particular type of stylus in order to interact with the screen . from the main interface on the microprocessor / display unit 20 , the necessary user profile can be selected . the microprocessor / display unit 20 creates a daily workout program based on a user &# 39 ; s previous data and the rehab protocol in order to best optimize their workout and recovery . here , the microprocessor / display unit 20 would automatically make the settings necessary when a previous user identity is selected . this automatic manipulation of the settings and device parameters continues throughout the workout . fig2 is a side view of a portable embodiment of the present invention . the rehabilitation device 1 in this embodiment is a mini rehab bicycle . the unit comprises primarily a motor resistance unit 35 having a housing with the pedal assembly 24 extending therefrom . the pedal assembly 24 is further described in fig4 . the rehabilitation device 1 performs substantially the same general function and contains the same algorithms as described in fig1 , however , the portable nature of the device 1 allows it to be used in the home or office and taken with the user from place to place . an individual can simply sit in a chair and pedal and the program will run and adjust parameters according to user progress . this means that the device 1 reacts and adjusts to the user &# 39 ; s performance . this provides a distinct advantage by consistently maximizing the patient &# 39 ; s recovery rate . the coupling mechanism 16 is maintained internally . the base of the housing of the motor resistance unit 35 may have a no - slip surface applied to it to prevent slippage while in use , and may have an extension which fits under the chair legs to further hold it in place . this device 1 further provides for bidirectional communication . this enables the device 1 to be monitored in real time by a local or remote health professional ( i . e . physical therapist / rehabilitation technician , physician , etc .). the professional can send messages to the patient of modify the physical parameters based on the data send to the professional . in fig3 , there is an overview for initializing the settings of the rehabilitation device for a specific user in accordance with the present invention . when a user first gets on to the rehabilitation device 1 the microprocessor / display unit 20 will prompt them to identify themselves 300 . ideally , this is done by asking the user to input their name ( first , middle , last , or any combination thereof ) 305 . identification means may also include pin numbers , passwords , social security numbers ( ssn ), birthdates , or biometric readings such as fingerprints , iris scans , or the like . based upon one of the prompts , the microprocessor / display unit 20 will load the last session date or start a new rehabilitation session 310 . if the user is a known user then the microprocessor / display unit 20 will load the user &# 39 ; s data from their previous session 335 . if the individual is a new user , the microprocessor / display unit 20 will prompt the user to input new user parameters 315 . these are parameters by which a profile can be constructed to keep track of and create workouts based on the information supplied by the user . these parameters may include sex , height , weight , age , body fat percentage , cholesterol levels , and the like . the microprocessor / display unit 20 will then be able to set the seat position 320 based on the pertinent data . the microprocessor / display unit 20 will load this new user data 325 and set the pedal diameter to the minimum 330 in order to begin rehabilitation . if the user was previously known then the pedal diameter and seat location will automatically adjust to the proper positions 340 , 345 based on the results of their last session . the pedal assembly 24 , fig4 , has two identical halves connected by the crank axle 32 . each half of the pedal assembly 24 has a pedal 36 , upper crank arm 28 , lower crank arm 26 , a crank axle 32 , and an actuator 34 . the upper crank arm 28 is hingedly connected to the lower crank arm 26 . the pedal 36 is coupled to the upper crank arm 28 on the end opposite the hinged connection . the crank axle 32 connects the two halves of the pedal assembly 24 . the pedal 36 is substantially rectangular in shape to provide a sufficient surface area for the foot to be placed , but may be square , triangular , etc . the pedal 36 can range from about 5 cm ( 2 inches ) by about 10 cm ( 4 inches ) to about 20 cm ( 8 inches ) by about 40 cm ( 16 inches ). preferably , the pedal is about 10 cm ( 4 inches ) by about 15 cm ( 6 inches ). the pedal 36 is preferably plastic , but may be metal , wood , or the like . additionally , the pedal may be smooth or have a ridged pattern for added traction . the pedal 36 is connected to the upper crank arm 28 by a screw . this allows for an unimpeded 360 ° rotation of the pedal 36 . this permits the pedal 36 to change orientation as it passes through the rotation and to move with the flexion of the user &# 39 ; s foot . the upper crank arm 28 is hingedly connected to the lower crank arm 26 by a bolt extending therethrough with a cap on each end preventing slippage of the hinge . unlike the pedal 36 , this hinge does not freely move as it is connected to an actuator 34 . the crank arm may consist of a light weight metal such as aluminum , or may comprise a stronger , heavier metal such as steel to prevent damage to the device . the actuator 34 is preferably a linear actuator with one end coupled to the upper crank arm 28 and the opposite end coupled to the lower crank arm 26 . the actuator 34 can employ varying technology such as electromechanical or hydraulics . here , it is preferable to use an electric actuator . the actuator 34 is coupled to the microprocessor and moves in real time as information is compiled and processed by the microprocessor . depending on the information received by the microprocessor the actuator 34 can extend increasing the circumference of the pedal throw , or it can retract decreasing the circumference of the pedal throw . alternatively , the pedal assembly 24 may have a disk whereby the pedal is attached and rotates . rather than employing an actuator 34 , the mechanism uses gears to adjust the circumferential path of the pedal arm and thereby the pedal itself . when changing the patient &# 39 ; s range of motion by altering the pedal diameter the device 1 must maintain the correct distance from the seat to the low pedal position . fig5 illustrates this process . the pedal diameter is determined by the distance between a crank axle and a pedal of a pedal assembly . the pedal assembly , as previously discussed , comprises a crank axle and an upper and lower crank arm extending from each end of the crank axle wherein the at least two actuators are on each of the crank arms thereby altering the circumferential diameter of the pedal assembly . if the outputs from the rehabilitation device 1 are such that the pedal throw should be increased 100 , then the pedal diameter calculated by the equation 105 : wherein the final pedal diameter ( pedal diameter f ) is equal to the initial pedal diameter ( pedal diameter i ) plus the change in diameter or delta ( δp ). in order to compensate for this change , the seat height must also be adjusted 110 . the seat height adjustment is calculated by equation : wherein the final seat height ( seat height f ) is equal to the initial seat height ( seat height i ) minus delta ( δs ). this enables the rehabilitation device 1 to keep the pedal and seat in proper spatial alignment with one another . this is most important in order to maintain the proper range of motion ( rom ) for the rehabilitation strategy . otherwise , when the pedal circumference shifts , the seat may be too low to allow the affected joint to travel through a fully cyclic motion . in order to decrease pedal diameter 120 , a different approach must be taken . the microprocessor / display unit 20 calculates a decrease in pedal circumference according to the equation 125 : wherein the final pedal diameter ( pedal diameter f ) is equal to the initial pedal diameter ( pedal diameter i ) minus the value of delta divided by two ( δp / 2 ). as with the methodology above , the seat height must also adjusted 135 . the seat height is calculated by the equation : wherein the final seat height ( seat height f ) is equal to the initial seat height ( seat height i ) plus the value of delta divided by two ( δs / 2 ). again , this linked change in state necessary in order to maintain a proper range of motion throughout the adjustment and workout process . the system control processor can change the pedal resistance felt by the user . thus , the resistance can be increased and then automatically reduced if the pedal rotation falls , or decreases , due to the increased resistive load . this protocol varies the load based on the desired goals of strength versus flexibility or in some instances both . fig6 is a perspective view of the seat assembly 12 of the rehabilitation device 1 . the second vertical support 18 has a second telescoping support 23 extending from the top of the support 18 . the telescoping support 23 is connected to an actuator 34 ( not shown ) within the second vertical support 18 . the actuator 34 acts in accordance as previously described above . this , in turn , produces the vertical motion along path c - c ′ moving the seat 12 up and down . this is critical for achieving the proper range of motion in a rehabilitation patient . the seat height and the circumference of the pedal throw directly relate to the extent to which a knee or hip can be flexed or extended . determining these values serves as the starting point and subsequent adjustment points for the physical rehabilitation . in addition to the height adjustment , the seat 12 may also slide forwards and backwards along adjustable rails 27 . the seat 12 should have proper padding 31 and conform to the user . in some instances , the seat 12 may be detachable either by removing the seat 12 along with the telescoping support 23 or by simply removing the seat 12 . in order to adjust the seat 12 , the microprocessor / display unit 20 follows the protocol in fig7 . based on the user &# 39 ; s height and current range of motion of a particular joint or appendage an initial seat height can be selected 200 . for a new user , this means that someone will either manually input a value for leg length or move the seat up / down until the position is correct . the initial process provides for the manual adjustment of the seat height 205 . in order to begin at the proper height , the legs of the user should usually be fully extended ( if possible ) at the bottom of the pedal circumference 210 . for first time users , it is preferable to have the physical therapist / rehabilitation technician ( pt ) aid in helping to set the seat height 215 . from there , calculations in leg length can be made and stored in the user &# 39 ; s data profile 220 . once the manual adjustment is disabled 225 , the user is free to begin exercising and letting the microprocessor / display unit 20 , make the necessary adjustments for the user . fig8 is a perspective view of the handlebar assembly 10 of the rehabilitation device 1 . the handlebar assembly 10 has two main features : a u - shaped bar 39 and a support 36 . the support 36 fits within the top of the first vertical support 19 which is supported by the horizontal support 22 . the support 36 is connected to an actuator 34 within the first vertical support 19 . the actuator 34 is in turn operably connected to the motor / resistance unit 35 . the terminal end of the support 36 has an adjustable coupling 40 . this encircles the support 36 holding it securely in place , while still permitting the u - shaped bar 39 to rotate . the adjustable coupling 40 may be a solid extension of the support 36 . alternatively , there may be a thumb screw or other connection means that allow the adjustable coupling 40 to release the u - shaped bar 39 . this gives the rehabilitation device 1 the option of having interchangeable handlebars 10 . additionally , the u - shaped bar has padding 37 to comfort and protect the user while on the rehabilitation device . the padding 37 can be any material of appropriate strength and durability such as a foam , rubber , silicone , or latex . referring to fig9 , there is a flowchart illustrating a high level view of the recovery process 400 using the above described rehabilitation device 1 . initially , the correct user data needs to be retrieved 402 . this is done as previously described using identifiers such as passwords , names , birthdates , ssn , biometric identifiers , and the like . the user parameters are then set 404 into the rehabilitation device 1 by the microprocessor / display . the target speed is displayed on the screen . the user may then proceed with pedaling at a target pace 406 which may be measured in miles per hour ( mph ), kilometers per hour ( kph ), calories burned per hour , or rotations per minute ( rpm ). the on board microprocessor processes and compiles the data as the user pedals . the data is composed of varying technical aspects regarding the pedaling process such as torque and rotational speed . after the hardware has been configured , the system evaluates the patient &# 39 ; s ability for a short time . this evaluation time 408 is equal to about fifteen ( 15 ) seconds . this gives the rehabilitation device 1 the proper baseline to begin making necessary adjustments in real time . the user sits on the rehabilitation device 1 and begins to pedal . if the pedal rotation during this brief evaluation period is consistent and smooth 412 , then the pedal diameter is increased slightly in accordance with the rehabilitation algorithm . this process of checking for a smooth and consistent rotation 412 and subsequently increasing in pedal diameter 409 , repeats itself as the user &# 39 ; s ability allows . when the patient or user can no longer rotate the pedals in a smooth and consistent manner , the diameter is reduced 414 and then the reduced setting is briefly evaluated to ensure that the patient can properly move the affected appendage for this optimized range of motion . additionally , the derivatives of the rotation are checked by the microprocessor / display unit 20 to ensure correct operation and range of motion for the user . assuming there continues to be a smooth and consistent rotation 418 and no rotation error is recorded 420 , then the rehabilitation portion 426 of the workout can begin . the rehabilitation portion 426 of the workout is generally about five ( 5 ) minutes in length , but can range from about 2 - 10 minutes per rehabilitation session . in some instances , multiple rehabilitation sessions occur one after another until a predetermined time threshold has been reached . the user continues to pedal throughout the predetermined rehabilitation time . if , at the end of the first time cycle , the workout is not complete , the pedal circumference diameter is increased yet again 430 assuming the user &# 39 ; s ability permits such an increase . the user is returned back to step 408 for brief evaluation to ensure the user will not be harmed using the increased pedal circumference . at the end of the predetermined rehabilitation time frame , and the session is completed 428 , the user &# 39 ; s data can be updated and stored 432 in the rehabilitation device 1 . from there , the user , physical therapist / rehabilitation technician , tending nurse , or physician may generate a report to view the progress the user is making 434 . assuming there is an inconsistent value to the measured factors , the rehabilitation device 1 will automatically decrease the circumference of the pedal throw 414 . the user will then enter another evaluation period 416 of about fifteen ( 15 ) seconds . if the issues with the measured values are still not smooth 418 and there is no machine error 420 , then the physical therapist / rehabilitation technician 422 should step in . any further work may result in damage / injury to the user . referring to fig1 , there is a flowchart outlining the evaluation protocol the rehabilitation device 1 follows . to evaluate 500 a user at the present settings , the repetition timer is started 505 . the rehabilitation device 1 will get a first pedal speed 510 and then wait , or delay 515 , for a length of time . a second pedal speed 525 will be processed by the rehabilitation device 1 for comparison purposes . if the pedaling has stopped 530 before this second reading can take place the rehabilitation device 1 will exit 535 the program and alert the rehabilitation personnel of a problem . if the pedaling has continued the microcontroller will check to see if the repetition time has been completed 540 . if not , the microcontroller will analyze the data for a smooth rotation 520 of the pedals . this process repeats until the timer end . when the timer ends , the device 1 will then set smooth rotation on 550 or off 555 depending on the analytical outcome . once completed to satisfaction the user will be returned 560 to the calling program . in fig1 , there is a flowchart illustrating the rehabilitation process for a rehabilitation device 1 . the rehabilitation 600 begins with a repetition time being set to the rehabilitation time 605 of about 2 - 5 minutes . the user then begins to pedal and the rehabilitation device 1 evaluates 610 the user &# 39 ; s performance . if the evaluate module detects no pedal rotation , an error 615 will be generated and the analysis exited . otherwise , the pedal rotation is checked for a level of smoothness as described in fig1 . the purpose being that the smooth pedal rotation signifies that the user can comfortably and efficiently rotate the pedals . if the pedal rotation does not meet the standards for smoothness , then a notification will be sent to the physical therapist / rehabilitation technician ( pt ) 620 . this could be a wireless alert such as a text message or email . upon this notification , the rehabilitation device 1 will pause the rehabilitation process . if the pedal rotation is determined to meet the threshold for smoothness the rehabilitation device 1 will check to see if the rehabilitation time has been completed 635 . if not , the process repeats until the rehabilitation timer ends at which time , control returns to fig9 . in fig9 , a determination is done to see if the session is complete . if so , the system exits . if not , pedal diameter is increases and new settings are evaluated . as the patient approaches full recovery , the system will observe that both legs are causing a similar resistance at the top of the pedal swing . this condition will be reported along with the final angle of flex that was achieved . it can then be determined if this level of flex is acceptable or further therapy is needed . additionally , the pedals 36 may not be the only item automatically adjusting during this process . the seat 12 and handlebars 10 of the rehabilitation device 1 can be adjusted to customize for people of varying shapes and sizes . it may be preferable to include these adjustments into the methodology described above . for example , the seat 12 will raise or lower in conjunction with the adjustment of the pedal throw . the rehabilitation device 1 may take a number of forms known in the art and not explicitly shown here . preferably , the rehabilitation device 1 is an upright bicycle . however , other iterations such as recumbent bicycles , spin bicycles , and mini exercise bicycles may employ some or all of the technology . for example , the control system and sensors can be applied to a “ linear sled ” type device that is typically used for rehabilitation after knee replacement . this device contains one or two sleds that the patient puts their feet in while lying in a prone position . the patient flexes the injured knee back and forth , while the foot rests in the sled . in this application , the control system monitors the extent of the motion and tracks the progress of increasing that extent . while the focus has been placed on rehabilitation for lower body ( hip , knee , etc .) joints , other iterations could permit rehabilitation of upper body joints such as arms and shoulders employing the same technology and methodologies . additionally , the system and sensors may be retrofitted to existing systems to achieve the desired rehabilitation results . as described , initially the data is stored locally and will be transmitted to a central server unit as soon as possible . this server unit would comprise potentially all the data associated with the rehabilitation devices employing the described invention and allow for comparisons and modeling of the data on a large scale . it may also permit for “ competition ” against one another and results of particular workouts are viewed and / or posted . other features that the rehabilitation device 1 may have are straps to help secure the foot into the pedal 36 . the pedals 36 may have a “ clip in ” structure for use with a special shoe adapted to lock into the pedal 36 . this is preferential for users who have little to no use of their legs , as it would help to securely keep the feet firmly on the pedals 36 . there may also be one or more places to hold a water bottle or similar drinking device to supply fluids to the patient before , during , and after the workout . this is not only a necessity but eliminates the need for the patient to stop a workout in order to get a drink of water .
a device for joint rehabilitation after injury or surgery and a method of use are described and taught . the device automatically senses and manipulates performance parameters to optimize the rehabilitation process in response to user performance . in particular , device sets the pedal throw and other variables automatically to be in an optimum range for the patient based on the respective patient data . a motor resistance unit allows for the user to experience variable resistances while using the device . this not only increases the patient &# 39 ; s range of motion but also strengthens and increases muscle tone . in order to use the device , the patient or user simply inputs preliminary parameters and the on - board computer then calculates a rehabilitation plan , and monitors patient performance and adapts to changes . the central data server permit central storage of all data associated with usage of the rehab devices and is fully hipaa compliant .