Next Article in Journal
Inequalities of a Class of Analytic Functions Involving Multiplicative Derivative
Previous Article in Journal
A Surrogate Model for the Rapid Prediction of Factor of Safety in Slopes with Spatial Variability
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Finite Mixture Models: A Key Tool for Reliability Analyses

Faculty of Mechanical Engineering, University of Ljubljana, 1000 Ljubljana, Slovenia
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(10), 1605; https://doi.org/10.3390/math13101605
Submission received: 9 April 2025 / Revised: 8 May 2025 / Accepted: 11 May 2025 / Published: 14 May 2025
(This article belongs to the Section E1: Mathematics and Computer Science)

Abstract

:
As system complexity increases, accurately capturing true system reliability becomes increasingly challenging. Rather than relying on exact analytical solutions, it is often more practical to use approximations based on observed time-to-failure data. Finite mixture models provide a flexible framework for approximating arbitrary probability density functions and are well suited for reliability modelling. A critical factor in achieving accurate approximations is the choice of parameter estimation algorithm. The REBMIX&EM algorithm, implemented in the rebmix R package, generally performs well but struggles when components of the finite mixture model overlap. To address this issue, we revisit key steps of the REBMIX algorithm and propose improvements. With these improvements, we derive parameter estimators for finite mixture models based on three parametric families commonly applied in reliability analysis: lognormal, gamma, and Weibull. We conduct a comprehensive simulation study across four system configurations, using lognormal, gamma, and Weibull distributions with varying parameters as system component time-to-failure distributions. Performance is benchmarked against five widely used R packages for finite mixture modelling. The results confirm that our proposal improves both estimation accuracy and computational efficiency, consistently outperforming existing packages. We also demonstrate that finite mixture models can approximate analytical reliability solutions with fewer components than the actual number of system components. Our proposals are also validated using a practical example from Backblaze hard drive data. All improvements are included in the open-source rebmix R package, with complete source code provided to support the broader adoption of the R programming language in reliability analysis.

1. Introduction

Estimating system reliability is a complex yet essential task [1,2,3]. It is crucial because system reliability often plays a key role in further analyses, such as calculating the mean time to failure (MTTF) [1,3], determining remaining useful life (RUL) [4], assessing hazard rates [5,6], conducting safety evaluations [7,8], and so on. Accurate reliability estimation enables better decision-making and enhances safety and longevity.
In a complex system consisting of several components, reliability estimation typically involves several steps [9,10]. These include collecting relevant time-to-failure data sets, selecting suitable parametric families for the component time-to-failure distributions, estimating their parameters and finally deriving the overall system reliability model. The application of these steps can be quite challenging even for smaller systems [8]. In addition, in order to obtain meaningful estimates, various assumptions often need to be made that simplify the derivation of the final, more sophisticated reliability models.
On the other hand, surrogate modelling has gained significant popularity for reliability estimation [11,12]. In probabilistic modelling, system reliability is often represented using exponential or Weibull parametric families [5,13]. However, such oversimplifications typically result in poor estimates that are inadequate for complex systems [14,15]. One of the gold-standard methods for reliability estimation is finite mixture modelling [14,16,17,18]. The applicability of finite mixture models (FMMs) for reliability data is well established in the literature, either in the separation of system failure modes [14,19] or component-level heterogeneity [16,17,18]. Additionally, this semi-parametric approach is capable of modelling a wide range of random phenomena beyond reliability data [20,21,22,23,24]. While FMMs are a part of probabilistic modelling, their inherent properties also make them useful for uncovering additional meaningful insights about the systems being analysed [14,19].
Despite significant progress, the development of a suitable parameter estimation algorithm for different FMMs remains elusive. Research on normal FMMs, where the normal parametric family serves as the component distribution, is abundant and includes well-established parameter estimation algorithms along with software implementations [25]. In contrast, similar studies addressing FMMs with alternative parametric families, such as lognormal, gamma, or Weibull, are lacking, likely due to their limited use and the practical difficulties associated with their derivation and implementation [26,27,28]. Nonetheless, these parametric families are particularly relevant in reliability analysis, as they often provide a better fit for modelling the time-to-failure distributions of system components [16,29,30,31]. Furthermore, readily available software implementations of these FMMs are often lacking or, at the very least, remain unknown to the wider public. Addressing this gap is essential for the wider adoption of FMMs in practical reliability studies, particularly where the flexibility to incorporate diverse parametric families as component distributions is critical for accurately capturing system behaviour.
The Expectation–Maximisation (EM) algorithm is widely considered the most promising approach in terms of accuracy and computational efficiency for estimating parameters in FMMs [18]. However, since the EM algorithm requires proper initialisation, recent studies have highlighted that the Rough-Enhanced-Bayes (REBMIX) algorithm can also effectively tackle this issue, albeit with certain limitations [25,32]. More specifically, recent findings in [25] suggest that REBMIX struggles when components in the FMM are highly overlapping. To address these challenges, we briefly review the REBMIX algorithm and propose improvements to its rough component parameter estimation and Bayesian mixture parameter optimisation steps. Furthermore, we derive comprehensive parameter estimation formulas for both the EM and REBMIX algorithms for lognormal, Weibull, and gamma parametric families, and we provide ready-to-use software implementations within the rebmix R package. We also review other popular R packages that can be used to estimate parameters of lognormal, Weibull, and gamma FMMs. All corresponding source code is included as Supplementary Material to ensure full reproducibility of this work.
Finally, to obtain conclusive benchmarks, we designed a comprehensive simulation study involving four different system configurations. For each configuration, the exact system reliability and corresponding probability density function were analytically derived. The lognormal, gamma, and Weibull parametric families were used to model the time-to-failure distributions of individual system components. The parameters for each component’s distribution were generated to ensure significant overlap between them. This process was repeated for 20 different random seeds to thoroughly evaluate: (a) the performance of the improved REBMIX&EM parameter estimation algorithm, (b) its benchmarking against state-of-the-art estimation methods implemented in freely available R packages, and (c) the effectiveness of different FMMs in approximating the true system reliability.
The remainder of this paper is organized as follows. Section 2 presents all the improvements made to the parameter estimation procedures. Section 3 outlines the simulations. Section 4 discusses the results, while Section 5 gives the practical real-life example. Section 6 provides the concluding remarks. Appendix A contain the derivations of the EM and REBMIX parameter estimation methods for the lognormal, Weibull and gamma FMMs.

2. Methodology

In this section, recent improvements to the REBMIX algorithm are presented, mainly inspired by the findings in [25]. Chassagnol et al. [25] demonstrated that REBMIX initialisation provides the most accurate estimates when working with well-separated components or a small number of components with clearly distinguishable modes. Furthermore, the study indicated that for data sets with highly overlapping components, k-means [33] or random initialisation [34] gives more accurate results. The advances presented in this article are intended to demonstrate improved performance in cases with moderately overlapping components as well as increased accuracy and calculation speed. The scope of this study is restricted to lognormal, Weibull and gamma FMMs.

2.1. Lognormal, Weibull and Gamma FMMs

Let y 1 , , y j , , y n be an observed d = 1 dimensional data set of size n of continuous observations. Each observation is assumed to follow the predictive FMM density
f ( y | c , w , Θ ) = l = 1 c w l f ( y | θ l ) .
The objective of the analysis is to obtain the number of components c, the component weights w l , which sum to 1, and the component parameters θ l . It is assumed that the component time-to-failure probability densities come from the lognormal
lognormal ( y | θ l ) = 1 2 π σ l y exp 1 2 ( log ( y ) μ l ) 2 σ l 2 ,
Weibull
Weibull ( y | θ l ) = β l θ l y θ l β l 1 exp y θ l β l or
gamma
gamma ( y | θ l ) = 1 Γ [ β l ] y y θ l β l exp y θ l
parametric family.

2.2. Parameter Estimation

The REBMIX algorithm [35] was originally developed as a sequential method in which the components are estimated individually. The algorithm is composed of several steps, which are shown in Figure 1. However, a significant limitation is the inability to reach the optimal solution. Thus, recent studies [32] propose to merge the algorithm with the EM algorithm [36] to form REBMIX&EM.
In this case, REBMIX first provides estimates for the number of components c, the weights w and the parameters Θ , which are usually close to the optimum. The EM algorithm then refines these estimates to converge to the optimal solution.
Nevertheless, the introduction of the EM algorithm into the estimation procedure did not solve the problems of optimising the spurious optima with overlapping components in the FMM. We have found that the main problems lie in the rough parameter estimation step and the Bayesian mixture parameter optimisation step, which we will discuss in more detail in the following text.

2.2.1. Rough Parameter Estimation

The rough parameter estimation phase is the most important step in the REBMIX algorithm. In this phase, rough parameters for the lth component are estimated based on the global mode position y m and its probability density f l m . These parameters are then used to cluster observations between the lth component and the residue, as detailed in [35,37]. Unlike algorithms such as k-means, which depends exclusively on the positions of observations and their distances, REBMIX utilizes additional information from the data set. It not only considers the positions of observations but also identifies the global mode, a distinctive feature of the data set. The determination of the empirical densities f l j by histogram preprocessing or external binning of the observations into j = 1 , , v nonempty bins also substantially reduces computational time, especially for large data sets. For small data sets, kernel density estimation or k-nearest neighbour may be preferable for preprocessing the observations.
However, a fundamental problem, illustrated in Figure 2, remains unresolved. Figure 2 presents three plots, where rough component parameter estimation is depicted on three different estimation cases, namely a FMM with non-overlapping components (the plot on the left), moderately (the middle plot) and heavy overlapping components (the plot on the right). In all three plots, the residue is shown in green, the lth component in red and the FMM probability density as a black line. The global mode is indicated by a black circle, while the mode of the true lth component is indicated by a red circle. The true residue probability density at the global mode is shown by a green circle. The left and right global minima are represented by a black triangle pointing upwards and a triangle pointing downwards, respectively. The rough probability density of the lth component is depicted by a thin red solid line, and the loose probability density of the lth component is shown by a thin blue line.
The empirical density of the global mode f l m belongs exclusively to the lth component only if the components are well separated (see red circle in left plot of Figure 2), which overlaps the black circle. This is generally not the case for moderately or heavily overlapping components, as shown in the middle and right plots of Figure 2. In these cases, the red and black circles are misaligned. The approach proposed in [38], which is implemented in the package rebmix version 2.15.0 and older remains accurate only under conditions where components are well separated, as shown in the left plot of the Figure 2, or if a single component of the residue contributes to f l m , as shown in the middle plot of the Figure 2. Cases where multiple components contribute to the lth component, as illustrated in the right plot of the Figure 2, may lead to estimation errors in f l m . According to [38], the wider component of the residue in the middle plot of the Figure 2 (mean μ = 75 , standard deviation σ = 7 ) is extracted before the dominant lth narrower component ( y m = μ = 80 , σ = 2 ), which is suboptimal. Ideally, the dominant component in red, centred on y m , should be extracted first. The refined rough parameter estimation, which addresses the the aforementioned issues, is outlined below.
After preprocessing or external binning of observations, the empirical probability densities f l j (black solid line) are obtained, from which the global mode position y m and the corresponding value f l m can be readily identified. The true component probability density f ( y m | θ l ) , marked by the red circle, and the true probability density of the residue
f res ( y m | c , w , Θ ) = f ( y m | c , w , Θ ) w l f ( y m | θ l ) ,
marked by the green circle, are not available at this stage. Assume that the weight of the lth component is w l = 1 and that f ( y m | θ l rigid ) = f l m rigid = f l m . In other words, the thin red line representing the envelope under which the entire lth component is believed to be contained can be calculated and visualised. The component parameters θ l rigid of the red thin lines in Figure 2 were connected to rigid restraints for the first time in [38]. It was further demonstrated in [38] that the rigid restraints alone are not sufficient to accurately restore the components of the residue when they overlap. Furthermore, an iterative procedure for defining the rough component parameters based on loose restraints was proposed in [38].
If we carefully observe the area between the red thin lines and the black lines in Figure 2, we can see that there is a global minimum y a (triangle pointing upwards) to the left of y m and another y b (triangle pointing downwards) to the right of the global mode. At the beginning let y a = y b = y m or equivalently a = b = m . Then
a = arg min j f l j subject to f ( y j | θ l rigid ) > f l j and y j < y m ,
b = arg min j f l j subject to f ( y j | θ l rigid ) > f l j and y j > y m .
The sum of the differences between the empirical densities and the corresponding probability densities of the lth component
W l = h j = 1 v f l j f ( y j | θ l rigid ) = 1 j = 1 v f ( y j | θ l rigid ) h
is also calculated, where h stands for the bin widths. Next, the number n res and the density f res are both initialised to zero. If W l 0 and y a < y m , n res is incremented and f res is increased by f l a . Similarly, if W l 0 and y b > y m , n res = n res + 1 and f res = f res + f l b . Finally, if n res > 0 , f res = f res / n res . The loose restraints then lead to
f l m loose = max { f l m rigid f res , f res } ,
from which the loose rough component parameters, θ l loose , are calculated as explained in Appendix A.1. For simpler notation, let f l m = f l m loose and θ l = θ l loose . In Figure 2, the probability densities of the lth component associated with the loose restraints are shown as thin blue lines.
Equation (8) is valid only for non-overlapping bins. For kernel density estimation, the histogram is constructed with one bin aligned with y m . Similarly, for k-nearest neighbour, the histogram is constructed with one bin aligned with y m . Here, h = 2 R m , where R m denotes the mean Euclidean distance to the first non-coincident nearest neighbour. Further details on the estimation of the rough component parameters can be found in [35,37].

2.2.2. Bayesian Mixture Parameter Optimisation

The REBMIX algorithm clusters an observed data set of size n into c clusters of sizes n 1 , , n c associated with component probability densities f ( y j | θ l ) and component weights w l = n l / n . The clustering is designed to minimise both the sum of the positive relative deviations and the information criterion. As a result, the sum of the component weights satisfies l = 1 c w l 1 , meaning that some observations may remain unassigned.
At the beginning, the number of outliers N is set to zero and the initial first moments m l and second moments V l are taken from Appendix A.3. The remaining observations are then allocated to the existing components based on the Bayes decision rule
l = arg max l w l f ( y j | θ l ) .
For each observation, it is also determined whether it is an outlier. Outliers are identified as those that fall into the left or right tail of the probability density with a probability of p = 0.0001 . If the observation is recognised as an outlier, then N = N + k l j . Otherwise
w l = w l + k l j n ,
m l = m l + k l j ( y j m l ) n w l ,
V l = V l + k l j ( y j 2 V l ) n w l .
This ensures that the outliers do not influence m l and V l . A detailed explanation of the frequencies k l j associated with the densities f l j can be found in [35].
After processing v bins or n observations, depending on the type of preprocessing, the component weights are recalculated
w l = n w l n N ,   l = 1 , , c
to fulfil l = 1 c w l = 1 . The initial FMM parameters for the EM are finally obtained by inverting Equations (A22)–(A27). The lognormal parameters result from
μ l = 2 log ( m l ) 1 2 log ( V l ) ,
σ l 2 = log ( V l ) 2 log ( m l ) .
The Weibull parameters are a solution of
log ( m l 2 / V l ) + log ( Γ [ 1 + 2 / β l ] ) 2 log ( Γ [ 1 + 1 / β l ] ) = 0 ,
θ l = m l Γ [ 1 + 1 / β l ] .
To avoid numerical problems, the minimum value of β l was set to β min = 0.15 . If Equation (17) returns a value less than or equal to zero, then β l is set to β min . Otherwise, β l = β min is used as the initial estimate. The gamma parameters are given by
β l = 1 V l m l 2 1 ,
θ l = m l β l .
This section introduces an important improvement with the inclusion of outliers, as compared to [14].

3. Simulations

To demonstrate the improvements of improved rough component parameter estimation and enhanced Bayes classification of unassigned observations, the R package rebmix [37] (version 2.16.0) was compared to five widely used alternatives: flexmix [39,40] (version 2.3-20), ltmix [41] (version 0.2.2), mixdist [42] (version 0.5-5), mixR [43] (version 0.2.1), and mixtools [44,45] (version 2.0.0.1. The comparison focused on three common parametric families in the reliability domain: lognormal, Weibull and gamma. In addition, four system configurations, as shown in Figure 3, were analysed. To cover a wide range of sample sizes, data sets with 50, 100, 500 and 1000 observations were used. The parameters for the probability density functions were generated using random seeds ranging from 1 to 20.
The Weibull and gamma parameters were simulated according to the following equations
β l = 1 + 9 U ( 0 , 1 ) ,
θ l = 10 + 90 U ( 0 , 1 ) ,
where U ( 0 , 1 ) denotes a uniform distribution in the range [ 0 , 1 ] . The lognormal distribution parameters were simulated as
μ l = log ( 10 + 90 U ( 0 , 1 ) ) ,
σ l = 1 1 + 9 U ( 0 , 1 ) .
Here, the index l stands for the number of the component, l = 1 , , 5 . Each package was thus evaluated on 3 parametric families × 20 random seeds × 4 system configurations × 4 sample sizes = 960 well distinguishable data sets.
The R packages were evaluated according to the Bayesian Information Criterion (BIC) and the calculation time. The BIC is commonly regarded as the standard information criterion to assess how well the estimated FMM fits a data set.
On the other hand, the calculation time is of key importance when numerous data sets or large data sets have to be processed. This is particularly important as FMMs are often associated with solving complex regression, clustering, classification or other data mining tasks.
All of the aforementioned packages are based on the EM algorithm, although they use different strategies to determine the initial set of FMM parameters. We also performed initial tests with the package ForestFit (version 2.4.3) [46], which was significantly slower than the others. Considering the computational challenges of processing 960 data sets within a reasonable time frame, ForestFit was not further evaluated.
Assuming that the time-to-failure probability densities f l ( t ) and the corresponding reliabilities R l ( t ) of the five components in Figure 3 are known, the exact system reliability for the linked system configuration (d) can be expressed as follows
R s = R 1 R 3 + R 2 R 4 + R 1 R 4 R 5 + R 2 R 3 R 5 R 1 R 2 R 3 R 4 R 1 R 2 R 3 R 5 R 1 R 2 R 4 R 5 R 1 R 3 R 4 R 5 R 2 R 3 R 4 R 5 + 2 R 1 R 2 R 3 R 4 R 5 .
For the sake of simplicity, the dependency on the variable t is omitted from the notation. The exact system time-to-failure probability density for the linked system configuration (d) is then
f s = d R s / d t = f 1 R 3 + R 1 f 3 + f 2 R 4 + R 2 f 4 + f 1 R 4 R 5 + R 1 f 4 R 5 + R 1 R 4 f 5 + f 2 R 3 R 5 + R 2 f 3 R 5 + R 2 R 3 f 5 f 1 R 2 R 3 R 4 R 1 f 2 R 3 R 4 R 1 R 2 f 3 R 4 R 1 R 2 R 3 f 4 f 1 R 2 R 3 R 5 R 1 f 2 R 3 R 5 R 1 R 2 f 3 R 5 R 1 R 2 R 3 f 5 f 1 R 2 R 4 R 5 R 1 f 2 R 4 R 5 R 1 R 2 f 4 R 5 R 1 R 2 R 4 f 5 f 1 R 3 R 4 R 5 R 1 f 3 R 4 R 5 R 1 R 3 f 4 R 5 R 1 R 3 R 4 f 5 f 2 R 3 R 4 R 5 R 2 f 3 R 4 R 5 R 2 R 3 f 4 R 5 R 2 R 3 R 4 f 5 + 2 ( f 1 R 2 R 3 R 4 R 5 + R 1 f 2 R 3 R 4 R 5 + R 1 R 2 f 3 R 4 R 5 + R 1 R 2 R 3 f 4 R 5 + R 1 R 2 R 3 R 4 f 5 ) .
If R 5 = 1 and f 5 = 0 , then the last two equations correspond to the low-level redundant system configuration (c). High-level redundant system configuration (b) is obtained when R 5 = 0 and f 5 = 0 . Serial system configuration (a) is achieved if R l = 0 and f l = 0 for l { 2 , 4 , 5 } .
Although the systems under consideration consist of no more than five components, Equations (25) and (26) are already quite complex. For systems with a large number of components, it is no longer feasible to derive analytical equivalents for these equations. In addition, the structure of Equation (26) differs significantly from that of Equation (1). Nevertheless, it is possible to show that the FMM is an excellent and compact approximation to the exact system time-to-failure probability density.
Figure 4 illustrates the time-to-failure probability densities for components 1 to 5, which are colour-coded as follows: Component 1 in red, 2 in green, 3 in blue, 4 in cyan and 5 in purple. The components have significantly different times to failure. The exact time-to-failure probability density of the system, shown in black, shows two different modes. The first mode lies between the modes of components 1 and 3, while the second mode closely matches the mode of component 2. Figure 5 also shows that components 4 and 5 do not contribute significantly to the reliability of the system.
The times to system failure T s were randomly generated using Monte Carlo simulation, based on the known time-to-failure probability densities of the individual components. In order to take different system configurations into account, each component was assigned an indicator I l . Specifically, I l = 1 indicates that R l = 1 , I l = 0 means that R l = 0 , and I l = 0.5 represents R l ( t ) . The times to failure of the component l were generated for the parametric Weibull family as follows
T l I l = 1 Weibull ( β l , θ l ) I l = 0.5 0 I l = 0 .
The function of the random number generator used to model the times to failure is either lognormal ( μ l , σ l ) , Weibull ( β l , θ l ) or gamma ( β l , θ l ) . The different system configuration, illustrated in Figure 3, is thus uniquely defined by an indicator array I = { I l } l { 1 , 2 , 3 , 4 , 5 } , where I l { 0 , 0.5 , 1 } is the lth system component indicator variable as described in the paragraph above. For example, the indicator array for a low-level redundant system, illustrated in Figure 3c, is I = { 0.5 , 0.5 , 0.5 , 0.5 , 1 } and the indicator array for a linked system, illustrated in Figure 3d, is I = { 0.5 , 0.5 , 0.5 , 0.5 , 0.5 } . Finally, the time until system failure is then given by
T s = max { min { T 1 , T 3 } , min { T 2 , T 4 } , min { T 1 , T 4 , T 5 } , min { T 2 , T 3 , T 5 } } .
In other words, the time to system failure depends on the four minimal paths of the system. In this way, data sets of different lengths were created. The pseudo code for data set generation is given in Algorithm 1.
The R files flexmix.R, ltmix.R, mixdist.R, mixR.R, mixtools.R and rebmix.R are provided as Supplementary Materials to enable the reproduction of all results presented in this article. Please replace the working directory setwd() and make sure that the required packages are installed before executing the above *.R files. The R programming environment has undoubtedly become the leading platform for statistical computing. Figures such as Figure 4 and Figure 5 can be reproduced by running the figures.R script.
Algorithm 1: System time-to-failure data set generation.
  • Input: Number of data points to generate n, parametric family of system components pdf , Parameters for system component distributions Θ , Indicator array I ;
  • Output: Times to system failure T ;
  • 1: Create empty array for data set T = { } ;
  • 2: foreach  i { 1 , n } do:
  • 3:       Create empty array for system component time to failure t = { } ;
  • 4:       foreach  l { 1 , 5 }  do:
  • 5:             Select I l from lth index in indicator array I ;
  • 6:             Set parametric family defined in pdf with distribution parameters from Θ ;
  • 7:             Generate time to failure T l of lth system component using Equation (27).
  • 8:             Insert T l in array t at position l;
  • 9:         end
  • 10:       Select T 1 , T 2 , T 3 , T 4 , T 5 from t ;
  • 11:       Determine system time to failure T s using Equation (28);
  • 12:       Insert T s in array T at position i;
  • 13:   end

4. Results and Discussion

The package rebmix was developed for FMM parameter estimation, with a particular focus on large data sets and the Weibull parametric family [35,38]. It is primarily characterized by its distinctive approach of sequential rough parameter estimation, which significantly reduces computational time relative to other EM-based packages. In contrast, where these alternatives rely on simultaneous parameter estimation and require initial estimates for all parameters, rebmix achieves greater efficiency through its streamlined process.
However, a major disadvantage of rebmix was its lower accuracy, as indicated by higher values for the information criteria, where other packages performed better. To address this limitation, an EM step was incorporated [32] to fine-tune the FMM parameters. Although this improvement reduced computational speed, it enhanced accuracy. The effects of the latest improvements to the package are demonstrated below. The computational procedure for obtaining the results presented in this section and for further analysis is shown in Figure 6.
The 960 data sets were initially processed by all six packages. Since the system is composed of five components, the optimal solution was searched for c = 1 to 5, where c is the number of components. The package rebmix offers three types of preprocessing: histogram, kernel density estimation (KDE) and k-nearest neighbour (KNN). Histogram preprocessing is particularly suitable for larger data sets, while KDE and KNN are more suitable for smaller data sets. The KDE&histogram option in Table 1 indicates that the histogram preprocessing was used if the number of observations n > 100 , otherwise KDE was used. The package rebmix provided the most favourable BIC values. The rebmix can also use a histogram as input by first converting the data set using the methods fhistogram or chistogram. See rebmix help for details. This option is referred to as binned in the table.
As can be seen from Table 2, the package rebmix was on average 241 times faster than flexmix and 1029 times faster than mixtools. For further analysis, we chose the binned option, which resulted in an average BIC that was lower than that of the second-best package ltmix. Details on how to use this option can be found in the file rebmix.R.
Studying the mean values alone is insufficient. For Table 3 and Table 4, the values of Δ BIC = BIC rebmix BIC p and Δ time = time rebmix time p were calculated for all 960 data sets, where p { flexmix , ltmix , mixdist , mixR , mixtools } . The summation was performed as follows: for Δ BIC < 0 , a value of one was added; for Δ BIC > 0 a value of minus one was added; and for Δ BIC = 0 zero was added to the sum. This process was carried out separately for each parametric family. The same logic was applied to Δ time .
The values in the tables can range from − 320 to 320, with a positive value indicating that rebmix outperformed package p. It is obvious that the improved REBMIX&EM algorithm not only worked faster, but also provided better BIC estimates compared to the other packages. For the gamma parametric family, however, ltmix flexmix, mixR and mixtools performed slightly better. In terms of speed, rebmix was faster in almost all cases. The NA entries in the tables indicate that mixtools could not process the lognormal and Weibull parametric families.
Next, the effects of the parametric family and the sample size on the BIC and the calculation time were analysed. The Table 5 and Table 6 show the mean values and standard deviations (in brackets) for the information criterion and the calculation time. In terms of BIC, rebmix performed best in seven cells of Table 5, followed by ltmix, which performed best in six cells, and mixR, which performed best in four cells. The other packages only achieved the best BIC in one cell. In terms of calculation time, rebmix performed better than all other packages in all cells of Table 6.
To summarise, the accuracy of the rebmix package has improved significantly compared to its previous versions, while maintaining its superiority in calculation time. This progress is particularly important as it increases the potential of rebmix, not only for FMM parameter estimation, but also for applications in image segmentation [32] and in combination with neural networks for image processing.
The effect of packages on different parametric families was analysed based on the estimated optimal number of components. As shown in Figure 7, the FMM in the case of mixdist includes only one component in 796 out of 960 cases ( 243 + 245 + 308 = 796 ). This indicates that, although the systems may consist of up to five components, a single-component FMM is sufficient to reliably represent the system in 82.9 % of cases, despite the variability in component time-to-failure probability densities shown in Figure 8 and Figure 9. Two components were required in 14.9 % of cases, three components in 1.5 % , four components in 0.4 % and five components in only 0.3 % of cases.
This result indicates that the complexity of the FMM does not necessarily increase with the increasing complexity of the system. However, the complexity of the exact system reliability increases with the complexity of the system. This supports the hypothesis that the FMM is an excellent approximation of the exact system reliability function, as it allows a very compact formulation of the system reliability and the system time-to-failure probability density. All tables and figures in this section can be reproduced by executing the file tables.R.

5. Practical Example

To demonstrate the practical usefulness of our proposed approach, we utilized hard disk drive (HDD) and solid-state drive (SSD) data from the Backblaze data center [47]. The time-to-failure data was extracted from the 2024 Q4 data set, spanning the period from 1 October to 31 December 2024. For each day within this period, a snapshot was available containing information on both operational and failed HDDs and SSDs. We identified all drives that failed on a given day and extracted their power-on hours, represented by the S.M.A.R.T. 9 attribute [48], as a proxy for time-to-failure. Using this method, we compiled a total of 1030 time-to-failure data points from HDDs and SSDs that failed during Q4 2024. A histogram illustrating the distribution of these time-to-failure values is shown in Figure 10.
All packages, namely rebmix, flexmix, ltmix, mixdist, mixR, and mixtools, used in the simulation study were also applied here to estimate the parameters of the FMMs. For flexmix, ltmix, mixdist, mixR, and mixtools, we used the same package-specific settings as before. In the case of rebmix, we selected only the histogram preprocessing method, as it yielded the fastest and most accurate results. Table 7 reports the BIC values of the FMMs estimated using different packages, and Table 8 presents the corresponding computation times. Additionally, Table 7 reports the number of components estimated in the FMMs for each package and parametric family, indicated in parentheses next to the corresponding BIC value.
Since the parametric family is not known a priori for the presented data set, we applied all three parametric families explored in this study: Weibull, gamma, and lognormal. As shown in Table 7, the majority of packages achieved their best BIC values with the gamma FMM, with the exception of mixR, which yielded a lower BIC for the lognormal FMM. Additionally, regardless of the chosen parametric family, most packages consistently estimated FMMs with five components as the most suitable model. The best-performing gamma FMM, based on the observed BIC values, was estimated using the rebmix package, which also provided the overall best estimate. The top Weibull and lognormal FMMs were estimated using mixR and rebmix, respectively. The best-fitting Weibull, gamma, and lognormal FMMs are visualized in Figure 11. Finally, in terms of computational efficiency, the rebmix package clearly outperformed all others, with mixR being the second fastest, although it was, on average, five times slower than rebmix.

6. Conclusions

This article tackles several open challenges related to the use of FMMs in reliability studies. First, we addressed the shortcomings of the REBMIX&EM parameter estimation algorithm. Second, we demonstrated the advantages of using lognormal, Weibull, and gamma FMMs to approximate system reliability, and derived all associated parameter estimation equations. Our third objective was to promote the use of the R Project for Statistical Computing [49] in the fields of reliability, maintainability, and supportability. To that end, we evaluated six R packages relevant to these domains. All evaluated packages are applicable to reliability modelling, and all but one offer straightforward usage. The mixtools package currently supports only the gamma parametric family. In contrast, the mixdist package requires additional programming effort, as it lacks built-in functionality for estimating initial parameters. To address this, we used the kmeans algorithm [49] to initialize parameter values. We have also provided all accompanying source code to enable full reproducibility and to serve as a starting point for further research.
To demonstrate the improvements to the REBMIX&EM parameter estimation algorithm implemented in rebmix R package the serial system, the high-level redundant system, the low-level redundant system and the linked system were analysed. Four different sample sizes and three parametric families were studied. The data sets were simulated across a wide range of parameters defining the component time-to-failure distributions. A total of 960 data sets were processed with each package. The findings of the article can be summarised as follows:
  • Although the true system time-to-failure probability density function (e.g., Equation (26)) differs significantly from the FMM probability density function (e.g., Equation (1)), the latter still serves as an effective and concise alternative.
  • The number of components of the FMM is usually lower than the number of components from which the system is composed.
  • The lognormal, Weibull and gamma parametric families are all suitable for modelling system reliability. However, it is impossible to determine the best family in advance. Therefore, it is recommended to estimate the FMM parameters for each family and choose the one that yields the lowest information criterion.
  • The BIC is the most preferred and widely used information criterion.
  • The improved rough component parameter estimation and enhanced Bayes classification of unassigned observations have significantly increased the calculation speed of the REBMIX algorithm.
  • The improved REBMIX&EM algorithm has improved the accuracy of estimating the parameters of a FMM, at least for univariate problems. REBMIX is used here to determine the initial parameters for the EM algorithm.
  • All calculations of the article can be reproduced via supplementary *.R files in the R programming environment.
Based on the results of the simulation study, the rebmix R package provides very fast and accurate FMM estimates. The mixR package also demonstrated competitive performance. The flexmix and ltmix packages showed similar performance levels and offer extensive feature sets within their respective domains. In contrast, the mixdist package was the least user-friendly, as it requires manual specification of initial FMM parameters. Additionally, the mixtools package currently lacks support for the Weibull and lognormal parametric families.
We also analysed a practical case study involving time-to-failure data from Backblaze hard drives. In this analysis, all packages used in the simulation study were applied for FMM parameter estimation. The best overall FMM, based on BIC, was a gamma FMM with five components, estimated using the rebmix package. Both the rebmix and mixR packages produced the best estimates for the Weibull and lognormal FMMs. As in the simulation study, rebmix achieved the shortest computation time, while mixR again showed strong and competitive performance.
The rebmix package, with the improved REBMIX&EM parameter estimation algorithm presented in this study, offers highly competitive performance, delivering accurate estimates with minimal computation time. However, because the REBMIX algorithm is deterministic, it always produces the same initial parameters for the EM algorithm, unlike random initialisation, which can eventually outperform deterministic approaches given enough time. Packages like flexmix and ltmix, which use random initialisation, can explore the parameter space more broadly and eventually lead to more accurate estimates, or at least equivalent ones, if no better solution exists than that found by deterministic approach. The mixR package uses k-means for initialisation, a middle ground between deterministic and random approaches. While k-means is more efficient than random initialisation and often effective for normal FMMs, it may miss optimal solutions due to its assumption of spherical clusters for non-normal FMMs. Nonetheless, in our study, mixR provided good FMM estimates, confirming the practical value of k-means in this context.
To summarise, with recent improvements, the REBMIX algorithm has become more competitive for non-overlapping and moderately overlapping FMMs. Our future work will focus on enhancing REBMIX’s performance in highly overlapping scenarios, where k-means and random initialisation methods still lead the field [25]. We also plan to investigate kernel density estimation preprocessing within the REBMIX framework more deeply. The current implementation in the rebmix package uses radial basis function kernels, with the bandwidth either specified by the user or selected through an iterative search based on the chosen information criterion, such as BIC. Future research should explore alternative kernel types and develop more robust bandwidth selection strategies. Finally, this study opens several directions for further advancement in statistical analysis. The improved REBMIX&EM algorithm could be extended to support more complex parametric families, and adapted for use with multivariate reliability data, time-varying covariates, or censored observations. These features are commonly encountered in industrial systems.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/math13101605/s1.

Author Contributions

Conceptualization, M.N., S.O., J.K. and B.P.; methodology, M.N., S.O., J.K. and B.P.; software, M.N.; validation, M.N., S.O., J.K. and B.P.; formal analysis, M.N.; investigation, M.N., S.O., J.K. and B.P.; resources, M.N., S.O., J.K. and B.P.; writing—original draft preparation, M.N., S.O., J.K. and B.P.; visualization, M.N., S.O., J.K. and B.P.; supervision, M.N., S.O., J.K. and B.P.; funding acquisition, M.N. and J.K. All authors have read and agreed to the published version of the manuscript.

Funding

The authors acknowledge financial support from the Slovenian Research and Innovation Agency (research core funding No. P2-0182 entitled Development Evaluation).

Data Availability Statement

The original contributions presented in this study are included in the article/Supplementary Materials. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A

Appendix A.1. Rough Component Parameters

The rough component parameters [35] are derived by the optimisation method of Lagrange multiplier
Λ ( θ l , λ l ) = + f ( y | θ l ) log ( f ( y | θ l ) ) d y + λ l log ( f ( y = y m | θ l ) / f l m )
which provides a strategy for entropy maximisation subject to the logarithm of (2), (3) or (4). The rough lognormal component parameters can therefore be determined numerically by solving the following equation
1 1 λ l + log ( λ l ( λ l 1 ) ) + 2 log ( 2 π f l m y m ) = 0 ,
where
μ l = λ l 1 + log ( y m ) ,
σ l = λ l ( λ l 1 ) .
Equation (A2) has no solution within the range 0 λ l 1 . If left hand side of Equation (A2) is positive for small positive number ϵ (e.g., ϵ = 1.0 × 10 5 ), then it is assumed that the solution is λ l = 1 + ϵ . Otherwise, λ l = 1 + ϵ is used as an initial guess for root finding methods such as Newton–Raphson.
Similarly, the rough Weibull component parameters can be determined by solving
α l 1 λ l e 1 α l f l m y m e = 0 ,
with
λ l = α l β l ,
β l = α l + γ + log α l 1 α l ,
θ l = y m α l α l 1 1 β l ,
β l > 0 .
To avoid numerical problems, the minimum value of β was set to β min = 0.15 , which corresponds to α min = 1.234332 . If Equation (A5) returns a value greater than or equal to zero, then α l is set to α min . Otherwise, α l = 1.3349695 is used as the initial estimate, which corresponds to the maximum of left hand side expression of Equation (A5). The optimum value of α l is then determined using a root-finding method.
Finally, the rough gamma component parameters result from
1 2 log ( β l ) + β l log α l 1 α l + 1 α l log ( 2 π f l m y m ) = 0 ,
with
β l = 1 + α l 1 + 2 α l log α l 1 α l ,
λ l = α l β l ,
θ l = y m λ l α l 1 ,
β l > 0 .
The minimum value of β is also set here to β min = 0.15 , which corresponds to α min = 1.000775 . If left hand side expression of Equation (A10) returns a value less than or equal to zero, then α l = α min . Otherwise, the initial estimate for α l = α min . Then the root finding takes place as above. Equations (A10) and (A11) were derived by approximating the digamma function as ψ ( β l ) log ( β l ) 1 / ( 2 β l ) . In addition, the logarithm of the gamma function was approximated using Stirling’s approximation, log ( Γ [ β l ] ) log ( 2 π ) log ( β l ) / 2 + β l log ( β l ) β l . For more details on the global mode position y m and its empirical density f l m see Ref. [35]. The estimation of the rough component parameters is robust and not susceptible to numerical instability.

Appendix A.2. Enhanced Component Parameters

Maximum likelihood estimation (MLE) is employed to obtain enhanced component parameters. This is achieved by maximising the likelihood function
log L ( θ l ) = j = 1 n k l j log ( f ( y j | θ l ) .
The enhanced lognormal component parameters for the kernel density estimation and the k-nearest neighbour can be derived as follows
μ l = 1 n l j = 1 n k l j log ( y j ) ,
σ l 2 = 1 n l j = 1 n k l j log ( y j ) 2 μ l 2 .
Similarly, enhanced Weibull component parameters yield from
n l β l + j = 1 n k l j log ( y j ) n l j = 1 n k l j y j β l log ( y j ) j = 1 n k l j y j β l = 0 ,
θ l β l = 1 n l j = 1 n k l j y j β l .
Finally, the enhanced gamma component parameters are obtained by applying a root-finding method to
f ( β l ) = ψ ( β l ) + log ( θ l ) 1 n l j = 1 n k l j log ( y j ) = 0 ,
θ l = 1 β l 1 n l j = 1 n k l j y j .
If the index number of observations n is replaced by the number of bins v and y j by y ¯ j , the equations of this section are also valid for the histogram preprocessing. For further details, e.g., on the frequencies k l j and the number of observations n l in the class l, see [35].
The estimation of the enhanced component parameters can be unstable, which can lead to one or more component densities approaching singularity. To check whether a singularity exists, the variances for the rough var R ( y ) and the enhanced var E ( y ) component parameters are calculated. If var E ( y ) < m var var R ( y ) , the rough component parameters are regarded as the enhanced component parameters. The variance multiplier is set to m var = 0.0625 in rebmix.

Appendix A.3. First and Second Moment Calculation

Immediately after estimating the enhanced component parameters, the first moment m l and the second moment V l are calculated. For the lognormal parametric family, these are given by
m l = e μ l + σ l 2 2 ,
V l = e 2 μ l + 2 σ l 2 .
For the Weibull parametric family, we have
m l = θ l Γ [ 1 + 1 / β l ] ,
V l = θ l 2 Γ [ 1 + 2 / β l ] ,
and for the gamma parametric family
m l = θ l β i l ,
V l = θ l 2 β l ( 1 + β l ) .
These values serve as initial estimates for the Bayesian mixture parameter optimisation.

Appendix A.4. EM Mixture Parameters

The EM algorithm is composed of two key steps: the Expectation (E) step and the Maximisation (M) step. During the E step, the posterior probabilities are calculated as follows
τ l j ( t + 1 ) = w l ( t ) f ( y j | θ l ( t ) ) l ˜ = 1 c w l ˜ ( t ) f ( y j | θ l ˜ ( t ) ) ,
for j = 1 , , n , where t denotes the current iteration number. During the M step, the parameters are updated by maximising the complete data log-likelihood, as outlined in [18]. Consequently, the component weight is given by
w l ( t + 1 ) = 1 n j = 1 n τ l j ( t + 1 ) .
The lognormal parameters are computed as
μ l ( t + 1 ) = j = 1 n τ l j ( t + 1 ) log ( y j ) n w l ( t + 1 ) ,
σ l ( t + 1 ) 2 = j = 1 n τ l j ( t + 1 ) log ( y j ) 2 n w l ( t + 1 ) μ l ( t + 1 ) 2 .
The Weibull parameters are determined as
n w l ( t + 1 ) β l ( t + 1 ) + j = 1 n τ l j ( t + 1 ) log ( y j ) n w l ( t + 1 ) j = 1 n τ l j ( t + 1 ) y j β l ( t + 1 ) log ( y j ) j = 1 n τ l j ( t + 1 ) y j β l ( t + 1 ) = 0 ,
θ l ( t + 1 ) = j = 1 n τ l j ( t + 1 ) y j β l ( t + 1 ) n w l ( t + 1 ) 1 β l ( t + 1 ) .
Finally, the gamma parameters are given by
ψ ( β l ( t + 1 ) ) + log ( θ l ( t + 1 ) ) 1 n w l ( t + 1 ) j = 1 n τ l j ( t + 1 ) log ( y j ) = 0 ,
θ l ( t + 1 ) = 1 β l ( t + 1 ) 1 n w l ( t + 1 ) j = 1 n τ l j ( t + 1 ) y j .
The equations in Appendix A are implemented in the rebmix package exactly as presented. However, we found that, for instance, modifying Equation (A32) for f ( β l ( t + 1 ) ) by dividing it with a factor of n w l ( t + 1 ) can result in a slightly different estimate for β l ( t + 1 ) than when solved as originally written. We believe that this discrepancy arises from the accumulation of numerical errors that occur in mathematical operations with very small numbers.
The initial parameter set for the EM algorithm is derived from the Bayesian mixture parameter optimisation. If the EM parameter estimation fails due to problems such as singularities, REBMIX&EM still provides a finite set of FMM parameters based on Bayesian optimisation, which is not susceptible to numerical problems.

References

  1. Ramezani, R.; Clemente, J.A.; Franco, F.J. Analytical reliability estimation of SRAM-based FPGA designs against single-bit and multiple-cell upsets. Reliab. Eng. Syst. Saf. 2020, 202, 107036. [Google Scholar] [CrossRef]
  2. Rentong, C.; Zhang, C.; Shaoping, W.; Yujie, Q. Reliability estimation of mechanical seals based on bivariate dependence analysis and considering model uncertainty. Chin. J. Aeronaut. 2021, 34, 554–572. [Google Scholar] [CrossRef]
  3. Yamamoto, A.Y.; Ababei, C. Unified reliability estimation and management of NoC based chip multiprocessors. Microprocess Microsyst. 2014, 38, 53–63. [Google Scholar] [CrossRef]
  4. Davila-Frias, A.; Yodo, N.; Le, T.; Yadav, O.P. A deep neural network and Bayesian method based framework for all-terminal network reliability estimation considering degradation. Reliab. Eng. Syst. Saf. 2023, 229, 108881. [Google Scholar] [CrossRef]
  5. Zhu, T. Reliability estimation for two-parameter Weibull distribution under block censoring. Reliab. Eng. Syst. Saf. 2020, 203, 107071. [Google Scholar] [CrossRef]
  6. Kumari, R.; Tripathi, Y.M.; Sinha, R.K.; Wang, L. Reliability estimation for bathtub-shaped distribution under block progressive censoring. Math. Comput. Simul. 2023, 213, 237–260. [Google Scholar] [CrossRef]
  7. Ding, C.; Wei, P.; Shi, Y.; Liu, J.; Broggi, M.; Beer, M. Sampling and active learning methods for network reliability estimation using K-terminal spanning tree. Reliab. Eng. Syst. Saf. 2024, 250, 110309. [Google Scholar] [CrossRef]
  8. Wang, J.; Meng, B.; Zhang, L.; Yu, C. Degradation modeling and reliability estimation for mechanical transmission mechanism considering the clearance between kinematic pairs. Reliab. Eng. Syst. Saf. 2024, 247, 110093. [Google Scholar] [CrossRef]
  9. Liu, D.; Wang, S. Reliability estimation from lifetime testing data and degradation testing data with measurement error based on evidential variable and Wiener process. Reliab. Eng. Syst. Saf. 2021, 205, 107231. [Google Scholar] [CrossRef]
  10. Ma, Z.; Wang, S.; Ruiz, C.; Zhang, C.; Liao, H.; Pohl, E. Reliability estimation from two types of accelerated testing data considering measurement error. Reliab. Eng. Syst. Saf. 2020, 193, 106610. [Google Scholar] [CrossRef]
  11. Teng, D.; Feng, Y.W.; Lu, C.; Keshtegar, B.; Xue, X.F. Generative adversarial surrogate modeling framework for aerospace engineering structural system reliability design. Aerosp. Sci. Technol. 2024, 144, 108781. [Google Scholar] [CrossRef]
  12. Chen, J.; Chen, Z.; Jiang, W.; Guo, H.; Chen, L. A Reliability-Based Design Optimization Strategy Using Quantile Surrogates by Improved PC-Kriging. Reliab. Eng. Syst. Saf. 2024, 253, 110491. [Google Scholar] [CrossRef]
  13. Charruau, S.; Guerin, F.; Dominguez, J.H.; Berthon, J. Reliability estimation of aeronautic component by accelerated tests. Microelectron. Reliab. 2006, 46, 1451–1457. [Google Scholar] [CrossRef]
  14. Nagode, M.; Oman, S.; Klemenc, J.; Panić, B. Gumbel mixture modelling for multiple failure data. Reliab. Eng. Syst. Saf. 2023, 230, 108946. [Google Scholar] [CrossRef]
  15. Li, M.; Wang, Z. Surrogate model uncertainty quantification for reliability-based design optimization. Reliab. Eng. Syst. Saf. 2019, 192, 106432. [Google Scholar] [CrossRef]
  16. Jiang, R.; Zuo, M.; Li, H.X. Weibull and inverse Weibull mixture models allowing negative weights. Reliab. Eng. Syst. Saf. 1999, 66, 227–234. [Google Scholar] [CrossRef]
  17. Jiang, R.; Murthy, D.; Ji, P. Models involving two inverse Weibull distributions. Reliab. Eng. Syst. Saf. 2001, 73, 73–81. [Google Scholar] [CrossRef]
  18. McLachlan, G.; Peel, D. Finite Mixture Models; Wiley Series in Probability and Statistics: New York, NY, USA, 2000. [Google Scholar]
  19. Puppo, L.; Pedroni, N.; Di Maio, F.; Bersano, A.; Bertani, C.; Zio, E. A Framework based on Finite Mixture Models and Adaptive Kriging for Characterizing Non-Smooth and Multimodal Failure Regions in a Nuclear Passive Safety System. Reliab. Eng. Syst. Saf. 2021, 216, 107963. [Google Scholar] [CrossRef]
  20. Li, M.; Wang, Z. Heterogeneous uncertainty quantification using Bayesian inference for simulation-based design optimization. Struct. Saf. 2020, 85, 101954. [Google Scholar] [CrossRef]
  21. Hu, W.; Qian, Q. Small data reliability analysis in concrete three-point bending tests: A Weibull mixture model approach based on Weibull fracture theory. Eng. Fract. Mech. 2024, 309, 110344. [Google Scholar] [CrossRef]
  22. Jia, D.W.; Wu, Z.Y. Structural reliability analysis under stochastic seismic excitations and multidimensional limit state based on gamma mixture model and copula function. Probabilistic Eng. Mech. 2024, 76, 103621. [Google Scholar] [CrossRef]
  23. Yu, J.; Li, Q.; Du, Y.; Wang, R.; Li, R.; Guo, D. Voltage over-limit risk assessment of wind power and photovoltaic access distribution system based on day-night segmentation and Gaussian mixture model. Energy Rep. 2024, 12, 2812–2823. [Google Scholar] [CrossRef]
  24. Chan, J.; Papaioannou, I.; Straub, D. Bayesian improved cross entropy method with categorical mixture models for network reliability assessment. Reliab. Eng. Syst. Saf. 2024, 252, 110432. [Google Scholar] [CrossRef]
  25. Chassagnol, B.; Bichat, A.; Boudjeniba, C.; Wuillemin, P.H.; Guedj, M.; Gohel, D.; Nuel, G.; Becht, E. Gaussian Mixture Models in R. R J. 2023, 15, 56–76. [Google Scholar] [CrossRef]
  26. Zhang, H.; Swallow, B.; Gupta, M. Bayesian hierarchical mixture models for detecting non-normal clusters applied to noisy genomic and environmental datasets. Aust. N. Z. J. Stat. 2022, 64, 313–337. [Google Scholar] [CrossRef]
  27. Liu, C.; Li, H.C.; Fu, K.; Zhang, F.; Datcu, M.; Emery, W.J. Bayesian estimation of generalized gamma mixture model based on variational em algorithm. Pattern Recognit. 2019, 87, 269–284. [Google Scholar] [CrossRef]
  28. Zhang, X.; Barnes, S.; Golden, B.; Myers, M.; Smith, P. Lognormal-based mixture models for robust fitting of hospital length of stay distributions. Oper. Res. Health Care 2019, 22, 100184. [Google Scholar] [CrossRef]
  29. Xia, H.; Ni, Y.; Wong, K.; Ko, J. Reliability-based condition assessment of in-service bridges using mixture distribution models. Comput. Struct. 2012, 106, 204–213. [Google Scholar] [CrossRef]
  30. Fernández, A.J. Gamma Reliability Test Times With Minimal Costs and Limited Risks. IEEE Trans. Reliab. 2022, 71, 555–563. [Google Scholar] [CrossRef]
  31. Tan, X.; Xie, L. Fatigue Reliability Evaluation Method of a Gear Transmission System Under Variable Amplitude Loading. IEEE Trans. Reliab. 2019, 68, 599–608. [Google Scholar] [CrossRef]
  32. Panić, B.; Klemenc, J.; Nagode, M. Improved initialization of the em algorithm for mixture model parameter estimation. Mathematics 2020, 8, 373. [Google Scholar] [CrossRef]
  33. MacQueen, J.B. Some Methods for Classification and Analysis of Multivariate Observations. In Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability; University of California Press: Berkeley, CA, USA, 1967; Volume 1, pp. 281–297. [Google Scholar]
  34. Forgy, E.W. Cluster analysis of multivariate data: Efficiency versus interpretability of classifications. Biometrics 1965, 21, 768–769. [Google Scholar]
  35. Nagode, M. Finite Mixture Modeling via REBMIX. J. Algorithms Optim. 2015, 3, 14–28. [Google Scholar] [CrossRef]
  36. Dempster, A.P.; Laird, N.M.; Rubin, D.B. Maximum likelihood from incomplete data via the EM algorithm. J. R. Stat. Soc. Ser. B 1977, 39, 1–38. [Google Scholar] [CrossRef]
  37. Nagode, M.; Panić, B.; Klemenc, J.; Oman, S. Fault detection and classification with the rebmix R package. Comput. Ind. Eng. 2023, 185, 109628. [Google Scholar] [CrossRef]
  38. Nagode, M.; Fajdiga, M. The REBMIX Algorithm for the Univariate Finite Mixture Estimation. Commun. Stat.—Theory Methods 2011, 40, 876–892. [Google Scholar] [CrossRef]
  39. Gruen, B.; Leisch, F.; Sarkar, D.; Mortier, F.; Picard, N. flexmix: Flexible Mixture Modeling. R Package Version 2.3-19. 2023. Available online: https://cran.r-project.org/web/packages/flexmix/index.html (accessed on 2 February 2025).
  40. Leisch, F. FlexMix: A General Framework for Finite Mixture Models and Latent Class Regression in R. J. Stat. Softw. 2004, 11, 1–18. [Google Scholar] [CrossRef]
  41. Blostein, M.; Miljkovic, T. ltmix: Left-Truncated Mixtures of Gamma, Weibull, and Lognormal Distributions. R Package Version 0.2.2. 2024. Available online: https://cran.r-project.org/web/packages/ltmix/index.html (accessed on 2 February 2025).
  42. Macdonald, P.; Du, J. mixdist: Finite Mixture Distribution Models. R Package Version 0.5-5. 2018. Available online: https://cran.r-project.org/web/packages/mixdist/index.html (accessed on 2 February 2025).
  43. Yu, Y. mixR: Finite Mixture Modeling for Raw and Binned Data. R Package Version 0.2.0. 2021. Available online: https://cran.r-project.org/web/packages/mixR/index.html (accessed on 2 February 2025).
  44. Young, D.; Benaglia, T.; Chauveau, D.; Hunter, D.; Cheng, K.; Elmore, R.; Hettmansperger, T.; Thomas, H.; Xuan, F. mixtools: Tools for Analyzing Finite Mixture Models. R Package Version 2.0.0. 2022. Available online: https://cran.r-project.org/web/packages/mixtools/index.html (accessed on 2 February 2025).
  45. Benaglia, T.; Chauveau, D.; Hunter, D.R.; Young, D. mixtools: An R Package for Analyzing Finite Mixture Models. J. Stat. Softw. 2009, 32, 1–29. [Google Scholar] [CrossRef]
  46. Teimouri, M. ForestFit: Statistical Modelling for Plant Size Distributions. R Package Version 2.2.3. 2023. Available online: https://cran.r-project.org/web/packages/ForestFit/index.html (accessed on 2 February 2025).
  47. Backblaze. Hard Drive Data and Stats. Available online: https://www.backblaze.com/cloud-storage/resources/hard-drive-test-data (accessed on 6 May 2025).
  48. Tomer, V.; Sharma, V.; Gupta, S.; Singh, D.P. Hard disk drive failure prediction using SMART attribute. Mater. Today Proc. 2021, 46, 11258–11262. [Google Scholar] [CrossRef]
  49. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2024. [Google Scholar]
Figure 1. Flowchart of REBMIX&EM.
Figure 1. Flowchart of REBMIX&EM.
Mathematics 13 01605 g001
Figure 2. Rough component parameter estimation. The left plot shows the FMM estimation problem with non-overlapping components. The middle plot shows the FMM estimation problem with moderately overlapping components, and the right plot shows the estimation problem with heavily overlapping components of the FMM.
Figure 2. Rough component parameter estimation. The left plot shows the FMM estimation problem with non-overlapping components. The middle plot shows the FMM estimation problem with moderately overlapping components, and the right plot shows the estimation problem with heavily overlapping components of the FMM.
Mathematics 13 01605 g002
Figure 3. Block diagram: (a) serial system, (b) high-level redundant system, (c) low-level redundant system, and (d) linked system.
Figure 3. Block diagram: (a) serial system, (b) high-level redundant system, (c) low-level redundant system, and (d) linked system.
Mathematics 13 01605 g003
Figure 4. Weibull component probability densities for the linked system, with the exact system time-to-failure probability density shown by the black line and the Monte Carlo simulated sample represented by circles. Parameters: random seed = 3 , system configuration = ( d ) , n = 100 .
Figure 4. Weibull component probability densities for the linked system, with the exact system time-to-failure probability density shown by the black line and the Monte Carlo simulated sample represented by circles. Parameters: random seed = 3 , system configuration = ( d ) , n = 100 .
Mathematics 13 01605 g004
Figure 5. Weibull component reliabilities for the linked system, with the exact system reliability shown by the black line. Parameters: random seed = 3 , system configuration = ( d ) , n = 100 .
Figure 5. Weibull component reliabilities for the linked system, with the exact system reliability shown by the black line. Parameters: random seed = 3 , system configuration = ( d ) , n = 100 .
Mathematics 13 01605 g005
Figure 6. Procedure used for obtaining data for result analysis.
Figure 6. Procedure used for obtaining data for result analysis.
Mathematics 13 01605 g006
Figure 7. Comparison of packages for different parametric families based on the number of components.
Figure 7. Comparison of packages for different parametric families based on the number of components.
Mathematics 13 01605 g007
Figure 8. Gamma component probability densities for the low-level redundant configuration, with the exact system probability density shown by the black line and the Monte Carlo simulated sample represented by circles. Parameters: random seed = 1 , system configuration = ( c ) , n = 500 .
Figure 8. Gamma component probability densities for the low-level redundant configuration, with the exact system probability density shown by the black line and the Monte Carlo simulated sample represented by circles. Parameters: random seed = 1 , system configuration = ( c ) , n = 500 .
Mathematics 13 01605 g008
Figure 9. Lognormal component probability densities for the high-level redundant configuration, with the exact system probability density shown by the black line and the Monte Carlo simulated sample represented by circles. Parameters: random seed = 19 , system configuration = ( b ) , n = 1000 .
Figure 9. Lognormal component probability densities for the high-level redundant configuration, with the exact system probability density shown by the black line and the Monte Carlo simulated sample represented by circles. Parameters: random seed = 19 , system configuration = ( b ) , n = 1000 .
Mathematics 13 01605 g009
Figure 10. Histogram of Backblaze HDDs and SSDs time-to-failure data set.
Figure 10. Histogram of Backblaze HDDs and SSDs time-to-failure data set.
Mathematics 13 01605 g010
Figure 11. Probability density function estimates of the best-performing FMMs for different parametric families. Points represent the corresponding histogram estimates.
Figure 11. Probability density function estimates of the best-performing FMMs for different parametric families. Points represent the corresponding histogram estimates.
Mathematics 13 01605 g011
Table 1. Comparison of packages for different preprocessing based on mean BIC (bold values represent the best values obtained).
Table 1. Comparison of packages for different preprocessing based on mean BIC (bold values represent the best values obtained).
PreprocessingflexmixltmixmixdistmixRmixtoolsrebmix
histogram351835163520353346713510
KDE&histogram 3510
KDE 3518
binned 3516
Table 2. Comparison of packages for different preprocessing based on mean calculation time [s] (bold values represent the best values obtained).
Table 2. Comparison of packages for different preprocessing based on mean calculation time [s] (bold values represent the best values obtained).
PreprocessingflexmixltmixmixdistmixRmixtoolsrebmix
histogram2.4112.132.745.4110.290.27
KDE&histogram 0.27
KDE 0.49
binned 0.01
Table 3. Comparison of rebmix using binned input with other packages for different parametric families based on Δ BIC (bold values represent the best values obtained).
Table 3. Comparison of rebmix using binned input with other packages for different parametric families based on Δ BIC (bold values represent the best values obtained).
Parametric FamilyflexmixltmixmixdistmixRmixtools
Weibull908614869NA
gamma−14-266−30−14
lognormal20-20628NA
Table 4. Comparison of rebmix using binned input with other packages for different parametric families based on Δ time (bold values represent the best values obtained).
Table 4. Comparison of rebmix using binned input with other packages for different parametric families based on Δ time (bold values represent the best values obtained).
Parametric FamilyflexmixltmixmixdistmixRmixtools
Weibull320320320315NA
gamma320320320320320
lognormal320320320318NA
Table 5. Comparison of packages for different parametric families and sample sizes based on mean BIC (bold values represent the best values obtained).
Table 5. Comparison of packages for different parametric families and sample sizes based on mean BIC (bold values represent the best values obtained).
Parametric FamilynflexmixltmixmixRmixdistmixtoolsrebmix
Weibull50365 (63)365 (63)NA (NA)367 (63)NA (NA)362 (63)
100751 (105)750 (104)NA (NA)751 (105)NA (NA)747 (104)
5003566 (634)3564 (633)3564 (633)3568 (634)NA (NA)3563 (633)
10007263 (1063)7262 (1062)7262 (1063)7270 (1066)NA (NA)7267 (1063)
gamma50578 (55)577 (55)576 (55)578 (55)578 (55)576 (55)
1001162 (107)1162 (107)1162 (108)1163 (107)1162 (107)1162 (109)
5005600 (625)5600 (625)5600 (625)5600 (624)5600 (625)5596 (619)
100011,346 (1099)11,346 (1099)11,346 (1099)11,346 (1099)11,346 (1099)11,334 (1099)
lognormal50364 (69)356 (75)364 (69)365 (70)NA (NA)363 (69)
100709 (130)704 (132)709 (130)710 (130)NA (NA)708 (130)
5003550 (616)3545 (614)3547 (612)3550 (614)NA (NA)3550 (615)
10006962 (1085)6961 (1085)6961 (1085)6976 (1110)NA (NA)6966 (1085)
Table 6. Comparison of packages for different parametric families and sample sizes based on mean calculation time [s] (bold values represent the best values obtained).
Table 6. Comparison of packages for different parametric families and sample sizes based on mean calculation time [s] (bold values represent the best values obtained).
Parametric FamilynflexmixltmixmixRmixdistmixtoolsrebmix
Weibull501.27 (0.37)1.86 (1.00)NA (NA)2.97 (0.76)NA (NA)0.01(0.01)
1001.74 (0.64)3.72 (2.23)NA (NA)3.35 (0.70)NA (NA)0.01 (0.02)
5004.22 (2.61)21.66 (9.63)12.49 (1.62)3.46 (0.79)NA (NA)0.01 (0.01)
10006.05 (4.46)35.77 (15.81)30.25 (44.93)2.91 (1.00)NA (NA)0.01 (0.01)
gamma501.55 (0.60)2.13 (3.06)2.13 (5.09)2.30 (0.60)2.69 (0.23)0.01 (0.01)
1002.13 (1.04)3.12 (1.76)0.87 (2.90)2.67 (0.51)3.68 (0.16)0.01 (0.01)
5004.54 (3.99)14.77 (4.83)4.22 (0.97)3.05 (0.36)12.05 (1.27)0.01 (0.01)
10005.54 (5.28)23.88 (7.91)9.24 (1.04)3.12 (0.33)22.75 (1.74)0.01 (0.01)
lognormal500.42 (0.13)1.32 (0.71)0.07 (0.06)1.96 (0.56)NA (NA)0.01 (0.01)
1000.43 (0.18)2.86 (1.50)0.16 (0.09)2.13 (0.46)NA (NA)0.01 (0.01)
5000.55 (0.29)11.90 (4.93)1.09 (0.39)2.51 (0.44)NA (NA)0.01 (0.01)
10000.48 (0.33)22.58 (9.07)2.09 (0.17)2.51 (0.29)NA (NA)0.01 (0.01)
Table 7. BIC values and corresponding estimated number of components in the FMMs for different packages and parametric families (bold values represent the best values obtained).
Table 7. BIC values and corresponding estimated number of components in the FMMs for different packages and parametric families (bold values represent the best values obtained).
Parametric FamilyflexmixltmixmixRmixdistmixtoolsrebmix
Weibull22,797 (3)22,759 (4)22,692 (5)22,854 (4)NA (NA)22,692 (5)
gamma22,727 (5)22,738 (5)22,691 (5)22,774 (5)22,768 (5)22,676 (5)
lognormal22,819 (4)22,749 (5)22,689 (5)23,180 (2)NA (NA)22,689 (5)
Table 8. Computation times across different packages and parametric families (bold values represent the best values obtained).
Table 8. Computation times across different packages and parametric families (bold values represent the best values obtained).
Parametric FamilyflexmixltmixmixRmixdistmixtoolsrebmix
Weibull9.44614.590.7301.507NA0.200
gamma15.26112.570.6310.89213.1310.072
lognormal0.3845.1410.1301.000NA0.034
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Nagode, M.; Oman, S.; Klemenc, J.; Panić, B. Finite Mixture Models: A Key Tool for Reliability Analyses. Mathematics 2025, 13, 1605. https://doi.org/10.3390/math13101605

AMA Style

Nagode M, Oman S, Klemenc J, Panić B. Finite Mixture Models: A Key Tool for Reliability Analyses. Mathematics. 2025; 13(10):1605. https://doi.org/10.3390/math13101605

Chicago/Turabian Style

Nagode, Marko, Simon Oman, Jernej Klemenc, and Branislav Panić. 2025. "Finite Mixture Models: A Key Tool for Reliability Analyses" Mathematics 13, no. 10: 1605. https://doi.org/10.3390/math13101605

APA Style

Nagode, M., Oman, S., Klemenc, J., & Panić, B. (2025). Finite Mixture Models: A Key Tool for Reliability Analyses. Mathematics, 13(10), 1605. https://doi.org/10.3390/math13101605

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop