Abstract
Mixture Markov Model (MMM) is a widely used tool to cluster sequences of events coming from a finite state-space. However, the MMM likelihood being multi-modal, the challenge remains in its maximization. Although Expectation-Maximization (EM) algorithm remains one of the most popular ways to estimate the MMM parameters, however, convergence of EM algorithm is not always guaranteed. Given the computational challenges in maximizing the mixture likelihood on the constrained parameter space, we develop a pattern search-based global optimization technique which can optimize any objective function on a collection of simplexes, which is eventually used to maximize MMM likelihood. This is shown to outperform other related global optimization techniques. In simulation experiments, the proposed method is shown to outperform the expectation-maximization (EM) algorithm in the context of MMM estimation performance. The proposed method is applied to cluster Multiple sclerosis (MS) patients based on their treatment sequences of disease-modifying therapies (DMTs). We also propose a novel method to cluster people with MS based on DMT prescriptions and associated clinical features (covariates) using MMM with covariates. Based on the analysis, we divided MS patients into three clusters. Further cluster-specific summaries of relevant covariates indicate patient differences among the clusters. Supplementary materials for this article are available online.
Keywords: Disease-modifying therapy, Global optimization, Markov chain, Medical sequence data, Mixture model, Multiple sclerosis
1. Introduction
Mixture Markov Model (MMM) is a well-known clustering technique in order to cluster event sequences where each event is coming from a state-space given by a collection of finite events. In literature several statistical applications of MMM and Mixture Hidden Markov Markov Model (MHMM) can be found for clustering event sequence data in various fields (Chi et al. 2007; Melnykov 2016; Gupta, Kumar, and Vassilvitskii 2016; Li et al. 2019). A few applications of MMM can also be found in the field of biostatistics (Haan-Rietdijk et al. 2017; Das et al. 2023). However, one of the challenging aspects of estimating MMM parameters remains in optimizing the mixture likelihood. Due to the multi-modal nature of the mixture likelihood, it is difficult to maximize using derivative-based methods as these tend to converge at local maxima. Although the expectation-maximization (EM) algorithm can be used for parameter estimation for MMM (Helske and Helske 2019), its performance largely relies on the initial point solution (Couvreur 1997). Several articles addressed the convergence issues of using EM algorithm for estimating parameters in mixture model (Archambeau, Lee, and Verleysen 2003) which might pose a challenge in obtaining the maximum likelihood estimate (MLE) in case of MMM as well. Gupta, Kumar, and Vassilvitskii (2016) proposed a faster alternative to the EM algorithm for optimizing the MMM likelihood, but this was later shown to under-perform when compared to the EM algorithm in terms of predictive performance. Therefore, exploring alternative approaches to maximize MMM likelihood would be helpful in improving the estimation performance, resulting in improved inference and related prediction performances as well.
As an alternative to EM algorithm and other convex optimization techniques, evolutionary global optimization techniques (Andrzej and Stanislaw 2006) can be considered as a natural choice in order to address the complex and multi-modal nature of the objective function that is, the MMM likelihood. For optimizing multi-modal functions, several evolutionary global optimization techniques have been proposed in the last few decades, for example, “Genetic Algorithm (GA)” (Fraser 1957; Bethke 1980; Goldberg 1989) and “Simulated Annealing (SA)” (Kirkpatrick, Gelatt, and Vecchi 1983; Granville, Krivanek, and Rasson 1994), which are widely used nowadays. These methods were first developed for unconstrained global optimization, later they were extended for optimizing objective functions with constraints (Smith and Romeijn 1994; Reid 1996). Among other non-deterministic global optimization techniques, Particle Swarm Optimization (PSO) (Kennedy and Eberhart 1995; Eberhart and Kennedy 1995) remains popular for unconstrained global optimization. Torczon (1997) proposed a different evolutionary based global optimization technique called “Generalized Pattern Search” (GPS) which is a more generalized version of the Direct search method earlier proposed by Hooke and Jeeves (1961). In GPS, using an “exploratory moves algorithm” (Torczon 1997), the objective function values at a set of neighboring points around the current solution are evaluated and the point with the best (i.e., the maximum or minimum, based on requirement) objective function value is selected as the updated solution. Later GPS has been extended to solve global optimization problems on several constrained spaces and shown to outperform other related evolutionary based algorithms (Das 2021; Das et al. 2022). In this article, we propose a Pattern search based algorithm to maximize the MMM likelihood, compare the performance of the proposed optimization algorithm to other existing evolutionary global optimization techniques, and eventually demonstrate the estimation performance of the proposed algorithm while maximizing MMM likelihood to outperform the results obtained using EM algorithm based on simulation experiments.
The parameter space of the MMM likelihood for known (finite) number of clusters is composed of a set of transition matrices, initial state probability vectors and the vector of mixture proportions. Now, the parameters of the collection of transition matrices can be also observed as a collection of simplexes since each row of a transition matrix belongs to a simplex space. Also, note that, the mixture proportion vector and each of the initial state probability vectors are simplexes as well. Therefore, the whole parameter space of the MMM likelihood can be expressed as a collection of simplexes. In order to solve the MMM likelihood, we come up with a Pattern search based global optimization technique to solve any objective function whose parameter space is given by a collection of simplexes, called multiple simplex constrained optimization routine (MSiCOR). We also explore some of its theoretical properties.
As an application to MSiCOR in the context of MMM, we cluster Multiple sclerosis (MS) patients based on their disease-modifying treatment (DMT) prescription history. MS is an autoimmune disease of the the central nervous system (CNS) that leads to neurodegeneration in the brain and spinal cord. In MS, the immune system damages the protective sheath (myelin) that covers nerve fibers, causing dysfunctional communication between the CNS and the rest of the body For most people with MS (pwMS), the disease starts with relapses resulting in episodes of new or worsening symptoms due to acute focal inflammation of the CNS. MS is generally diagnosed in early adulthood. Major symptoms of MS include muscle stiffness, paralysis, cognitive impairment, fatigue, depression, visual disturbance, balance and gait difficulty, and problems with bladder, bowel, or sexual function.
Although there is no cure for MS, there are 20 FDA-approved DMTs that reduce inflammatory disease activity and delay disease progression. DMTs can be divided into several mechanistic categories, including interferon-beta, glatiramer acetate, fumarates such as dimethyl fumerate and natalizumab, sphigophine-1-phosphate modulators such as fingolimod, and B-cell depletion agents such as rituximab. Over the course of this chronic disease, pwMS typically receive serial DMTs as monotherapies. Common reasons for switching DMTs include therapeutic failure (e.g., relapse), intolerance or adverse events.
Prior research efforts identified various demographic, clinical, genetic and neuroimaging features associated with disease activity of pwMS (Myhr et al. 2001; Barcellos et al. 2002). Further, several research works focused on the time series analysis of magnetic resonance imaging (MRI) intensity (Meier and Guttman 2003) and volumetric medical image sequences (Thirion and Calmon 1999; Ghribi et al. 2018) of the MS patients. Garcia-Dominguez et al. (2016) showed the dependence of DMT preference on socio-demographic and clinical features. However, to the best of our knowledge, few studies have examined DMT prescription sequence data. These prior studies have focused on either a single best patient-specific DMT option (Grand’Maison et al. 2018), or the criteria for switching or stopping DMTs (Gross and Corboy 2019). Moreover, emphasis has remained mostly on possible treatment options of a patient at a given time point based on response to previous DMTs. To the best of our knowledge, DMT prescription sequence remains an unexplored clinical space in MS.
As an example, it is possible to estimate transition probabilities of moving from one DMT to another DMT based on patient history both at a personal and at a population level under certain statistical model assumptions. We hypothesize that the variation among these transition probabilities across patients is governed by clinical, demographic, and/or other factors. Since the choice of DMT prescription largely depends on patient disease status, the prescribed DMT at any given time can be mapped to a set of clinical conditions and observations. Thus, analysis of DMT transitions and patient clusters based on how transitions across DMT options occur over individual timelines can provide insights on the associations of the clinical features and observations with DMT prescription sequence.
Different statistical models can be used to cluster event sequences in logitudinal data (Scott, Mohan, and Gauthier 2020; Murphy et al. 2021). One potential approach is marked point processes (MPP; Jacobsen 2006). However, there is generally a lag between the actual onset of new neurological symptoms (i.e., relapses indicative of disease activity) and the observed date of DMT prescription. The lag can occur when patients visit their physicians a few days after the onset of symptoms/relapses. Given the typical time that it takes for insurance authorization process, there can be further lags between prescription date and the actual DMT start date. Thus, in the scenario of MS DMTs, incorporating the observed time periods between any two prescription dates into the model might be misleading, making MPPs unsuitable for modeling. However, the order in which a patient has been prescribed DMTs over their observation period is still useful and can be modeled in other ways using state-space models (SSMs). In the literature, hidden Markov chain models (HMMs) have been used to cluster event sequences (Helske and Helske 2019). However in our scenario we do not have any hidden underlying variable like in HMMs.
In this article, we model MS DMT prescription sequences using a mixture of discrete state-space Markov chain models. There are a few notable reasons for clustering pwMS based on DMT sequences. First, over the disease course, pwMS are serially treated with multiple DMTs that might change over time. As such, estimating the transitional probabilities of changing across different pairs of DMTs across MS patients or any sub-populations will have clinical relevance. Second, after the individuals are clustered based on DMT sequences, cluster-specific summary statistics of clinical and demographic features can inform prescription guidance for future patients. Further, patient-specific covariates can also be used for clustering along with DMT sequences. We thus incorporate patient-specific covariates within MMMs to explain cluster memberships as in latent class analysis. Although prior publications reported MMM clustering of sequence data (e.g., Gupta, Kumar, and Vassilvitskii 2016), to the best of our knowledge, none has considered MMM analysis including subject-level covariates. Helske and Helske (2019) describes the outline of the MMM and MHMM clustering, including covariates, but no further extensive simulation studies and case studies were explored using MMM. Bolano (2020) considered a mixture transition distribution-like model to account for covariates in Markovian models with illustration using a 3-state HMM and a covariate with three levels. Of clinical relevance, to the best of our knowledge, no study has clustered MS DMT sequence data using MMMs. In related literature, Altman and Petkau (2005) applied a HMM on MRI lesion count data for MS patients, though this is substantially different from the proposed Markov chain model where the state-space consists of all possible types of DMTs for MS patients and the underlying model is a MMM.
The rest of this article is organized as follows. The mixture Markov chain model is described in Section 2. Section 3 is dedicated to the maximum likelihood estimation process, including its computational aspects. Specifically, MSiCOR is described in Section 3.2. The comparative performance of MSiCOR along with some existing optimization techniques is evaluated in Section 3.3; and some of its theoretical properties are discussed in Section 3.4. A simulation study is conducted in Section 4 to test the performance of MSiCOR, including comparisons with the EM algorithm in Section 4.5, in the context of MMM parameter estimation. Section 5 contains the analysis of MS DMT sequence data along with patient-level clinical data. Finally, Section 6 concludes the article.
2. Mixture Markov Chain Model (MMM)
2.1. MMM Likelihood Without Covariates
Suppose the observed data consist of medication sequences on treatments from patients, , where represents the treatment received by patient at time , and denotes the length (or the total number of time-points) of the medication sequence for the patient. We assume that the medication sequences are generated from time-homogeneous Markov chain processes, or clusters. Let denote Markov transition matrices corresponding to the clusters, and denote the corresponding initial state probability vectors where for . Then
| (1) |
where denotes the cluster membership of the patient, denotes the transition probability from to and denotes the initial state probability of the state in the cluster, for . The likelihood is given by
| (2) |
where denotes the mixture probability of the cluster such that .
2.2. MMM Likelihood with Covariates
Consider along with medication sequence data, we also have covariate data for those patients given by , where is a -dimensional covariate with 1 being its first element. We assume that the medication sequences are generated from latent class models of time-homogeneous Markov chain processes with latent class membership also depending on the covariates but that is independent of . (1) holds true in this case as well, and additionally we assume
| (3) |
where denotes the cluster-specific coefficient vectors of the covariates. First cluster is considered as the baseline cluster, so we take . Here the likelihood is given by
| (4) |
The posterior probability of a patient belonging to cluster can be obtained as
| (5) |
Once we estimate the cluster-specific parameters, we can use (5) to identify where any given patient belongs. Thus, after estimating the clusters, we may summarize the available statistics for the patients to explore the cluster characteristics and differences. In Section 5, after the clusters are estimated based on real data, we summarize the patient relapse rate and rates of a few other relevant medical codes for each cluster. These include the International Classification of Diseases (ICD) code, Current Procedural Terminology (CPT) code, and the Concept Unique Identifiers (CUIs).
3. Computation
3.1. The Estimation Problem
We maximize (4) in order to estimate the parameters for each Markov chain component. To begin with, the -dimensional simplex is defined as
In (4), and each row of belongs to dimensional simplexes, and . Apart from the coefficient vector , the remainder of the parameter space consists of simplexes of size and one simplex of size .
In order to maximize (4), one may use the EM algorithm (Helske and Helske 2019), however, EM algorithm tends to get stuck at poor local solutions due to the possible multi-modal nature of the mixture likelihood. Moreover, the estimation performance of EM also depends on the initial starting point, as discussed in Section 1. An alternative is to apply a direct numerical maximization procedure on the objective function. Widely used algorithms for constrained optimization include interior point (IP) methods (Potra and Wright 2000), sequential quadratic programming (SQP; Wright 2005), and the Broyden-Fletcher-Goldfarb-Shanno (BFGS) algorithm. However, these algorithms typically require good initial starting points in order to reduce the risk of being trapped at poor local maxima. In addition, popular global optimization techniques include the genetic algorithm (GA; Fraser 1957) and simulated annealing (SA; Kirkpatrick, Gelatt, and Vecchi 1983). However, a major disadvantage of these algorithms is that they can be computationally slow, and thus there remains a tradeoff between estimation accuracy and computation time.
Among other global optimization methods, a generalized pattern search algorithm was proposed by Torczon (1997), and variations have been proposed for various constrained parameter spaces (Lewis and Torczon 1999, 2000). Variants of PS have been shown to outperform existing GA or SA algorithms (see, e.g., Das 2021). In order to maximize the likelihood, we first develop a Pattern search (Torczon 1997) based algorithm to maximize any objective function whose parameter space is given by a collection of simplexes, called multiple simplex constrained optimization routine (MSiCOR). Then, we further modify it to perform updating steps of the unconstrained coefficient vector , with an end goal to maximize (4) overall. Thus, we consider a variation of PS that can be used to optimize objective functions over parameter spaces that are a collection of simplexes and of unconstrained parameter spaces, as is the case for the MMM likelihood with covariates based on MS DMT sequences and patients’ clinical data.
3.2. Multiple Simplex Constrained Optimization Routine (MSiCOR)
Consider a non-convex objective function which we wish to minimize. In pattern search (PS), within an iteration while optimizing over a -dimensional space, candidate points in the neighborhood of the current solution are explored. These are obtained by changing one coordinate at a time, both in positive or negative direction, keeping other coordinates unchanged. For example, in case we want to optimize a function over an unconstrained space , given the step-size and current solution , the objective function is evaluated at new candidate points, given by and where and . At each iteration, the best solution out of these points is selected based on the objective function values at those points. In PS, the step-size is chosen adaptively. Unlike the case of unconstrained pattern search, in our problem, the parameter space is composed of multiple simplexes, and the general PS needs to be modified for our scenario.
MSiCOR consists of several runs. Iterations are performed within each run until a convergence criteria is met, which is detailed in the sequel. Each run starts from the solution returned by the previous run and attempts to find a better solution, with the initial solution for the first run being user-provided. The algorithm terminates and returns the final solution when the solutions obtained by two consecutive runs are close. Having multiple runs aids in jumping out of local minima.
3.2.1. Tuning Parameters
Each run depends on the following tuning parameters: initial global step-size , step decay rate , step-size threshold , and sparsity threshold . The values of these tuning parameters are set by the user and are kept unchanged across runs. We consider two additional tuning parameters , to control the convergence criteria. Finally, the maximum number of iterations within a run and the maximum number of runs can be fixed as and , respectively.
3.2.2. Global and Local Step-Sizes
The parameter space consists of multiple unit-simplex blocks. Suppose there are unit-simplex blocks, and that the simplex block is -dimensional and denoted by for . The total number of parameters is . Within each run, we consider a global step-size and local step-sizes which are chosen adaptively depending on the tuning parameter values as well as the improvement in the values of objective function. Inside a run, in the first iteration the value of the global step-size is set to be , where denotes the value of global step-size in the iteration in a run. The value of remains the same throughout an iteration. At the end of each iteration, its value either remains same or gets divided by based on a criteria described later in Section 3.2.6. At the beginning of an iteration, the values of the local step-sizes and are set to be the value of the global step-size of that iteration.
3.2.3. Exploratory Movements
Suppose the current value of the parameters at the beginning of the iteration is , where for . During the iteration, the objective function is evaluated at feasible points in the neighborhood of . These feasible points are obtained by taking steps around modulated by the local step-sizes , for , and . These can be divided into “positive” movements and “negative” movements for and . We call a coordinate of a unit-simplex box “significant” if its value is greater than . Suppose that there are significant positions in the simplex block excluding the position . The movement consists of updating to and subtracting from the significant positions, thus keeping the sum of the values of the simplex block one. We then check whether the updated is in the unit-simplex. If so, we set equal to the updated , and if not (since it is possible if either or at least one of the updated values at the significant positions is negative), we update the local step-size by setting and repeat the same step until the updated is in unit-simplex. However, we do not allow to be smaller than . In case becomes smaller than (by dividing it multiple times by ), we set . The movement is performed in a very similar manner by subtracting from and adding to the other significant positions, and we refrain from detailing it here.
3.2.4. Sparsity Control
We incorporate a sparsity control step in order to encourage possibly sparse solutions. For each of the obtained modified simplex blocks and for , we set the values of the “insignificant” coordinates (that is, coordinates less than ) to zero. This is adjusted for in the “significant” positions by incrementing each of them by the same amount in order to keep the sum of all the coordinates to be one. After the sparsity control step, if the modified (or ) remains in unit-simplex, we denote it by (or ). If not, we set (or ).
Remark 1. should be taken relatively large in case of prior knowledge that the final solution is sparse. If not, it can be chosen relatively small or zero.
3.2.5. Selecting the Best Candidate Solution
Corresponding to the modified simplex block , the candidate solution is given by . Similarly, corresponding to the modified simplex block , the candidate solution is given by . Note that and belong to the unit-simplex. Thus we obtain candidate solution points and for and . The objective function is evaluated at these candidate solutions and the best solution point (i.e., the solution point where the value of the objective function is the lowest) out of the points including current solution is set as the updated solution .
3.2.6. Loop Termination Criteria
As mentioned in Section 3.2.2, at the end of each iteration, the value of either remains the same or gets divided by . If at the end of the iteration, we set , and leave it unchanged otherwise. Moreover, we set the minimum allowable value of to be , and terminate a run if becomes smaller than . For example, consider a situation where at the start of the iteration within the run. However, at the end of iteration, , and so we set , but it happens to be that . We then terminate the run at the iteration and return the solution obtained at the end of iteration as the solution of the run, which then serves as the starting point for the run. Recall that we set at the beginning of each run. Suppose denotes the solution returned by the run. The algorithm terminates when and returns as the final solution. In Figure 1 we provide a flowchart of the runs executed within MSiCOR. Pseudo-code for MSiCOR is provided in Algorithm 1.
Figure 1.

Flowchart of the MSiCOR: (same as ) denotes the global step-size, phi denotes the step-size threshold, denotes the solution returned at the end of run, tol_fun_2 (same as ) is a cutoff value.
3.3. Comparative Performance Using Benchmark Functions
In order to evaluate the comparative performance of MSiCOR, we consider the minimization problem of four benchmark functions (Jamil and Yang 2013) namely Rastrigin function, Ackley’s function, sphere function and Griewank function whose parameter spaces are modified to be a collection of simplexes (see Section C of the supplementary material for function expressions). The benchmark functions are quite challenging to minimize because of their typical complex structure along with presence of multiple minimums (generally) which pose challenges in finding the global minimum. It is impossible to design an optimization algorithm which can always find the global minimum for any black-box function. Although some global optimization algorithms are backed up with theoretical evidence on global convergence (e.g., Schmitt 2001 on genetic algorithm), however, those convergence properties are derived based on a lot of assumptions regarding the properties of the objective function. First those properties might not hold true in practice. Second there is no way to verify if those properties hold true for a black-box function since the function is already “black-box” by nature. Therefore, to comprehend the performance of any heuristic, global or black-box optimization technique, a common practice is to conduct experiments based on minimizing benchmark functions; and eventually based on average computation time and quality of the obtained solutions, one may get an idea about the relative performance of an algorithm. In this context, along with MSiCOR we also consider Genetic Algorithm (GA), Sequential Quadratic Programming (SQP) and Interior Point (IP) optimization techniques to minimize the aforementioned benchmark functions (see Section C of the supplementary material for details). IP and SQP algorithms search for local minimum while optimizing any function and in general they are less time consuming. On the other hand GA tries to find global minimum being more time consuming. These above-mentioned well-known algorithms are available in Matlab via the Optimization Toolbox functions fmincon (for IP and SQP algorithm) and ga (for GA). While using IP and SQP algorithms, the upper bound for maximum number of iterations and function evaluations have been set to be infinity each. For GA, the default options of “ga” function in Matlab has been considered. MSiCOR is implemented in Matlab. The comparative study has been performed for the cases n = 5, d = 5 and n = 5, d = 10 for all the above-mentioned algorithms, where is the number of simplexes and is the dimension of each simplex blocks. All the computations have been performed in a computer with 64-Bit Windows 8.1, Intel i7 3.6GHz processor, 32GB RAM. For each case, all the algorithms have been initialized from 100 randomly generated starting points. The true minimum of all considered modified benchmark functions is 0. The average computation time (in seconds, also standard deviation in parenthesis), obtained minimum value of the objective functions and standard deviations of obtained objective function values for each cases have been noted down in Table 1. It is observed that MSiCOR provides better solution for considered benchmark functions compared to other methods, except for modified sphere function. The sphere function being convex, it is expected for IP and SQP to perform well while optimizing it. But MSiCOR outperforms GA for all considered benchmark functions. Although MSiCOR took more time on average to converge compared to IP and SQP, it took much less time compared to GA. It is also noted that the standard deviation of the objective function values at the obtained solutions is the least for MSiCOR, which implies that MSiCOR algorithm is more robust and less dependent on starting points compared to other algorithms. To check the performance of the proposed algorithm in higher dimensional problems, additional simulation studies have been performed. In Table 2 we explore the performance of MSiCOR for higher dimensional simplex blocks (n = 20, 50, d = 10, 20).
Table 1.
Comparative study of MSiCOR, IP, SQP, and GA for optimizing modified Rastrigin, Ackley, Sphere, and Griewank function starting from 100 randomly generated initial points.
| Functions | Algorithms | n = 5, d = 5 | n = 5, d = 10 | ||||
|---|---|---|---|---|---|---|---|
| min. value | sd of solutions | mean time (sd) | min. value | sd of solutions | mean time (sd) | ||
| Modified Rastrigin | MSiCOR | 1.39e + 01 | 8.20 | 6.83 (2.17) | 2.30e + 01 | 19.59 | 9.12 (3.26) |
| IP | 4.01e + 02 | 276.27 | 0.12 (0.04) | 9.14e + 02 | 666.64 | 4.35 (17.09) | |
| SQP | 1.62e + 02 | 150.51 | 0.05 (0.01) | 8.78e + 02 | 244.09 | 0.21 (0.02) | |
| GA | 1.51e + 01 | 56.72 | 20.26 (2.26) | 2.32e + 02 | 1157.85 | 22.08 (4.40) | |
| Modified Ackley’s | MSiCOR | 3.48e - 02 | 1.06 | 6.50 (2.53) | 6.51e - 02 | 0.23 | 9.81 (3.62) |
| IP | 4.86e + 01 | 6.87 | 0.13 (0.09) | 6.86e + 01 | 4.50 | 0.36 (0.07) | |
| SQP | 7.75e + 00 | 14.62 | 0.06 (0.01) | 2.17e + 01 | 14.77 | 0.18 (0.04) | |
| GA | 6.63e + 00 | 11.94 | 19.93 (2.60) | 1.60e + 01 | 7.32 | 24.33 (3.26) | |
| Modified Sphere | MSiCOR | 7.42e - 05 | <1e-06 | 5.86 (0.59) | 5.13e - 04 | 5.7e - 06 | 9.92 (1.37) |
| IP | 1.63e −15 | <1e-06 | 0.07 (0.03) | 8.90e - 16 | < 1e - 06 | 0.12 (0.04) | |
| SQP | 5.60e - 12 | < 1e - 06 | 0.04 (0.00) | 2.72e - 11 | < 1e - 06 | 0.17 (0.02) | |
| GA | 5.80e - 01 | 45.25 | 20.25 (1.89) | 1.34e + 02 | 633.55 | 22.76 (5.43) | |
| Modified Griewank | MSiCOR | 4.94e - 01 | 0.40 | 4.29 (1.42) | 1.08e + 00 | 0.55 | 7.75 (1.46) |
| IP | 1.07e + 01 | 28.54 | 0.17 (0.05) | 2.19e - 01 | 10.74 | 0.31 (0.07) | |
| SQP | 1.44e + 01 | 13.20 | 0.07 (0.01) | 6.97e - 01 | 0.99 | 0.28 (0.03) | |
| GA | 1.04e + 01 | 3.57 | 18.53 (1.44) | 2.73e + 02 | 12.39 | 26.67 (3.16) | |
NOTE: Objective function values at the best (or minimum) solution out of 100 obtained solutions using the aforementioned algorithms are noted down for each case (under “min. value” column); along with standard deviation (SD) of objective function values at the solutions (under “sd of solutions” column). Also mean and s.d. (within parenthesis) of computation times (in seconds) are noted for each case (under “mean time (sd)” column).
Table 2.
Performance of MSiCOR in higher dimensional modified Rastrigin, Ackley, Sphere, and Griewank function starting from 100 randomly generated initial points.
| Functions | Measures | n = 20, d = 10 | n = 20, d = 20 | n = 50, d = 10 | n = 50, d = 20 |
|---|---|---|---|---|---|
| Modified Rastrigin | min. value | 1.03e - 02 | 2.04e - 02 | 2.58e - 02 | 5.07e - 02 |
| sd of solutions | 0.41 | 0.32 | 0.51 | 0.39 | |
| mean time (SD) | 53.28 (10.05) | 80.27 (25.21) | 438.23 (78.37) | 689.45 (129.72) | |
| Modified Ackley’s | min. value | 4.01e - 02 | 4.01e - 02 | 1.00e - 01 | 1.00e - 01 |
| sd of solutions | 0.92 | 0.56 | 0.96 | 1.02 | |
| mean time (SD) | 110.94 (11.29) | 150.83 (14.85) | 611.41 (49.88) | 1348.45 (131.55) | |
| Modified Sphere | min. value | 5.24e - 05 | 1.02e - 04 | 1.30e - 04 | 2.59e - 04 |
| sd of solutions | <0.01 | <0.01 | <0.01 | <0.01 | |
| mean time (SD) | 41.99 (2.04) | 87.83 (5.72) | 308.74 (10.65) | 577.34 (17.90) | |
| Modified Griewank | min. value | 1.04e - 01 | 1.27e - 01 | 9.25e - 02 | 2.43e - 01 |
| sd of solutions | 0.58 | 0.28 | 1.15 | 0.79 | |
| mean time (SD) | 58.48 (2.98) | 201.70 (10.59) | 741.82 (20.01) | 3291.46 (210.35) |
NOTE: Objective function values at the best (or minimum) solution out of 100 obtained solutions using MSiCOR are noted down for each case (“min. value” row); along with standard deviation (SD) of objective function values at the solutions (“sd of solutions” row). Also mean and SD (within parenthesis) of computation times (in seconds) are noted for each case (“mean time (SD)” row).
| Algorithm 1 MSiCOR | |
|---|---|
|
|
3.4. Theoretical Properties
The greatest challenge of solving a non-convex optimization problem is that in general algorithms cannot be designed to guarantee reaching the global optima. However, it is a desirable property of any algorithm that it should reach a global minimum when the function is convex. In this section, via Theorem 1, it is shown that taking the values of the parameters , and significantly small, the stopping criteria of the proposed algorithm ensures that the solution obtained is a global minimum in case the objective function is convex. The detailed proof of Theorem 1 is provided in Section B of the Supplementary material.
Theorem 1. Suppose and is convex, continuous and differentiable on . Suppose and for , and each of its coordinates are nonzero. Consider a sequence for , , for all . Define and for and . If for all , and (whenever ) for and , is a point of global minimum of .
It should be noted that taking step-size threshold small enough, the allowable values of local step-sizes and can be taken as close to zero as required. Also note that in Theorem 1, the role of is analogous to that of and in Section 3.2. In other words, in the proposed algorithm if we take and , the iterations within a run stops when for very small value of and for and , corresponding movements in the neighborhood do not yield better solution than the current solution. Hence, it that scenario, the obtained solution by the proposed algorithm is a global minimum if the objective function follows the regularity conditions considered in Theorem 1. Note that, for a convex function satisfying the regularity conditions, the convergence criteria ensures that at the end of any run the solution obtained is a global minimum. Hence, in this case, evaluation of only one run will be enough to find the global minimum.
4. Simulation Study
4.1. Setup
We consider patients belonging to clusters. The number of states is chosen to be n = 10. For each cluster, we simulate rows of each 10 × 10 transition matrix from an uniform Dirichlet distribution. Initial state distribution vectors corresponding to clusters are also generated from an uniform Dirichlet distribution. We choose covariates (including an intercept term), which are randomly generated from a distribution. For each patient, we generate the length of their observed Markov chain (i.e., for the patient) from a discrete uniform distribution on . The length of the chain of the same subject may vary across different simulations. To generate the observations, we first compute the probabilities of each patient belonging to the different clusters using (4). Then, using multinomial draws corresponding to prior probabilities, cluster memberships of each patient is evaluated. For each patient, based on corresponding cluster membership, initial state is generated using multinomial draws from initial state distribution vector. The following states of the Markov chain are generated using multinomial draws from corresponding cluster-specific transition matrix.
4.2. Parameter Estimation
In order to estimate the parameters, we first look for a warm starting point for cluster-specific initial state distribution vectors and transition matrices. We first maximize given by (4) taking , (i.e., equal weight for each cluster) using MSiCOR and obtain initial estimates for and . Then for given initial values of and , we maximize given by (4) and thus we obtain an initial estimate for . For maximizing the likelihood as a function of for given (, ), we use patternsearch function in MATLAB which performs a global maximization of the likelihood as a function of . Once we obtain the initial estimates for (, , ), we then maximize the likelihood updating (, , ) simultaneously within each iteration of the proposed algorithm. Note that the parameters , are a collection of simplexes and hence can be directly estimated using MSiCOR, however, being unconstrained, we adopt another optimization technique for updating at each iteration within MSiCOR. Das (2023) proposed global optimization technique Recursive Modified Pattern Search (RMPS) for optimizing hyper-rectangular parameter space. RMPS can be easily modified for optimizing unconstrained parameter space (see Algorithm 1 in the supplementary file). Using MSiCOR and modified RMPS for unconstrained optimization, at each iteration, we update (, , ) simultaneously This joint algorithm is provided in Algorithm 2. Here in the algorithm, (, ) being collection of simplexes, we denote it by and unconstrained parameter is denoted by .
| Algorithm 2 Algorithm for jointly updating multiple simplexes (using MSiCOR) and unconstrained parameter vector (using RMPS). | |
|---|---|
|
|
4.3. Mapping True Clusters to Estimated Clusters
One of the main concerns regarding parameter estimation in mixture models or mixture of experts (MoE) (Masoudnia and Ebrahimpour 2014) is to ensure identifiability. MSiCOR (for MMM without covariates) and MSiCOR-RMPS hybrid algorithm (for MMM with covariates) are both designed to find the point of maxima of the mixture likelihood; subsequently we obtain the estimated parameter values corresponding to each cluster. In case we perform MMM clustering to any new dataset, we can divide the sample population in desired number of clusters and identifiability might not be a concern in absence of reference clusters. However, to assess the estimation performance based on simulation study, it is crucial to map the estimated clusters to the true reference clusters. For any given cluster, let us denote the initial state distribution vector and the transition matrices by and , respectively. From and , we construct the appended matrix . Given two appended matrices and , we define the total variation distance as
Suppose we denote the true appended matrices (constructed using the initial state distribution vector and the transition matrices) by , and the estimated appended matrices by . Then we find the permutation of for which is minimized. Thus corresponding permutation helps us identifying the mapping across the true clusters to the estimated clusters.
4.4. Results
After we obtain the estimates of (, , ), using (5), we find the membership probabilities of each subject to three estimated clusters. We consider each subject to belong to the cluster with corresponding highest membership probabilities. To compare the true and the estimated cluster membership of the patients, first we map three true clusters to three estimated clusters. Then we calculate the true positive rate (TPR) of membership of the subjects. In order to calculate the standard error of the parameter estimates, we perform 20 simulation iterations. The true and estimated parameter values are provided in Table 3. It is noted that the true and the estimated cluster covariate coefficients are close.
Table 3.
True and estimated coefficients of the covariates in the simulation study.
| Clusters | Intercept | Var 1 | Var 2 | Var 3 | |
|---|---|---|---|---|---|
| Cluster 2 | True | −0.75 | 0.64 | −0.19 | −0.13 |
| Est. | −0.738 (0.0212) | 0.614 (0.0229) | −0.185 (0.0239) | −0.149 (0.0162) | |
| Cluster 3 | True | −0.07 | 1.12 | −0.25 | −0.4 |
| Est. | −0.086 (0.0199) | 1.123 (0.0192) | −0.270 (0.0210) | −0.414 (0.0213) |
NOTE: Standard errors are provided in the parenthesis.
As mentioned earlier, based on posterior membership probabilities from estimated parameters, the membership of the subjects can also be estimated. In Table 4 we note down the true and estimated proportions of subjects belonging to each cluster.
Table 4.
True and estimated cluster proportions (empirical standard errors shown in parentheses).
| Cluster 1 | Cluster 2 | Cluster 3 | |
|---|---|---|---|
| True proportion | 0.422 | 0.174 | 0.404 |
| Estimated proportion | 0.422 (3.4 × 10−3) | 0.178 (3.2 × 10−3) | 0.400 (3.9 × 10−3) |
4.5. Comparison with the EM Algorithm
In order to compare the performance of MSiCOR with the EM algorithm in the MMM (without covariates), we consider another simulation study. Here again we consider patients where each patient belongs to one of the clusters. The dimension of the state-space is taken to be n = 10. Corresponding to each cluster, initial state distribution vectors are generated from uniform Dirichlet distribution. The transition matrices corresponding to the first, second and the third clusters are taken to be 30%, 50%, and 70% sparse respectively. The nonzero elements of each row of the transition matrices corresponding to each cluster are generated from uniform Dirichlet distribution. For each patient, the length of their observed Markov chain (i.e., for the patient) is chosen following a discrete uniform distribution on . Then based on the obtained true transition matrices and the initial state probability vectors, the patient-specific state-space sequences are generated. To fit EM, we use the fit_model function in tseqHMM R package (Helske and Helske 2019). The simulation experiment is repeated 50 times and corresponding TVD is measured for both MSiCOR and EM methods. Using TVD, estimated clusters are mapped to the true clusters. After mapping, the misclassification rate (MR) is calculated. In Table 5 it is observed that MSiCOR performs better than the EM algorithm in terms of TVD and MR measures. It is noted that MSiCOR performs better than the EM algorithm yielding lower TVD and MR compared to the EM algorithm. It is also noted that unlike MSiCOR, the EM algorithm seems not to converge on a few occasions yielding very high TPR and MR values (Figure 2).
Table 5.
Comparison of MSiCOR and EM based on total variation distance (TVD) and misclassification rate (MR) based on 50 simulation experiments; mean TVD and TPR values are noted down in the table.
| Sample size | Method | TVD | Max TVD | MR | Max MR |
|---|---|---|---|---|---|
| n = 500 | MSiCOR | 4.57 (0.13) | 5.27 | 0.000 (0.000) | 0.004 |
| EM | 5.41 (0.66) | 26.42 | 0.019 (0.013) | 0.474 | |
| n = 1000 | MSiCOR | 3.18 (0.04) | 3.63 | 0.000 (0.000) | 0.003 |
| EM | 3.66 (0.48) | 26.34 | 0.010 (0.010) | 0.434 |
NOTE: Standard errors are provided in parentheses.
Figure 2.

Boxplot of log of total variation distance (TVD) for MSiCOR and EM based on 50 simulation experiments with sample size 500.
5. Application to Clustering of Medication-Sequence Data of Multiple Sclerosis Patients in EHR Cohort
As a test case, we use MS disease-modifying therapy (DMT) sequence data from an electronic health record (EHR) cohort based at the Massachusetts General and Brigham hospital system (Boston, US) which includes the Comprehensive Longitudinal Investigation of Multiple Sclerosis at Brigham and Women’s Hospital (CLIMB) cohort (Xia et al. 2013; Zhang et al. 2020; Ahuja et al. 2021; Hou et al. 2021; Liang et al. 2022). The EHR cohort contains patient-level data, including DMTs as well as a number of clinical and demographic variables. In this dataset, there are twelve available DMTs for MS patients: alemtuzumab, cyclophosphamide, daclizumab, dimethyl fumarate, fingolimod, glatiramer acetate, interferon-beta, mitoxantrone, natalizumab, ocrelizumab, rituximab and teriflunomide. Of these, daclizumab has been withdrawn from the market and only a few patients received this DMT. Therefore, we exclude daclizumab from our analysis by omitting the corresponding encounters from the MS DMT sequences. We combine rituximab and ocrelizumab under the same mechanistic category (that is, B-cell Depletion). We thus have ten DMT categories in total, which form the state-space of our Markov model. Further, we only consider patients who started on MS DMTs on or after January 1, 2006, because the Mass General Brigham system began implementation of the electronic prescriptions during 2005.
To avoid over-counting given that consecutive visits that are only a few days apart can sometimes list the same DMT prescription, we combine the MS DMT observations into three-month period clusters, starting from DMT start date. Within any three-month period, the consecutive same DMTs are counted as one observation. If a patient takes one DMT during a given three-month period, we count it as one observation representing the given three-month period. For example, during any 3 month period, if the encounters are or or (as long as all encounters in that three-month period are the same DMT ), we take the observation as only for that 3 month period. On the other hand, consider a scenario where a patient has been on DMT sequence during a three-month period. By including the unique consecutive DMTs into one observation, we then get as the representative observation for that three-month period.
In the EHR cohort, for clustering, we only consider the patients for which clinical and demographic data are available along with MS DMT sequnce data; also those patients must start on MS DMT on or after 2006. After applying the aforementioned filters, we finally cluster 822 patients. In the mixture Markov model analysis, we consider the following covariates that are routine in MS research: age at diagnosis, disease duration, gender, race (white, black, and others). The disease duration is the time elapsed from the year of first neurological symptom to the DMT start year. The parameters are estimated using the joint algorithm (using MSiCOR and modified RMPS for unconstrained optimization) as described in Section 4.2.
To identify the number of clusters, we fit the MMM with covariates for number of clusters . Using Bayesian Information Criterion (BIC) (Schwarz 1978), we identify the optimal number of clusters to be 3 (Table 6). After we cluster the 822 patients into 3 DMT sequence clusters, we identify the corresponding cluster for any patient by calculating the posterior cluster membership probabilities given by (5). Once the cluster membership probabilities are calculated for a patient, we assign that patient to the cluster corresponding to the highest membership probability. Among the 822 patients, 445 patients belong to the first cluster, 161 patients belong to the second cluster and the 216 patients belong to the third cluster. In Figure 3, we plot the MS DMT sequences of the patients corresponding to each cluster, up to the first 10 DMTs that they have received in their disease course. In case a patient has received fewer than 10 DMTs, the rest of the slots are kept blank. In the first cluster, most patients have been on interferon-beta, while a small number of patients have been on rituximab-ocrelizumab (B-cell Depletion), fingolimod and dimethyl fumarate. In the second cluster, patient-specific lengths of DMT sequences are smaller than that of the first and the third cluster. In this cluster, patients are mostly treated with glatiramer acetate, interferon-beta, teriflunomide, cyclophosphamide and dimethyl fumarate. In the third cluster, the majority of the patients have been on natalizumab. In summary, patients in the first and the third cluster received predominantly interferon-beta and natalizumab, respectively, whereas patients in cluster 2 received multiple DMTs without any predominant DMT. We also estimate the cluster-specific coefficient values corresponding to the clinical and demographic covariates considered which is provided in Table 7.
Table 6.
Summary of Bayesian Information Criterion (BIC) values after fitting mixture Markov model with covariates for number of clusters .
| Number of clusters | BIC |
|---|---|
| 3 | 13072 |
| 4 | 13556 |
| 5 | 14237 |
| 6 | 15065 |
Figure 3.

Upto first 10 MS DMTs are plotted for the patients from each cluster. B-cell Depletion DMT group consists of Rituximab and Ocrelizumab.
Table 7.
Regression coefficient for clinical and demographical variables for cluster 2 and 3 taking cluster 1 as the reference cluster.
| Clusters | Intercept | Age at diagnosis | Disease duration | Gender (female = 1) | Race White | Race Black |
|---|---|---|---|---|---|---|
| Cluster 2 | −2.48 (0.04) | 0.04 (0.02) | −0.0 (0.01) | 0.29 (0.06) | 0.34 (0.05) | −0.09 (0.05) |
| Cluster 3 | −0.17 (0.06) | −0.02 (0.01) | −0.04 (0.03) | 0.40 (0.11) | 0.75 (0.09) | 1.11 (0.08) |
NOTE: Coefficients are estimated within proposed mixture Markov model with covariates analysis. Standard errors (calculated based on 50 bootstrap samples), is provided in the parenthesis.
Among the 822 patients, a subset of 488 patients belong to the CLIMB cohort. We compare clinical characteristics across the 3 clusters for the patients belonging to the CLIMB cohort which is noted down in Table 8. CLIMB patients have more detailed clinical information. Among CLIMB cohort patients, Cluster 1, 2, and 3 account for 56%, 20%, and 24% of the patients, respectively. When comparing demographics, Cluster 2 patients from CLIMB cohort (pfCc) have the oldest mean age at diagnosis. Cluster 1 pfCc have the lowest whereas Cluster 3 pfCc have the highest proportion of women. When comparing MS outcomes during patient follow-up, Cluster 3 pfCc have the highest annualized relapse rate or ARR (registry data) as well as the highest annualized counts of MS ICD codes, MS-related MRI CPT codes, and MS-relevant CUIs (e.g., “multiple sclerosis.”, “physical therapy”). Cluster 1 and 2 pfCc share similar mean ARR as well as the mean annualized counts of MS ICD codes and MS-related MRI CPT codes. When assessing the yearly incident relapse rate over time, all three clusters decline over time which is consistent with our prior finding (Liang et al. 2022), but Cluster 3 pfCc show consistently higher yearly relapse rate than the other two clusters (Figure 4). Cluster 3 pfCc also have the highest mean annualized counts of total ICD codes and total CPT codes, suggesting the highest healthcare utilization and comorbidity burden. Cluster 2 pfCc contains larger proportion of DMT “cyclers” (who experienced high frequency of switches to different DMTs) than Cluster 1 and 3 pfCc. For example, patients in Cluster 2 switched off standard-efficacy DMTs (for example, interferon-beta, glatiramer acetate), while patients in Cluster 3 switched to natalizumab, a higher-efficacy DMT which was approved in 2004. Cluster membership according to DMT prescription sequences correlate with key clinical outcomes such as yearly relapse rate ( Figure 4).
Table 8.
Characteristics of patient clusters based on DMT prescription sequence: % or Mean (SD).
| Feature | Cluster 1 | Cluster 2 | Cluster 3 |
|---|---|---|---|
| Number of patients | 271 | 100 | 117 |
| Age at diagnosis (year) | 36.5 (10.1) | 41.9 (10.7) | 34.1 (9.5) |
| Duration from diagnosis to 1st DMT (year) | 0.9 (2.4) | 1.4 (2.9) | 1.5 (3.1) |
| Race-White | 90% | 94% | 93% |
| Race-Black | 4% | 3% | 7% |
| Race-Other | 6% | 3% | 0% |
| Gender-Male | 32% | 27% | 19% |
| Gender-Female | 68% | 73% | 81% |
| Annualized relapse rate | 0.16 (0.2) | 0.18 (0.3) | 0.33 (0.5) |
| ICD : Total (count/year) | 19.2 (20.0) | 26.2 (25.6) | 40.3 (42.2) |
| ICD : MS (count/year) | 11.8 (7.9) | 13.9 (10.4) | 24.2 (16.1) |
| CPT : Total (count/year) | 20.0 (16.0) | 25.5 (23.4) | 36.2 (41.1) |
| CPT : MS MRI (count/year) | 3.7 (1.9) | 3.4 (2.0) | 4.6 (2.3) |
| CPT : ED visit (count/year) | 0.7 (0.5) | 0.6 (0.6) | 0.8 (0.7) |
| CUI : Communicable disease (count/year) | 1.3 (2.5) | 1.7 (2.4) | 4.2 (4.1) |
| CUI : Double vision (count/year) | 0.6 (0.8) | 0.7 (1.0) | 0.6 (1.0) |
| CUI : Gadolinium (count/year) | 1.8 (1.0) | 1.9 (1.1) | 2.5 (1.5) |
| CUI : MRI (count/year) | 5.6 (2.3) | 5.9 (3.3) | 7.4 (3.8) |
| CUI : Methylprednisolone (count/year) | 1.3 (3.0) | 1.6 (3.0) | 2.6 (5.1) |
| CUI : Multiple sclerosis (count/year) | 7.6 (5.4) | 9.4 (7.5) | 15.0 (12.0) |
| CUI : Sensation loss (count/year) | 6.1 (3.5) | 6.7 (5.0) | 8.5 (6.3) |
| CUI : Nystagmus (count/year) | 1.0 (0.8) | 1.4 (1.1) | 1.3 (1.1) |
| CUI : Optic neuritis (count/year) | 0.4 (1.1) | 0.6 (1.6) | 0.6 (1.6) |
| CUI : Sense of pain (count/year) | 3.3 (4.1) | 4.7 (5.3) | 7.5 (9.3) |
| CUI : PET scan (count/year) | 3.0 (3.5) | 4.7 (5.5) | 7.9 (10.2) |
| CUI : Steroid (count/year) | 1.4 (1.5) | 1.6 (1.9) | 2.3 (2.9) |
| CUI : Recurrent disease (count/year) | 0.7 (0.8) | 0.9 (1.1) | 1.3 (1.9) |
| CUI : Physical therapy (count/year) | 3.1 (3.6) | 4.8 (5.4) | 8.1 (10.8) |
| CUI : Has difficulty doing (count/year) | 1.9 (1.5) | 2.4 (1.9) | 3.4 (4.6) |
| CUI : Migraine disorders (count/year) | 0.8 (0.8) | 0.9 (0.8) | 1.3 (1.6) |
| CUI : Flare (count/year) | 0.3 (0.6) | 0.4 (0.7) | 0.7 (1.6) |
| CUI : Tingling sensation (count/year) | 0.6 (0.9) | 0.8 (1.0) | 0.9 (1.3) |
Figure 4.

Yearly incident relapse rate over time for patients from CLIMB cohort belonging to all three clusters.
6. Conclusion
In the context of estimating the parameters in the proposed model, we propose a novel Blackbox optimization technique MSiCOR based on Pattern Search (PS) for optimizing any function over the collection of unit-simplexes, where the simplexes can be of different dimensions. We also show that for convex functions, under some regularity conditions, MSiCOR converges to the global optimum point. Based on comparative study using several benchmark functions, MSiCOR is shown to outperform Genetic Algorithm (GA), Sequential Quadratic Programming (SQP) and Interior Point (IP) in terms of performance, in general. To maximize the likelihood of the proposed MMM with covariates, along with MSiCOR, we further use modified Recursive Modified Pattern Search (RMPS) for unconstrained optimization (provided in Section D of the supplementary material). Instead of updating the simplex constrained parameters and unconstrained parameters alternatively, we update all those parameters simultaneously using a joint algorithm and the iterative update steps of MSiCOR and updated RMPS for unconstrained optimization.
Further, we proposed a novel MMM with covariates technique to cluster subjects based on their state sequence data along with clinically relevant patient-specific covariates. Using EHR data on treatment prescription sequence, the proposed method can cluster patients into clinically meaningful subgroups. The proposed model is useful for identifying the differential treatment sequences and trajectories in the patient population. Further, it informs how patient-specific covariates influence the treatment sequence and trajectory. Once the clusters are identified, membership probabilities for different clusters could be computed for future patients based on the estimated parameters.
The simulation study shows that the estimated coefficients of the covariates for different clusters in the proposed MMM with covariates are close to the true values. Further for general MMM (without covariates), using MSiCOR, we obtain better results when compared to the EM algorithm.
As a critical test case, we deploy the proposed method to cluster and analyze MS patients with available DMT and clinical and demographic covariates as a part of a well-characterized research cohort study. We identify 3 clusters of MS patients based on membership on the basis of DMT prescription sequence, where the first and the third cluster are enriched for interferon-beta and natalizumab, respectively, while the patients in the second cluster received multiple DMTs without a single predominant DMTs. Patients in different DMT sequence clusters exhibited different demographic and clinical characteristics. Notably, DMT sequence cluster informed differential clinical outcomes. In the future, the proposed algorithm could be applied to other chronic diseases where medication sequence data and patient-specific covariate values are available. The proposed global optimization technique (combining MSiCOR and modified RMPS for unconstrained optimization) can also be applied for mixture Hidden Markov model analysis.
Supplementary Material
Funding
Dr. Xia was supported by NINDS R01NS098023, NINDS R01NS124882.
Footnotes
Supplementary Materials
Additional results: Supplementary material is made available online.
Codes and dataset: MATLAB codes and de-identified dataset are made available online here.
Disclosure Statement
The authors report there are no competing interests to declare.
Supplementary materials for this article are available online. Please go to www.tandfonline.com/r/JCGS.
References
- Ahuja Y, Kim N, Liang L, Cai T, Dahal K, Seyok T, et al. (2021), “Leveraging Electronic Health Records Data to Predict Multiple Sclerosis Disease Activity,” Annals of Clinical and Translational Neurology, 8, 800–810. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Altman RM, and Petkau AJ (2005), “Application of Hidden Markov Models to Multiple Sclerosis Lesion Count Data,” Statistics in Medicine, 24, 2335–2344. [DOI] [PubMed] [Google Scholar]
- Andrzej O, and Stanislaw K (2006), Global Optimization : Evolutionary Algorithms for Global Optimization, Boston, MA: Springer. [Google Scholar]
- Archambeau C, Lee JA, and Verleysen M (2003), “On Convergence Problems of the EM Algorithm for Finite Gaussian Mixtures,” in European Symposium on Artificial Neural Networks proceedings, pp. 23–25. [Google Scholar]
- Barcellos LF, Oksenberg JR, Green AJ, Bucher P, Rimmler JB, Schmidt S, and Garcia ME (2002), “Genetic Basis for Clinical Expression in Multiple Sclerosis,” Brain, 125, 150–158. [DOI] [PubMed] [Google Scholar]
- Bethke A. (1980), “Genetic Algorithms as Function Optimizers.” Thesis. University of Michigan, USA. https://api.semanticscholar.org/CorpusID:60965631 [Google Scholar]
- Bolano D. (2020), “Handling Covariates in Markovian Models with a Mixture Transition Distribution based Approach,” Symmetry, 12, 558. [Google Scholar]
- Chi PD et al. (2007), “Music Analysis Using Hidden Markov Mixture Models,” IEEE Transactions on Signal Processing, 55, 5209–5224. [Google Scholar]
- Couvreur C. (1997), “The EM Algorithm: A Guided Tour,” in Computer Intensive Methods in Control and Signal Processing, eds. Kárný M, and Warwick K, pp. 209–222, Boston: Springer. [Google Scholar]
- Das P. (2021), “Recursive Modified Pattern Search on High-Dimensional Simplex : A Blackbox Optimization Technique,” The Indian Journal of Statistics - Sankhya B, 83, 440–483. [Google Scholar]
- — (2023), “Black-Box Optimization on Hyper-Rectangle Using Recursive Modified Pattern Search and Application to ROC-based Classification Problem,” The Indian Journal of Statistics - Sankhya B, (to appear) https://arxiv.org/abs/1604.08616v4. [Google Scholar]
- Das P, De D, Maiti R, Kamal M, Hutcheson KA, Fuller CD, Chakraborty B, and Peterson CB (2022), “Estimating the Optimal Linear Combination of Predictors Using Spherically Constrained Optimization,” BMC Bioinformatics, 23, 436. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Das P, Weisenfeld D, Dahal K, De D, Feathers V, Coblyn JS, Weinblatt ME, et al. (2023), “Utilizing Biologic Disease-Modifying Anti-Rheumatic Treatment Sequences to Subphenotype Rheumatoid Arthritis,” Arthritis Research and Therapy, 25, 1–7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Eberhart R, and Kennedy J (1995), “A New Optimizer Using Particle Swarm Theory,” in Proceedings of the Sixth International Symposium on Micro Machine and Human Science, Nagoya, Japan, pp. 39–43. [Google Scholar]
- Fraser AS (1957), “Simulation of Genetic Systems by Automatic Digital Computers,” Australian Journal of Biological Sciences, 10, 484–491. [Google Scholar]
- Garcia-Dominguez et al. (2016), “Patient Preferences for Treatment of Multiple Sclerosis with Disease-Modifying Therapies: A Discrete Choice Experiment,” Patient Prefer Adherence, 10, 1945–1956. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ghribi O, Sellami L, Slima MB, Mhiri C, Dammak M, and Hamida AB (2018), “Multiple Sclerosis Exploration based on Automatic MRI Modalities Segmentation Approach with Advanced Volumetric Evaluations for Essential Feature Extraction,” Biomedical Signal Processing and Control, 40, 473–487. [Google Scholar]
- Goldberg DE (1989), Genetic Algorithms in Search, Optimization, and Machine Learning, Operations Research Series, Boston, MA: Addison-Wesley Publishing Company. [Google Scholar]
- Grand’Maison F, Yeung M, Morrow SA, Lee L, Emond F, Ward BJ, et al. (2018), “Sequencing of Disease-Modifying Therapies for Relapsing–Remitting Multiple Sclerosis: A Theoretical Approach to Optimizing Treatment,” Current Medical Research and Opinion, 34, 1419–1430. [DOI] [PubMed] [Google Scholar]
- Granville V, Krivanek M, and Rasson JP (1994), “Simulated Annealing: A Proof of Convergence,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 16, 652–656. [Google Scholar]
- Gross R, and Corboy J (2019), “Monitoring, Switching, and Stopping Multiple Sclerosis Disease-Modifying Therapies,” Multiple Sclerosis and other CNS Inflammatory Diseases, 25, 715–735. [DOI] [PubMed] [Google Scholar]
- Gupta R Kumar R, and Vassilvitskii S (2016), “On Mixtures of Markov Chains,” in Advances in Neural Information Processing Systems, (Vol. 29). [Google Scholar]
- Haan-Rietdijk S, Kuppens P, Bergeman CS, Sheeber LB, Allen NB, and Hamaker EL (2017), “On the Use of Mixed Markov Models for Intensive Longitudinal Data,” Multivariate Behavioral Research, 52, 747–767. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Helske S, and Helske J (2019), “Mixture Hidden Markov Models for Sequence Data: The seqHMM Package in R,” Journal of Statistical Software, 88, 1–32. [Google Scholar]
- Hooke R, and Jeeves TA (1961), “Direct Search Solution of Numerical and Statistical Problems,” Journal of the Association for Computing Machinery, 8, 212–219. [Google Scholar]
- Hou J, Kim N, Cai T, Dahal K, Weiner H, Chitnis T, et al. (2021), “Comparison of Dimethyl Fumarate vs Fingolimod and Rituximab vs Natalizumab for Treatment of Multiple Sclerosis,” JAMA Network Open, 4, e2134627. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jacobsen M. (2006), Point Process Theory and Applications, Boston: Springer. [Google Scholar]
- Jamil M, and Yang X (2013), “A Literature Survey of Benchmark Functions for Global Optimisation Problems,” International Journal of Mathematical Modelling and Numerical Optimisation, 4, 150–194. [Google Scholar]
- Kennedy J, and Eberhart R (1995), “Particle Swarm Optimization,” in Proceedings of the IEEE International Conference on Neural Networks, Piscataway, NJ, USA, pp. 1942–1948. [Google Scholar]
- Kirkpatrick S, Gelatt C, and Vecchi M (1983), “Optimization by Simulated Annealing,” Australian Journal of Biological Sciences, 220, 671–680. [DOI] [PubMed] [Google Scholar]
- Lewis R, and Torczon V (1999), “Pattern Search Algorithms for Bound Constrained Minimization,” SIAM Journal on Optimization, 9, 1082–1099. [Google Scholar]
- — (2000), “Pattern Search Algorithms for Linearly Constrained Minimization,” SIAM Journal on Optimization, 10(3), 917–941. [Google Scholar]
- Li T, Choi M, Fu K, Lin L (2019), “Music Sequence Prediction with Mixture Hidden Markov Models,” in IEEE International Conference on Big Data, pp. 6128–6132. [Google Scholar]
- Liang L, Kim N, Hou J, Cai T, Dahal K, Lin C, Finan S, et al. (2022), “Temporal Trends of Multiple Sclerosis Disease activity: Electronic Health Records Indicators,” Multiple Sclerosis and Related Disorders, 57, 103333. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Masoudnia S, and Ebrahimpour R (2014), “Mixture of Experts: A Literature Survey,” Artificial Intelligence Review, 42, 275–293. [Google Scholar]
- Meier DS, and Guttman C (2003), “Time-Series Analysis of MRI Intensity Patterns in Multiple Sclerosis,” NeuroImage, 20, 1193–1209. [DOI] [PubMed] [Google Scholar]
- Melnykov V. (2016), “Clickclust: An r Package for Model-based Clustering of Categorical Sequences,” Journal of Statistical Software, 74, 1–34. [Google Scholar]
- Murphy K, Brendan Murphy T, Piccarreta R, Claire Gormley I (2021), “Clustering Longitudinal Life-Course Sequences Using Mixtures of Exponential-Distance Models,” Journal of the Royal Statistical Society, Series A, 184, 1414–1451. [Google Scholar]
- Myhr KM, Riise T, Vedeler C, Nortvedt MW, Grønning R, Midgard R, and Nyland HI (2001), “Disability and Prognosis in Multiple Sclerosis: Demographic and Clinical Variables Important for the Ability to Walk and Awarding of Disability Pension,” Multiple Sclerosis Journal, 7, 59–65. [DOI] [PubMed] [Google Scholar]
- Potra FA, and Wright SJ (2000), “Interior-Point Methods,” Journal of Computational and Applied Mathematics, 4, 281–302. [Google Scholar]
- Reid D. (1996), “Genetic Algorithms in Constrained Optimization,” Mathematical and Computer Modelling, 23, 87–111. [Google Scholar]
- Schmitt L. (2001), “Theory of Genetic Algorithms,” Theoretical Computer Science, 259, 1–61. [Google Scholar]
- Schwarz G. (1978), “Estimating the Dimension of a Mode,” Annals of Statistics, 6, 461–464. [Google Scholar]
- Scott MA, Mohan K, and Gauthier J-A (2020), “Model-Based Clustering and Analysis of Life History Data,” Journal of the Royal Statistical Society, Series A, 183, 1231–1251. [Google Scholar]
- Smith RL, and Romeijn HE (1994), “Simulated Annealing for Constrained Global Optimization,” Journal of Global Otimization, Journal of Global Optimization, 5, 101–126. [Google Scholar]
- Thirion J, and Calmon G (1999), “Deformation Analysis to Detect and Quantify Active Lesions in Three-Dimensional Medical Image Sequences,” IEEE Transactions on Medical Imaging, 18, 429–441. [DOI] [PubMed] [Google Scholar]
- Torczon V. (1997), “On the Convergence of Pattern Search Algorithms,” SIAM Journal on Optimization, 7, 1–25. [Google Scholar]
- Wright MH (2005), “The Interior-Point Revolution in Optimization: History, Recent Developments, and Lasting Consequences,” Bulletin of American Mathematical Society, 42, 39–56. [Google Scholar]
- Xia Z, Secor E, Chibnik l. B., Bove RM, Cheng S, Chitnis T, et al. (2013), “Modeling Disease Severity in Multiple Sclerosis Using Electronic Health Records,” Plos One, 8, e78927. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zhang T, Goodman M, Zhu F, Healy B, Carruthers R, Chitnis T, et al. (2020), “Phenome-Wide Examination of Comorbidity Burden and Multiple Sclerosis Disease Severity” Neurology Neuroimmunology & Neuroinflammation, 7, e864. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
