2) Phase 2—Rehabilitation Strategy Design: After the first
stage, rehabilitation strategy design is needed to find out the best
strategy for patients’ rehabilitation. In this phase, two important
tasks have to be completed. First, more detailed therapeutic
schedules must be worked out with the help of strategy
optimization. In this process, the patients’ conditions are compared
with the numerous recorded cases in the remote database
with corresponding successful rehabilitation strategies in the
disease ontology to find out the most similar cases. Based on
the successful strategies,more detailed rehabilitation strategies are
worked out, such aswhether the patient will take passive or active
walking training, how long each treatment activity will last, and
what kind of electric nerve stimulation would be chosen. These
configuration activities are transformed from function, so that the
desired functions can be implemented and original requirements
are met. The second task, which is of equal significance in the
rehabilitation strategy design stage, is to search corresponding
medical resources among the IoT for a specific patient based on
the rehabilitation strategy in the previous step. From the
rehabilitation strategy, the concrete rehabilitation activities are
determined. In addition to the corresponding medical activity,
there is also information regarding each medical resource in the
medical resources ontology. Depending on the information, the
resource allocation plans can be worked out. The real-time information
is provided by the IoT, so that the plan can be implemented
smoothly. The resource optimization ensures the allocation plans
to be the best or the second-best one according to the requirements
proposed by the patient.However, it is inevitable that there is a gap
between the expected behavior, from which the configuration
plans are built, and the physical behavior, which indicates the real
effect of the allocation scheme. Therefore, optimization is carried
out to narrow down the gap as much as possible by changing the
configuration of medical resources