| Algorithm 1 Pseudoalgorithm of the clustering process |
| Input: JSM measurements of the first five visits Output: Labeled data |
| 1. For each patient p ∈ 𝒫: Calculate the differences between the consecutive JSM measurements: Calculate the sum of the absolute differences: End for each 2. For each clustering method examined Perform clustering evaluation with Davies Boulding index and calculate the optimal number of clusters . Perform clustering with clusters End for each 3. Return labels and evaluate the clustered data |