 Research article
 Open access
 Published:
Using machine learning algorithms to guide rehabilitation planning for home care clients
BMC Medical Informatics and Decision Making volume 7, Article number: 41 (2007)
Abstract
Background
Targeting older clients for rehabilitation is a clinical challenge and a research priority. We investigate the potential of machine learning algorithms – Support Vector Machine (SVM) and KNearest Neighbors (KNN) – to guide rehabilitation planning for home care clients.
Methods
This study is a secondary analysis of data on 24,724 longerterm clients from eight home care programs in Ontario. Data were collected with the RAIHC assessment system, in which the Activities of Daily Living Clinical Assessment Protocol (ADLCAP) is used to identify clients with rehabilitation potential. For study purposes, a client is defined as having rehabilitation potential if there was: i) improvement in ADL functioning, or ii) discharge home. SVM and KNN results are compared with those obtained using the ADLCAP. For comparison, the machine learning algorithms use the same functional and health status indicators as the ADLCAP.
Results
The KNN and SVM algorithms achieved similar substantially improved performance over the ADLCAP, although false positive and false negative rates were still fairly high (FP > .18, FN > .34 versus FP > .29, FN. > .58 for ADLCAP). Results are used to suggest potential revisions to the ADLCAP.
Conclusion
Machine learning algorithms achieved superior predictions than the current protocol. Machine learning results are less readily interpretable, but can also be used to guide development of improved clinical protocols.
Background
Targeting older clients for rehabilitation is a clinical challenge and a research priority [1]. For clients being assessed for home care services, the decision to provide rehabilitation (especially physical or occupational therapy) has major implications for the client's future quality of life and independence, as well as major resource implications. There is considerable evidence of the feasibility and effectiveness of rehabilitation in homebased settings [2–5]; there is also evidence that many home care clients who would benefit from rehabilitation services do not receive them [6].
Resource constraints will inevitably limit the provision of rehabilitation services, but gaps in service also reflect gaps and shortcomings in the management and use of available health information. More appropriate targeting of rehabilitation therapy could be achieved through more informed care planning, but rehabilitation decisions are particularly challenging. For acute care patients, diagnoses are often clearly defined. By contrast, rehabilitation patients have considerable variability even within specific diagnostic categories. Assessment of rehabilitation potential and the potential success of rehabilitation for older patients is not always straightforward, is often complicated by medical complexity and multiple comorbidities [7, 8], and requires management by multiple health professionals in multiple care settings [9]. Our program of research is aimed at understanding whether improved clinical decisionmaking, and ultimately improved client outcomes, could be achieved through more sophisticated use of routinely collected health assessment information.
In this paper, we are continuing to investigate the potential for machine learning algorithms to guide rehabilitation planning for home care clients. Machine learning involves computer programs that use experience gained from exploration of a dataset to improve performance or predictive ability. These techniques are now being used extensively in biomedical applications [10], for example in predicting the role of genes and proteins. There has been less use in support of clinical decisionmaking and prediction, but these applications are increasing [11, 12]. There has been limited investigation of machine learning techniques in predicting rehabilitation outcomes [13, 14]. Although some of these results have been ambiguous [14], continued exploration in rehabilitation seems warranted given the importance and challenges of predicting rehabilitation potential or outcomes [1, 15, 16]. Also, large databases are becoming available in rehabilitation settings, such as those based on the Functional Independence Measure (FIM™, property of Uniform Data System for Medical Rehabilitation, a division of UB Foundation Activities, Inc) or the interRAI assessment systems [17], that could be used for this purpose.
In our previous work on the prediction of rehabilitation potential, we applied a simple machinelearning algorithm known as the Knearest neighbors (KNN) algorithm, which, we argued, resembles clinical logic in that predictions are based on outcomes experienced for similar patients [18]. We found that KNN made significantly better predictions than the clinical assessment protocol – the "ADLCAP" – currently in use within the health assessment information system used for home care clients in Ontario, Canada and other jurisdictions [19]. In this article, we report two followup studies (Study 1 and Study 2). The results and insights gained from these studies are then used to inform potential revisions to the ADLCAP, and an initial assessment of the new method is given.
Methods
For both studies reported below, ethics approval was obtained from the Office of Research Ethics at the University of Waterloo.
Study 1 Methods. Making predictions with support vector machines
Background
In our earlier paper [18], we speculated that the support vector machine (SVM, [20]) could potentially improve upon the Knearest neighbors (KNN) algorithm in two ways. First, being a stateoftheart machinelearning algorithm and a much more flexible kernel method than KNN, SVM may give more accurate predictions. Second, the decision rule from SVM will only depend on a subset of observations – called support vectors; these support vectors can be regarded as prototypes and, if the total number of support vectors turns out to be small, SVM will produce a much more parsimonious and interpretable model.
Data
We use the same data as used in our earlier report [18]: RAIHC data from eight Ontario Community Care Access Centres (CCACs, the organizations that coordinate the provision of home care and longterm care services in the province), consisting of 24,724 clients [mean age: 76.3 (sd = 13.9); 68.9% female; 15.7% with Alzheimer disease or other dementia]. The true rehabilitation potential (y) of these clients can be reliably assessed from linked health service utilization data. For study purposes, a client is defined as having rehabilitation potential if there was: i) improvement in ADL functioning, or ii) discharge home. Improvement in ADL functioning was defined as any improvement in the interRAI ADL Long Form scale derived from the RAIHC [21], over a followup period of approximately one year. The rationale for this definition is that for frail older clients for whom the likely course is functional decline, any improvement in ADL functioning is important. Also, persons discharged from home care who remain in their own homes (i.e., are not admitted to a longterm care home) can also be considered to have had a successful outcome. The interRAI/Minimum Data Set instruments are a comprehensive assessment and problem identification system developed by an international consortium of researchers (interRAI). The RAIHC is mandated for use in all of Ontario's CCACs for all longerterm clients (approximately 50% of the overall CCAC case load). Repeat assessments are completed at intervals of approximately 180 days. Assessment items include: personal items, referral information, diagnoses, cognition, communication and sensory functioning, mood and behavior, physical functioning, continence, nutrition status, oral health, skin condition, environmental issues, informal support services and service utilization, and other information. Clinical Assessment Protocols (CAPs) are triggered when specified combinations of assessment items indicate that problems or risks are present that warrant intervention or further investigation [19]. The CAP most relevant to rehabilitation planning is the Activities of Daily Living Clinical Assessment Protocol, or ADLCAP.
In our earlier work we compared results using the ADLCAP with results obtained using the KNN machine learning algorithm [18]. In order to make conservative and fair comparisons with the ADLCAP, we used only covariates that are in the ADLCAP – 19 altogether. Moreover, we also interpreted these covariates in the same way as the ADLCAP. For example, the ADLCAP treats the predictor h2a (mobility in bed) in the following way:
if h2a = 2, 3, 4, 5, 6, or 8 (indicating levels of dependence);
then consider as dependent;
else (meaning h2a = 0 or 1, indicating independence) consider as independent.
In other words, suppose that client A has h2a = 2 and client B has h2a = 6. The ADLCAP does not distinguish these two clients with regard to h2a. Therefore, we can recode h2a as a binary variable as follows: recode 2, 3, 4, 5, 6, and 8 as one and recode all other values (0 and 1) as zero. Table 1 summarizes how the covariates are recoded according to ADLCAP. Also included in Table 1 are the percent of clients in the dataset for whom each covariate is present (% = 1), the chisquare statistic for testing the correlation between each covariate and the response, and the Pearson correlation (corr.) between each covariate and the response. (Since the response is binary and covariates here are also recoded as binary, the Pearson correlation is not exactly the right correlation coefficient to use. The chisquare statistic is more commonly used. However, the usual Pearson correlation coefficients are still included here for the following reason. Since we have a sample size of about 25,000, the chisquare statistics are all very large, reflecting the wellknown caveat of classical hypothesis testing that one can reject any null hypothesis with a large enough sample size. The absolute magnitude of these chisquare statistics should not be interpreted in the usual way, but their relative magnitude is still meaningful.)
The Support Vector Machine
The SVM [20] is a prediction algorithm that has received a tremendous amount of attention in the machine learning community during the last decade. Suppose x _{ new }is a vector containing all the covariates for a new observation. To predict its outcome, SVM uses quadratic programming to construct a model of the following form:
where w _{0} and w _{ i }are model coefficients; and K(u;v) is a kernel function. Once the parameters w _{0} and w _{ i }are estimated, the final model depends only on a subset of the training data, denoted above by "SV" – they are called support vectors and are automatically determined by the SVM algorithm. To fit the SVM, we use a library called "e1071" in R [22].
Performance Evaluation
To fit an SVM model, we choose the default kernel function, the radial basis kernel. Among the four options provided by the "e1071" library – linear, polynomial, radial basis, and sigmoid – the radial basis kernel is also the most compatible with a distancebased method such as the KNN. To use SVM with the radial basis kernel, there are two tuning parameters that we must specify a priori: one that controls the width of the kernel function, which we denote here by γ; and another that essentially controls how many support vectors the algorithm will ultimately select, which we denote here by C. The performance of SVM is sensitive to these tuning parameters and the optimal value of these parameters are problemspecific.
To determine the best values of these parameters for our problem and evaluate the final predictive power of SVMs, we use the same analytic framework as in our earlier study [18]. In particular, we make predictions for the eight CCAC datasets one by one. For example, when making predictions for region 1, we randomly sample 2500 observations from regions 2–8 and use them as the training set for building the SVM. Tuning parameters are selected by performing 5fold crossvalidation on the training set alone using the overall error rate as the guiding criterion. Data from region 1 are not used to build the SVM or select the tuning parameters. This procedure guarantees that our SVMs do not use any information from the data they are about to predict, so their predictive performances can be fairly evaluated.
Since we construct and use different training sets to make predictions for different regions, we have a total of eight different training sets. After performing crossvalidation on each of them, eight slightly different sets of optimal tuning parameters are obtained. They turn out to be quite close to each other. Generally, the optimal parameters are around γ = 0.06 and C = 0.24.
Prediction accuracy is then evaluated using exactly the same four criteria as in [18], namely, the false positive (false+) and false negative (false) rates, and the positive and negative diagnostic likelihood ratio (DLR+ and DLR).
Study 2 Methods. Relaxation of covariates
Background
We have pointed out that the ADLCAP seemed to interpret the covariates in a rather restrictive manner [18]. For example, for variables h2a – h2j, the ADLCAP did not differentiate among the values 2, 3, 4, 5, 6 and 8. This might lead to a loss of information. We speculated that one could possibly improve the prediction accuracy of various machinelearning algorithms if no such arbitrary restrictions were imposed [18].
Data
We use the original RAIHC datasets without recoding the variables according to Table 1, except that, for variables h2a – h2j, we recode the value 8 ("activity did not occur") into a 6 (total dependence) following conventional interRAI practice of combining "8s" with the most severe impairment level [23]. To distinguish the final datasets used in this study and the previous one, we shall refer to the ones here as the "relaxed datasets," because we have removed the restrictions imposed by the ADLCAP.
Data Analysis
We apply both the KNN and the SVM algorithms to the relaxed datasets and do so in exactly the same way as before, except the optimal tuning parameters – that is, the number K in KNN, and the numbers γ and C in SVM – have to be recalibrated. Again, we do this with crossvalidation. The parameters chosen are: K = 20, C = 1.25, and γ = 0.01.
Results
Study 1 Results. Making predictions with support vector machines
Contrary to our speculations [18], we find that, for this particular problem, SVM does not offer a statistically significant improvement over KNN in terms of prediction accuracy (Table 2). In addition, about 75% of the observations are selected by SVM as support vectors. Hence, there is hardly any gain in terms of parsimony or interpretability.
However, this does not mean that SVM is completely useless for our problem. In SVM, observations chosen as support vectors are either very close to or on the wrong side of the decision boundary. Nonsupport vectors, on the other hand, are on the correct side of the boundary and at least a certain distance away from it; they are the easytoclassify observations in the dataset [20]. In our context, these are clients that, according to SVM, either clearly have or clearly do not have any rehabilitation potential. A careful examination of these two groups of clients, therefore, can yield additional insights.
We build an SVM with a random sample of 10,000 observations from all eight CCAC datasets and examine the resulting two groups of support vectors. In Table 3, each row shows the fraction of observations in each of these two group whose corresponding covariate is equal to 1 – recall from Table 1 that all covariates had been recoded in our study to be binary. It is evident from Table 3, that these two groups of clients are most different in terms of h2j, h7a, and h7c, which suggests that they are the most important variables for predicting rehabilitation potential.
We then perform a slightly different analysis to verify this result. Recall that, along our earlier analyses, we have created eight different training datasets, each consisting of 2500 observations. On each of these eight datasets, we perform stepwise variable selection on a standard logistic regression model using the Akaike Information Criterion (AIC) as the selection criterion. This is done with the functions "glm" and "stepAIC" in R [22]. We thus obtain eight slightly different subsets of selected variables. The only variables that appear in the intersection of all eight subsets are h2j – independent in bathing, h7a – client optimistic about functional improvement, and h7c – client rated as having good prospects of recovery.
Summary
Like KNN, SVM predicts rehabilitation potential better than the ADLCAP, but there is little statistical difference between KNN and SVM. Analysis using the SVM reveals that the most important variables for predicting rehabilitation potential are h2j – independent in bathing, h7a – client optimistic about functional improvement, and h7c – client rated as having good prospect of recovery.
Study 2 Results. Relaxation of Covariates
The Study 2 results are peculiar and at first counterintuitive. When the original scales are used, SVM performs slightly better but KNN performs slightly worse than before (Tables 4 and 5).
In order to understand this peculiar behavior, a series of indepth exploratory analyses are performed on the datasets. The analysis that provides us with an insight into this peculiarity is described below. The insight gained from this analysis not only resolves this mystery for us; it also suggests a new method of defining the ADLCAP.
Take the covariate h2a for example. Using all the data, we can estimate the following ratio:
If {r}_{h2a}^{0} > 1, this means it is more likely for those with rehabilitation potential to score a zero on item h2a. Likewise, if {r}_{h2a}^{0} < 1, it means it is more likely for those without rehabilitation potential to score a zero on this item.
Call \left\{{r}_{h2a}^{0},{r}_{h2a}^{1},\cdots ,{r}_{h2a}^{6}\right\} the (likelihood) ratio profile of h2a. For the sake of argument, suppose the ratio profile of h2a looks like this: {5, 4, 3, 2, 0.5, 0.2, 0.1}. Such a profile would mean that clients with rehabilitation potential are 5 times more likely than those without potential to score a 0 on item h2a, 4 times more likely to score a 1, 3 times more likely to score a 2, and 2 times more likely to score a 3. On the other hand, clients without rehabilitation potential are 10 times more likely to score a 6, 5 times more likely to score a 5 and 2 times more likely to score a 4.
Based on such a profile, how would one use h2a (alone) to predict rehabilitation potential y ? The obvious answer is as follows:
or
Now, define the ratio profile score for h2a as
In the hypothetical illustration above, we would have S _{ h 2a }= 5 ÷ (0.5) = 10. This score can be treated as a rough measure of how accurately one can predict rehabilitation potential using the covariate h2a. The higher the score, the better.
Figure 1 shows the ratio profiles of all 19 covariates together with their corresponding ratio profile scores; the horizontal line in each profile plot is the critical line at which the ratio is equal to 1. We can make the following observations:

1.
The three covariates with the highest ratio profile scores are: h7c – good prospect of recovery (S _{ h 7c }= 4.14), h2j – bathing (S _{ h 2j }= 3.12), and h7a – client optimistic about functional improvement (S _{ h 7a }= 3.01). This is, again, in exact agreement with our results from Study 1.

2.
The covariates h7c and h7a are not affected whether we use the original scale or not (see Figure 1).

3.
Based on the ratio profile of h2j, the best way to use h2j for prediction is as follows: \widehat{y} = 1 if h 2 j = 0, 1; \widehat{y} = 0 if h 2 j = 2, 3, 4, 5, 6. That is, for h2j, the recoded scale is actually the best, better than the original scale which uses more information on levels of impairment. Using the original scale turns out to only add extra noise to our underlying prediction problem.

4.
For covariates in the h2* category (h2a – h2j), h2i has the second highest score (S _{ h 2i }= 1.41). Based on its ratio profile, the best way to use h2i for prediction is as follows: \widehat{y} = 1 if h 2i = 0 ; \widehat{y} = 0 if h 2i = 1, 2, 3, 4, 5, 6. That is, for h2i, the recoded scale is almost the best. It would have been better to separate 0 from 1–6 rather than grouping 0 and 1 together (see Figure 1). In fact, the same can be said about most other covariates in the h2* category – except h2d. For these covariates, using the original scale adds some extra noise, but it also introduces the opportunity for an algorithm to use these covariates in a more optimal way.

5.
The ratio profiles of c3 and p6 indicate that the recoded scales severely mask the information contained in these covariates for predicting rehabilitation potential. There is extra information in the original scale. In both cases, it would have been better to recode "0" into "0" and everything else into "1".
These observations suggest that there is a tradeoff between using the original and the recoded scales. On the one hand, there is some extra information useful for prediction if the original scales are used. On the other hand, the recoded scales are optimal for the most influential covariates and there is a considerable amount of added noise if the original scales are used.
Notice that our definition of the ratio profile score here is not general. Generally speaking, it would have been better to define the ratio profile score (for covariate x) as
However, it can easily be seen from Figure 1 that, for most covariates in our dataset, there is only one ratio above the critical threshold of one. For these covariates, the two versions of the ratio profile scores are identical, that is, {\tilde{s}}_{x} = S _{ x }. The only exceptions are: h2d and h2j. In the case of h2d, Figure 1 shows that the two bars above the critical threshold are of similar heights, i.e., \underset{j}{\mathrm{min}}\left\{{r}_{h2d}^{j}:{r}_{h2d}^{j}\ge 1\right\}\approx \underset{j}{\mathrm{max}}\left\{{r}_{h2d}^{j}:{r}_{h2d}^{j}\ge 1\right\}. So we expect {\tilde{s}}_{h2d} to be very close to S _{ h 2d }as well, and it does not matter very much which one is used in practice. For h2j, however, it is clear from Figure 1 that \underset{j}{\mathrm{min}}\left\{{r}_{h2j}^{j}:{r}_{h2j}^{j}\ge 1\right\} is much smaller than \underset{j}{\mathrm{max}}\left\{{r}_{h2j}^{j}:{r}_{h2j}^{j}\ge 1\right\}, which means h2j would have had a much lower score had we used the more general definition, {\tilde{s}}_{h2j}. But it is also clear from Figure 1 that h2j is actually one of the stronger predictive variables, and using the more general definition would have severely understated its true predictive power. Based on these considerations, we chose to use a definition that is not completely general but more suitable for our specific purposes here.
To explain the peculiar and counterintuitive results in Tables 4 and 5, we conjecture that KNN has suffered more than benefited from this particular tradeoff, whereas SVM, being a more sophisticated and robust algorithm, has benefited more than suffered from it. This conjecture is confirmed by simulation experiments, which we describe in the Appendix.
Summary and new method of defining ADLCAP
The peculiar results from applying KNN and SVM to the "relaxed datasets" have led us to carry out an indepth investigation. As a result, we are able to gain significant new insight into the nature of the problem. We find that the implicit recoding of the covariates by the ADLCAP (Table 1) is, generally speaking, quite reasonable; it is close to being optimal for the most influential covariates. More importantly, however, our investigation suggests a new method of defining the ADLCAP, one that is based on an analysis of the covariates' (likelihood) ratio profiles (Figure 1).
Figure 1 contains rich information. Take the covariate c3 for an example. The bar at c3 = 0 is higher than the critical horizontal line with height 1. This means that, if c3 = 0, it is more likely that the client has rehabilitation potential. On the other hand, the bars at c3 = 1, 2, 3, 4 are all lower than the critical line. This means if c3 = 1, 2, 3, 4, it is more likely that the client does not have rehabilitation potential. Clearly, such information can be used to make predictions. It is also clear from Figure 1 that the information contained in the ratio profile of c3 is not as good as that contained in the ratio profile of, say h7c, because h7c has a much higher ratio profile score (4.14 versus 1.49). Thus, decisions based on different covariates should be weighted accordingly. An alternative ADLCAP based on this argument is outlined in Table 6.
The use of threshold = 15.8 in Table 6 is somewhat arbitrary; it is only selected so that we can make an initial assessment. On the eight CCAC datasets (n = 24,724), the ADLCAP is triggered for 8,913 clients, i.e., about 36.05%. To allow us to make a fair comparison, we reason backwards by asking: what would the threshold have to be so that 36.05% of all the clients would score above this threshold value on the alternative ADLCAP as well? The answer turns out to be 15.8. Table 7 shows that the predictive performance of this alternative ADLCAP is encouraging.
Discussion
Clients requiring rehabilitation are at a critical turning point in terms of their future functioning and quality of life, and their potential to live independently. If information systems are used to ensure appropriate and equitable access to rehabilitation services, there will be major benefits to the health, quality of life and independence of rehabilitation clients. There will also be major health system benefits through decreased costs, more appropriate resource use, and avoided institutional placements.
In the first study reported here, we found that the support vector machine (SVM) predicts rehabilitation potential better than the ADLCAP, but there is little statistical difference between SVM and the Knearest neighbors (KNN) algorithm [18]. In addition, the SVM did not really give a more parsimonious model. Using the SVM, however, we were able to find that the most important predictors for this particular prediction task are dependence in bathing (h2j), the client being optimistic about functional improvement (h7a), and good prospects of recovery from current conditions (h7c). In the second study, we found that the implicit recoding of the covariates by the ADLCAP (Table 1) is generally quite reasonable, especially for the most important predictors. We then described a simple analysis based on the covariates' (likelihood) ratio profiles and showed that such an analysis can lead to a new method of defining the ADLCAP. Our initial assessment showed that the alternative ADLCAP thus defined is capable of producing predictions that are competitive against the machine learning algorithms we have experimented with so far.
We believe our work to date supports continued investigation of the potential for advanced statistical techniques, including machine learning algorithms, to support care planning for rehabilitation. Both of the machine learning techniques we have explored, the KNN and SVM algorithms, have achieved substantially improved performance over a currently used clinical protocol. Reservations about the use of these methods include the interpretability of their results, and the resulting potential for clinical resistance to a "black box" approach. For this reason we have so far chosen methods that could be seen as analogous to clinical reasoning (KNN) or that could identify prototypical cases that could aid interpretation (SVM). In addition to improved statistical prediction, our work points to an additional, and possibly more important, benefit of these methods. Our analyses of the machine learning results have provided insights into the factors that may be most influential in predicting rehabilitation potential – "the contents of the black box" – and also into optimal ways to categorize these variables (i.e., to define clinical cutpoints). We have also shown how these results could be used to redefine the clinical protocol to achieve results similar to that achieved using machine learning algorithms.
Conclusion
Machine learning algorithms achieved superior predictions than the current protocol, although the results are less readily interpretable. We recognize that targeting clients for rehabilitation remains a challenge, and any manageable health information system will be limited in its ability to predict rehabilitation potential. We suggest however that we have illustrated how machine learning techniques can "set the bar" for clinical predictions, and also how machine learning can be used to refine clinical protocols to achieve comparable performance.
Appendix: Simulation experiments
We repeatedly conduct 10 simulation experiments. In each experiment, we first generate a training sample of 1250 observations, each with two predictors (x _{1}, x _{2}) and a binary outcome y. The first 1000 samples belong to one class (y = 0) and the remaining 250 belong to the other (y = 1). The two predictors are generated independently using probability distributions specified in Table 8. Then, an independent test sample of 1250 observations are generated using exactly the same mechanism.
The predictor x _{1} is designed to mimic the behavior of h2j, whereas the predictor x _{2} is designed to mimic the behavior of a typical h2* covariate such as h2i. In particular, for x _{1}, we have {r}_{{x}_{1}}^{0}={r}_{{x}_{1}}^{1} = 4 > 1 and {r}_{{x}_{1}}^{j} < 1 for all j = 2, 3, 4, 5, 6. That is, just like h2j, the recoded scale is optimal for x _{1}. For x _{2}, we have {r}_{{x}_{2}}^{0} = 2 > 1 and {r}_{{x}_{2}}^{j} < 1 for all j = 1, 2, 3, 4, 5, 6. That is, just like most of the h2* covariates, the recoded scale is close to being optimal for x _{2}, but it would have been better to separate 0 from 1–6 rather than grouping 0 and 1 together (Table 8). The correct decision is to predict \widehat{y} = 1 if and only if (x _{1}, x _{2}) = (0, 0) or (1, 0).
The true decision surface is shown in Figure 2. The distributions of (x _{1}, x _{2}) are deliberately made somewhat noisy and irregular for x _{1} ≥ 2 and x _{2} ≥ 1. As a result, we can see that there is a small but noticeable bump in the true decision surface around (x _{1}, x _{2}) = (0, 4) and (1, 4) (Figure 2). This will increase the chance for datadriven algorithms to make mistakes in this region.
We then fit a KNN and an SVM model on the training sample and use them to predict the test sample. We do this once with the predictors (x _{1}, x _{2}) in their original scale and once with the predictors recoded according to Table 1 as if they were h2j and h2i.
The overall error rates of KNN and SVM from the 10 simulations are shown using boxplots in Figure 3. The performances of KNN and SVM are almost identical when applied to the recoded variables, but when applied to the original variables, SVM performs slightly better whereas KNN performs slightly worse.
Figure 4 gives more insight into why this is the case. Decision surfaces estimated by KNN and SVM from the training samples (averaged over 10 simulations) are displayed. Here, we can see that, when the original scales are used, KNN produces a considerably noisier decision surface whereas SVM is capable of producing a much smoother decision surface. It is also clear that, when the original scales are used, KNN is more likely than SVM to be "fooled" by the extra bump near (x _{1}, x _{2}) = (0, 4). In addition, when the original scales are used, SVM can be seen to have a much better chance of making the correct prediction of \widehat{y} = 0 at (x _{1}, x _{2}) = (1, 1).
Finally, it is worth noting that there is considerable noise in our simulated data. Even if we used the true underlying decision surface (Figure 2) to make predictions, we would still make considerable misclassification error. Therefore, a high error rate alone should not be taken as an indication that algorithms such as KNN and SVM are performing poorly. In this case, it is rather an indication that the underlying data are very noisy. In fact, the decision surface estimated by SVM (Figure 4) in this simulation was not far from the true decision surface (Figure 2).
References
Stolee P, Borrie MJ, Cook S, Hollomby J, the participants of the Canadian Consensus Workshop on Geriatric Rehabilitation: A research agenda for geriatric rehabilitation: The Canadian consensus. Geriatr Today: J Can Geriatr Soc. 2004, 7: 3842.
Giusti A, Barone A, Oliveri M, Pizzonia M, Razzano M, Palummari E, Pioli G: An analysis of the feasibility of home rehabilitation among elderly people with proximal femoral fractures. Arch Phys Med Rehabil. 2006, 87: 826831. 10.1016/j.apmr.2006.02.018.
Crotty M, Whitehead C, Miller M, Gray S: Patient and caregiver outcomes 12 months after homebased therapy for hip fracture: A randomized controlled trial. Arch Phys Med Rehabil. 2003, 84: 12371239. 10.1016/S00039993(03)001412.
Kuisma R: A randomized, controlled comparison of home versus institutional rehabilitation of patients with hip fracture. Clin Rehabil. 2002, 16: 553561. 10.1191/0269215502cr525oa.
Gitlin LN, Hauck WW, Winter L, Dennis MP, Schulz R: Effect of an inhome occupational and physical therapy intervention on reducing mortality in functionally vulnerable older people: Preliminary findings. J Am Geriatr Soc. 2006, 54: 950955. 10.1111/j.15325415.2006.00733.x.
Hirdes JP, Fries BE, Morris JN, Ikegami N, Zimmerman D, Dalby DM, Aliaga P, Hammer S, Jones R: Home care quality indicators (HCQIs) based on the MDSHC. Gerontologist. 2004, 44: 665679.
Knoefel F, Helliwell B, Seabrook JA, Borrie MJ, Stolee P, Wells JL: A comparison of functional independence and medical complexity in geriatric and physical medicine rehabilitation inpatients. Geriatr Today: J Can Geriatr Soc. 2003, 6: 9094.
Wells JL, Seabrook JA, Stolee P, Borrie MJ, Knoefel F: State of the art in geriatric rehabilitation, Part I: Review of frailty and comprehensive geriatric assessment. Arch Phys Med Rehabil. 2003, 84: 890897. 10.1016/S00039993(02)049298.
Coleman EA: Falling through the cracks: Challenges and opportunities for improving transitional care for persons with continuous complex care needs. J Am Geriatr Soc. 2003, 51: 549555. 10.1046/j.15325415.2003.51185.x.
Lucas P: Bayesian analysis, pattern analysis, and data mining in health care. Curr Opin Crit Care. 2004, 10: 399403. 10.1097/01.ccx.0000141546.74590.d6.
Harrison RF, Kennedy RL: Artificial neural network models for prediction of acute coronary syndromes using clinical data from the time of presentation. Ann Emerg Med. 2005, 46: 431439. 10.1016/j.annemergmed.2004.09.012.
Pearce CB, Gunn SR, Ahmed A, Johnson CD: Machine learning can improve prediction of severity in acute pancreatitis using admission values of APACHE II score and Creactive protein. Pancreatology. 2006, 6: 123131. 10.1159/000090032.
Tam SF, Cheing GLY, HuiChan SWY: Predicting osteoarthritic knee rehabilitation outcome by using a prediction model using data mining techniques. Int J Rehabil Res. 2004, 27: 6569. 10.1097/0000435620040300000009.
Ottenbacher KJ, Linn RT, Smith PM, Illig SB, Mancuso M, Granger CV: Comparison of logistic regression and neural network analysis applied to predicting living setting after hip fracture. Ann Epidemiol. 2004, 14: 551559. 10.1016/j.annepidem.2003.10.005.
Melin R, FuglMeyer AR: On prediction of vocational rehabilitation outcome at a Swedish employability institute. J Rehabil Med. 2003, 35: 284289. 10.1080/16501970310012437.
Hanks RA, Rapport LJ, Millis SR, Deshpande SA: Measures of executive functioning as predictors of functional ability and social integration in a rehabilitation sample. Arch Phys Med Rehabil. 1999, 80: 10301037. 10.1016/S00039993(99)900564.
Hirdes JP, Fries BE, Morris J, Steel K, Mor V, Frijters DH, LaBine S, Schalm C, Stones MJ, Teare G, Smith T, Marhaba M, Pérez E, Jónsson P: Integrated health information systems based on the RAI/MDS series of instruments. Healthc Manage Forum. 1999, 12: 3040.
Zhu M, Chen W, Hirdes JP, Stolee P: The Knearest neighbors algorithm predicted rehabilitation potential better than current clinical assessment protocol. J Clin Epidemiol. 2007, 60: 10151021. 10.1016/j.jclinepi.2007.06.001.
Morris JN, Fries BE, Steel K, Ikegami N, Bernabei R, Carpenter GI: Comprehensive clinical assessment in community settings: Applicability of the MDSHC. J Am Geriatr Soc. 1997, 45: 10171024.
Cristianini N, ShaweTaylor J: An introduction to Support Vector Machines and Other KernelBased Learning Methods. 2002, New York: Cambridge University Press
Morris JN, Fries BE, Morris SA: Scaling ADLs within the MDS. J Gerontol A Biol Sci Med Sci. 1999, 54 (11): M546M553.
R Development Core Team: R: A language and environment for statistical computing. 2006, Vienna: R Foundation for Statistical Computing, [http://cran.rproject.org/doc/packages/e1071.pdf]
Carpenter GI, Hastie CL, Morris JN, Fries BE, Ankri J: Measuring change in activities of daily living in nursing home residents with moderate to severe cognitive impairment. BMC Geriatr. 2006, 6: 710.1186/1471231867.
Prepublication history
The prepublication history for this paper can be accessed here:http://www.biomedcentral.com/14726947/7/41/prepub
Acknowledgements
This study was supported by a grant from the Canadian Institutes of Health Research Institute of Musculoskeletal Health and Arthritis.
Author information
Authors and Affiliations
Corresponding author
Additional information
Competing interests
The author(s) declare that they have no competing interests.
Authors' contributions
MZ, JPH and PS all participated in the conceptualization and design of the study. MZ led the statistical analysis with assistance from ZZ. All authors participated in interpreting the results of the analyses. The manuscript was drafted by MZ and PS. All authors have read and approved the final manuscript.
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Zhu, M., Zhang, Z., Hirdes, J.P. et al. Using machine learning algorithms to guide rehabilitation planning for home care clients. BMC Med Inform Decis Mak 7, 41 (2007). https://doi.org/10.1186/14726947741
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/14726947741