1 Introduction

The fuzzy time series model is widely used. It has been applied to temperature prediction [1] forecasting of tourism demand [2], and prediction of shipping index [3]. The fuzzy time series model was first proposed by Song and Chissom [4, 5]. Although, it has since received much attention from researchers, it has a complex and time-consuming calculation process. Hence, Chen [6] presented a simplified model to overcome this disadvantage, but it still has some defects for precision. Yu [7] combined fuzzy time series and weights to adequately distribute variant weights to different fuzzy relations and time series, and added a weight matrix to compute prediction values with higher accuracy. Huarng [8] found that the length of interval has a significant effect on prediction results and thus suggested averaging the lengths instead of randomly assigning the intervals.

The above-mentioned forecasting models use fixed interval and degrade the forecasting accuracy. Some researchers have applied evolutionary computation to adjust the intervals. For example, Huarng [8] presented a high-order fuzzy time series for forecasting the enrollments of the University of Alabama, in which the length of each interval in the universe of discourse is tuned by genetic algorithms to enhance the prediction rate. Kuo et al. [10] presented a hybrid forecasting model called HPSO based on fuzzy time series and particle swarm optimization, which is used to determine the fuzzy intervals to improve accuracy. Huang et al. [11, 12] proposed a hybrid of fuzzy time series and particle swarm optimization to improve the forecasting accuracy of fuzzy time series, where the global information of fuzzy logical relationships is aggregated with the local information of the latest fuzzy fluctuation to find the forecasting value in fuzzy time series.

However, existing fuzzy time series methods have the drawbacks of the fixed intervals and the forecasting accuracy. In this study, an efficient forecasting model based on improved fuzzy time series (IFTS) and modified group search optimizer (GSO) is proposed for determining the intervals and increasing forecasting accuracy. IFTS can efficiently forecast an increase or decrease in subsequent predicted data from the ratio value in the fuzzy logical relationship. The modified GSO can effectively determine the lengths of intervals. Eventually, the enrollments of the University of Alabama the enrollments of a university of technology in central Taiwan, and the Taiwan Stock Exchange Capitalization Weighted Stock Index (TAIEX) are used to verify the effectiveness of the proposed model in terms of forecasting accuracy.

The major contributions of this study comprise the following aspects:

  1. (1)

    An effective improved fuzzy time series model is proposed. The adjacent data in time series is calculated to obtain the ratio value. Every fuzzy logical relationship has a corresponding ratio value. Since the fuzzy logical relationship group consists of the same left-hand side of the fuzzy logical relationship, the ratio values are accumulated and then the average ratio (AR) value is obtained. Therefore, the forecasting value is received by means of the current actual data and the AR.

  2. (2)

    A modified group search optimizer (GSO) is proposed for determining the intervals and increasing forecasting accuracy. In a traditional GSO, except for a producer, the remaining members are selected as scroungers or rangers by a fixed ratio (i.e., 80:20). In contrast, the proposed method adopts a dynamic ratio to determine the incoming member to be the scroungers or the rangers.

The rest of this paper is organized as follows. Section 2 introduces the concept of fuzzy time series. Section 3 describes the proposed model and shows the forecasting results in the enrollments of universities. Section 4 presents the forecasting results for TAIEX. Section 5 gives the conclusions.

2 Review of fuzzy time series

Fuzzy time series (FTS) model was proposed by Song and Chissom [4] based on Zadeh’s [13] fuzzy logic theory. It is defined as follows.

Let U be the universe of discourse, U = {u 1 u 2 ,⋯, u n } and let A be a fuzzy set in the universe of discourse U; then A i (i = 1, 2, ⋯, n) is defined as follows

$$ \mathrm{A}_{i} = \frac{f_{A_{i}}\left( u_{\mathrm{1}} \right)}{u_{\mathrm{1}}}\mathrm{+}\frac{f_{A_{i}}\left( u_{\mathrm{2}} \right)}{u_{\mathrm{2}}} + {\cdots} +\frac{f_{A_{i}}\left( u_{n} \right)}{u_{n}} $$
(1)

where \(f_{A_{i}}\) is the membership function of A i and \(f_{A_{i}}\left (u_{\mathrm {1}} \right )\) indicates the degree of membership of u 1 in the fuzzy set A i

Let universe of discourse Z(t)(t = ⋯, 0, 1, 2 ⋯) be a subset of R, and let fuzzy set f i (t)(i = 1, 2, ⋯) be defined in Z(t) I fF(t) is a collection of f i (i = 1, 2,⋯) then F(t) is called a fuzzy time series of Z(t)(t = ⋯, 0, 1, 2⋯).

If R(t, t − 1) is a first-order model of F(t), let F(t) = F(t − 1) ∘ R(t t − 1), which indicates that F(t) is caused by F(t − 1), where the symbol “ ∘” denotes the Max-Min composition operator. R(t, t − 1) is called the fuzzy logical relationship (FLR), and R(t t − 1) is a fuzzy relation between F(t) and F(t − 1).

If F(t − 1) = A i and F(t) = A j , where F(t) is caused by F(t − 1), then A i A j denotes the FLR.

3 Proposed forecasting model

This section presents the proposed hybrid forecasting model that consists of IFTS and the modified GSO as a modified forecasting model to upgrade the accuracy rates of the prediction. The modified GSO avoids the drawback of a traditional GSO [14] in which the scroungers and rangers are randomly selected, and the members cannot be ensured to become the rangers for breaking away local optimum.

3.1 Modified group search optimizer

GSOs are widely applied in various fields [1518] because they used fewer fixed parameters and their best members do not converge to a local optimum. In an n-dimensional search space, the ith member at the kth iteration has a current position \({X_{i}^{k}}\mathrm {\in }R^{n}\) a head angle \({\varphi _{i}^{k}}=(\varphi _{i\mathrm {1}}^{k}\mathrm {,\cdots }\varphi _{i_{(z\mathrm {-1})}}^{k}) \in R^{n\mathrm {-1}}\) and a head direction \({D_{i}^{k}}\left ({\varphi _{i}^{k}} \right )\mathrm {=}\left (d_{i_{\mathrm {1}}}^{k}\mathrm {,{\cdots } }d_{i_{y}}^{k} \right )\mathrm {\in }R^{n},\) which can be calculated from \(\varphi _{i}^{k}\) via a polar to Cartesian coordinate transformation.

$$\begin{array}{@{}rcl@{}} d_{i_{\mathrm{1}}}^{k}\mathrm{=}\prod\limits_{q\mathrm{=1}}^{n\mathrm{-1}} \cos(\varphi_{i_{q}}^{k}) \end{array} $$
(2)
$$\begin{array}{@{}rcl@{}} d_{i_{\mathrm{1}}}^{k}=\sin(\varphi_{i_{\left( y\mathrm{-1} \right)}}^{k})\centerdot \prod\nolimits_{q\mathrm{=1}}^{n\mathrm{-1}} \cos \left( \varphi_{i_{q}}^{k} \right)(j =2,{\cdots} ,n- 1) \end{array} $$
(3)
$$\begin{array}{@{}rcl@{}} d_{i_{\mathrm{1}}}^{k}\mathrm{=}\sin \left( \varphi_{i_{\left( y\mathrm{-1} \right)}}^{k} \right) \end{array} $$
(4)

The GSO consists of three different members including producers, scroungers, and rangers, in which producers execute production, scroungers involve scrounging or following, and rangers conduct random search. These three members are described in detail as below.

  1. (1)

    Producer: The producer represents the member with the best fitness value for finding the best point with the best resource. Its search behavior imitates those of animals. The search in three-dimensional space of the producer is shown in Fig. 1. If a producer scans a point that is better than the previous best point, it will move to the better one; if not, it will turn its head to a new randomly generated angle via Eq. (5) If it does not search a better angle after α iterations, it will come back to the original head angle via Eq. (6)

    $$\begin{array}{@{}rcl@{}} \varphi^{k\mathrm{+1}}\mathrm{=}\varphi^{k}\mathrm{+}r_{\mathrm{2}}\mathrm{\alpha }_{\max} \end{array} $$
    (5)
    $$\begin{array}{@{}rcl@{}} \varphi^{k\mathrm{+}a}\mathrm{=}\varphi^{k} \end{array} $$
    (6)

    where r 2 is a normally distributed random number in the range (0, 1), \(\mathrm {\alpha }_{\max }=\frac {\theta _{\max }}{2}\), where θ max is the maximum pursuit angle and αmax is the maximum turning angle; \(\theta _{\max }\mathrm {=}\frac {\pi }{a^{\mathrm {2}}}, \mathrm {\alpha =}round\sqrt {n\mathrm {+1}} \).

    The producer scans at zero degrees and then scans laterally by randomly sampling three points in the scanning field using Eqs. (7), (8) and (9), and randomly select three points. The equations are

    Zero degrees:

    $$\begin{array}{@{}rcl@{}} x_{z}\mathrm{=}{x_{p}^{k}}\mathrm{+}r_{1}l_{\max}{D_{p}^{k}}\left( \varphi^{k}\right) \end{array} $$
    (7)

    Righthand side:

    $$\begin{array}{@{}rcl@{}} x_{r}\mathrm{=}{x_{p}^{k}}\mathrm{+}r_{1}l_{max}{D_{p}^{k}}\left( \varphi^{k}\mathrm{+}\frac{r_{2}\theta_{\max}}{\mathrm{2}} \right) \end{array} $$
    (8)

    Lefthand side:

    $$\begin{array}{@{}rcl@{}} x_{l}\mathrm{=}{x_{p}^{k}}\mathrm{+}r_{1}l_{max}{D_{p}^{k}}\left( \varphi^{k}\mathrm{-}\frac{r_{2}\theta_{max}}{\mathrm{2}} \right) \end{array} $$
    (9)

    where x p is the produce, r 1 is the normally distributed random sequence in the range (-1, 1), and r 2 is a uniformly distributed random sequence in the range (0, 1). θ max denotes the maximum pursuit angle

  2. (2)

    Scroungers: The scroungers move around in the search space taking into consideration the location of the producer and the center of the group. The movement equation is

    $$\begin{array}{@{}rcl@{}} x_{i}^{k\mathrm{+1}}\mathrm{=}{x_{i}^{k}}\mathrm{+}r_{3}\mathrm{\circ }\left( {x_{p}^{k}}\mathrm{-}{x_{i}^{k}} \right) \end{array} $$
    (10)

    In Eq. (10) x i is the scroungers, r 3 is a uniform random sequence in the range (0, 1), and the symbol “ ∘” represents the entrywise product

  3. (3)

    Rangers

The rangers mainly execute random search action. As soon as the rangers randomly select an angle “ φ”, the new points are replaced according to the following equation:

$$\begin{array}{@{}rcl@{}} x_{i}^{k\mathrm{+1}}\mathrm{=}{x_{i}^{k}}\mathrm{+}l_{i}{D_{i}^{k}}\left( \varphi^{k\mathrm{+1}} \right) \end{array} $$
(11)

where x i is the rangers, and l i = ar1 ▪ l max is a random distance. l max = ∥U LD L∥, where UL and DL are the lower and upper bounds, respectively. The pseudo code of the traditional GSO algorithm is shown in Table 1.

Fig. 1
figure 1

Scanning field in three-dimensional space

Table 1 Pseudo code of the traditional GSO algorithm

In a traditional GSO, members rarely leave the local optimum when trapped. For example, if a member is the ranger and its value of each dimension is almost the same as that of the producer, it may become trapped at a local optimum point. This situation occurs because scroungers and rangers are randomly selected, which cannot ensure that the incoming member will become the ranger in order to escape the local optimum.

An optimal solution to this problem is to make all members initially rangers. After random search, if the updated fitness of the member is better than or equal to the previous one, the member will become the ranger; otherwise, the member will become the scrounger. That is if the updated fitness of the member is better than the previous fitness of the member this situation indicates the member will not fall into local optimum and turns out to be the ranger pursuing the producer. If the updated fitness of the member is not better, which will make the member easily become trapped, the member will continue to be the ranger to leave the local optimum and move back to the previous point. The proposed modified GSO provides many more chances for the members to leave the local optimum when trapped and obtains more resources than the traditional GSO does.

In a traditional GSO, a producer is selected and then incoming members are randomly selected scroungers in a ratio of 80:20. In contrast, the proposed method adopts a dynamic ratio to determine the incoming member to be the scroungers or the rangers; that is to say, in each generation, the selection result could be 60 percent are the scroungers while 40 percent are the rangers, or 70 percent are the scroungers and 30 percent are the rangers. A flowchart of the modified GSO is shown in Fig. 2.

Fig. 2
figure 2

Flowchart of the modified group search optimizer

3.2 Proposed hybrid of IFTS and modified GSO

In this subsection, the detailed procedures of the proposed forecasting model are described. The modified GSO is used to effectively determine the interval range, and IFTS is used to increase prediction accuracy. The historical enrollments of the University of Alabama are used to verify the forecasting result of the proposed method. The procedures are described as follows:

  • Step 1: Define the universe of discourse U, U = [D minD 1, D max + D 2], where D min and D max indicating the minimum and maximum value of historical data respectively and D 1 and D 2 are two appropriate values. Then, make the number of intervals n and assume that the universe of discourse U is partitioned into n intervals, with each interval denoted as u 1 u 2u n .

    Table 2 shows the historical data of enrollments of the University of Alabama. According to the table, D min = 13055 and D max = 19337. The two appropriate values are set as D 1 = 55 and D 2 = 663. Since the GSO is integrated into the forecasting model, the minimum and maximum of U are set as g 0 = (D minD 1) and g n = (D max + D 2) The initial interval of each member is [13000 20000] and initial angle φ is \(\frac {\pi }{\mathrm {4}}\).

  • Step 2: The universe of discourse U is the actual enrollments of the University of Alabama. In this step, we define the length of each interval as u 1 = (g 0 g 1], u 2 = (g 1 g 2] ⋯u 7 = (g n−1 g n ] The number of adjustable intervals, except for the upper and lower boundaries of U is n − 1. The number of intervals in the enrollment forecasting is set to n = 7; therefore, the dimension of each member is set to 6. All members are randomly selected, in which each dimension is restricted within [13000, 20000]. In the GSO, the members are coded as shown in Fig. 3. For example, if the members [14000 15000, 16000, 17000, 18000, 19000] are randomly selected, their codes are [g 1 , g 2 , g 3 , g 4 , g 5 , g 6] = [14000 15000, 16000, 17000, 18000,19000]. According to the dimension of each member and the upper and lower boundaries of the universe of discourse, the length of each interval is obtained, as shown in Table 3.

  • Step 3: Let all members be rangers.

  • Step 4: The fitness value of each member is calculated, which is defined as follows:

    $$ Fit\mathrm{=}\frac{1}{1+MSE} $$
    (12)

    where MSE is the mean square error. The definition of the fitness value is subject to the forecasting accuracy. A smaller MSE value indicates less forecasting error; that is, the higher the fitness value indicates the higher forecasting accuracy. The definition of MSE is as follows:

    $$ MSE\mathrm{=}\sum\nolimits_{i\mathrm{=1}}^{dn} (A_{i}\mathrm{-}F_{i})^{\mathrm{2}} \mathrm{/}dn $$
    (13)

    where A i and F i represent the actual value and the predicted value, respectively, and dn is the number of data points.

  • Step 5: In order to present the meaning of each range, let fuzzy set sA i 1 ≤ i ≤ 7, be linguistic values of the linguistic variable “enrollments” i.e., A 1 = (not many), A 2 = (not too many) ⋯ A 7 = (too many) as follows:

    $$\begin{array}{@{}rcl@{}} A_{\mathrm{1}}&=&\frac{\mathrm{1}}{u_{\mathrm{1}}}\mathrm{+}\frac{\mathrm{0.5}}{u_{\mathrm{2}}}\mathrm{+}\frac{\mathrm{0}}{u_{\mathrm{3}}}\mathrm{+}\frac{\mathrm{0}}{u_{\mathrm{4}}}\mathrm{+\cdots +}\frac{\mathrm{0}}{u_{7}}\\ A_{\mathrm{2}}&=&\frac{\mathrm{0.5}}{u_{\mathrm{1}}}\mathrm{+}\frac{\mathrm{1}}{u_{\mathrm{2}}}\mathrm{+}\frac{\mathrm{0.5}}{u_{\mathrm{3}}}\mathrm{+}\frac{\mathrm{0}}{u_{\mathrm{4}}}\mathrm{+\cdots +}\frac{\mathrm{0}}{u_{7}}\\ A_{\mathrm{3}}&=&\frac{\mathrm{0}}{u_{\mathrm{1}}}\mathrm{+}\frac{\mathrm{0.5}}{u_{\mathrm{2}}}\mathrm{+}\frac{\mathrm{1}}{u_{\mathrm{3}}}\mathrm{+}\frac{\mathrm{0.5}}{u_{\mathrm{4}}}\mathrm{+\cdots +}\frac{\mathrm{0}}{u_{7}}\\ &&\mathrm{{\vdots} }\\ A_{7}&=&\frac{\mathrm{0}}{u_{\mathrm{1}}}\mathrm{+}\frac{\mathrm{0}}{u_{\mathrm{2}}}\mathrm{+\cdots +}\frac{\mathrm{0}}{u_{7\mathrm{-2}}}\mathrm{+}\frac{\mathrm{0.5}}{u_{7\mathrm{-1}}}\mathrm{+}\frac{\mathrm{1}}{u_{7}} \end{array} $$
    (14)
  • Step 6: Fuzzify the historical data and find out the membership degree of each year’s enrollments belonging to each A i (i = 1, 2, ⋯, m). In this study, m is set to 7. If the maximum membership degree of one year’s enrollment is under A k , then the fuzzified enrollment for this year is treated as A k The fuzzified historical data in the second column of Table 2 are shown in the third column of Table 4. The fuzzy logical relationship from the fuzzified historical enrollments in Table 4 is shown in the second column of Table 5.

  • Step7: According to the results in Step 6, a ratio value corresponding to each fuzzy logical membership will be recorded. Every fuzzy logical relationship has a corresponding ratio value. These ratio values are listed in the third column of Table 5. The ratio values are calculated as follows:

    $$\begin{array}{@{}rcl@{}} R\mathrm{=}\left( \frac{x\left( t \right)}{x\left( t\mathrm{-1} \right)} \right) \end{array} $$
    (15)

    where x(t) and x(t-1) represent the current state of the enrollment and the next state of the enrollment, respectively.

  • Step 8: Integrate all fuzzy logical relationships to find out if any does not repeat. Then, sort out the result of unduplicated fuzzy logical relationships from the second column of Table 5, as shown in Table 6.

  • Step 9: Based on those fuzzy logical relationships in Table 6, sort out those whose left side of A i are the same as a group and assign a code for each group. Then there are 6 fuzzy logical relationship groups (FLRGs) are shown in Table 7.

  • Step 10: Create a table of forecasting rules based on the obtained corresponding fuzzy sets, FLRGs, determined conditions, and average ratio values as shown in Table 8. The average ratio value is obtained as follows:

    $$\begin{array}{@{}rcl@{}} AR\mathrm{=}\frac{\sum\nolimits_{k\mathrm{=0}}^{r} R_{k} }{r} \end{array} $$
    (16)

    where r is the number of FLRs and R k represents the kth ratio value of FLR.

  • Step 11: Conduct forecasting using

    $$\begin{array}{@{}rcl@{}} F\left( t \right)\mathrm{=}Y\left( t\mathrm{-1} \right)\mathrm{\ast}AR \end{array} $$
    (17)

    where F(t) is the forecasting value and Y(t − 1) presents the actual historical data. Then, the MSE of forecasting is obtained using Eq. (3).

  • Step 12: After obtaining MSE, assign the member whose fitness value is the largest (i.e., the smallest MSE) to be the producer. Then, Eqs. (2)–(4) are utilized to process the producer via a polar to Cartesian coordinate transformation. The producer will scan three points in the scanning field. If one of the points is better than the previous best point, the producer approaches this point; otherwise, the producer turns toward a random angle using Eq. (5). If the producer cannot obtain a better angle after α iterations, it will head back to its original angle using Eq. (6).

  • Step 13: The scrounger cadges the producer via Eq. (10).

  • Step 14: The scrounger conducts a random search using Eqs. (2)–(4) to perform a polar to Cartesian coordinate transformation and obtains a new angle via Eq. (5) It then updates its own position through Eq. (11).

  • Step 15: Based on Step 4 to Step 11, calculate the fitness values of all members.

  • Step 16: This step is used to decide whether the termination condition is satisfied. If so, the procedure is finished; if not, the procedure goes to Step 17.

  • Step 17: It is judged whether or not the updated fitness values of all members are better than before. If so, these members will become scroungers; if not, these members will become rangers and reverse their position back to the previous one. Then, the process goes back to Step 12.

Fig. 3
figure 3

The coding of members

Table 2 Enrollments of the University of Alabama
Table 3 The length of each interval
Table 4 The results of fuzzification
Table 5 Corresponding to fuzzy logical relationship and ratio values
Table 6 Unduplicated fuzzy logical relationships
Table 7 Fuzzy logical relationship group (FLRG)
Table 8 Forecasting rules

These steps describe the proposed forecasting model based on IFTS and the modified GSO. Figure 4 shows a flowchart of the proposed forecasting model.

Fig. 4
figure 4

Flowchart of the proposed forecasting model

3.3 Forecasting results of university enrollments

To verify the robustness of the proposed model, the forecasting results of university enrollments are presented through two experimental tests. One is the University of Alabama, the other is a university of technology in central Taiwan.

Example 1

Forecasting Enrollments of the University of Alabama

In the experiments, the members of GSO were set to 30, the number of iterations was 100, and the number of intervals was from 7 to 14. For each interval 100 experiments were run. The average forecasting results of these 100 experiments was used. Table 9 shows a comparison of experimental results for the traditional GSO and the proposed modified GSO.

Table 9 Comparison results of traditional and modified GSO

Recently, several researchers [2025] proposed different fuzzy time series models for solving forecast problems. Huarng [20] used heuristic models by integrating problem-specific heuristic knowledge with Chen’s model [6] to improve forecasting. Qiu et al. [21] applied ensemble technique to fuzzy time series and proved that some forecasting models [46] can be approximated by the limitation of the fuzzy weights. Gangwar and Kumar [22] proposed a forecasting method based on the nested partition in universe of discourse and the difference parameters as relations for forecasting. This algorithm minimizes the time of generating relational equations by using complex min-max composition operations and various defuzzification processes. Egrioglu et al. [23] presented a new first-order fuzzy time series model which includes both autoregressive and moving average structures. The proposed model in [23] is a time invariant model and bases on particle swarm optimization heuristic. Wang and Chen [24] proposed a frequency-weighted fuzzy time series model which considers not only the variation of the dataset but also the frequency of trend patterns. The model lacked persuasiveness in determining the universe of discourse and the linguistic length of intervals. In [24], it can deal with multiple attribute prediction and improve forecasting accuracy. Qiu et al. [25] presented a novel forecast model based on particle swarm optimization and generalized fuzzy logical relationships. They adopted particle swarm optimization to optimize the given intervals in the universe of discourse for increasing the forecasting accuracy.

In this study, to demonstrate the effectiveness of various forecast models, the forecasting performance of the proposed model was compared with that of other state-of-the-art techniques [2025]. The comparison results are shown in Table 10. In this table, the number of intervals used by each method is 7. The results show that the proposed model has the smallest forecasting error. The results of the proposed model were compared to those of other methods based on various evolutionary models. Table 11 shows the smallest mean square error for 100 experiments. This table presents the forecasting results for various numbers of intervals. That is, a larger interval number will obtain a smaller forecasting error. In Table 11, the proposed method has the smallest MSE.

Table 10 Comparison results of enrollment forecasting of the University of Alabama using various methods
Table 11 Comparison results of enrollment forecasting of the University of Alabama using various evolutionary methods and interval numbers

Example 2

Forecasting Enrollments of a University of Technology in Central Taiwan.

In order to verify the performance of the proposed forecasting model, the historical enrollments of a university of technology in central Taiwan are adopted. Figure 5 shows that a total of 25 historical enrollments from 1992 to 2016 are used. The forecasting performance of the proposed model is also compared with that of other state-of-the-art techniques [2025]. In the experiments, the number of intervals used by each method is set as 7. The set parameters are the same as the previous example–the enrollments of the University of Alabama. The comparison results are shown in Table 12. Experimental results show that the proposed model also has the smallest forecasting error in the enrollments of the university of technology in central Taiwan.

Fig. 5
figure 5

Enrollments of a university of technology in central Taiwan

Table 12 Comparison results of enrollment forecasting of a university of technology in central Taiwan using various methods

4 Application of model to forecasting of TAIEX

In the section, the proposed forecasting model is utilized to predict Taiwan Stock Exchange Capitalization Weighted Stock Index (TAIEX). A total of 248 historical data from 2014/1/02 to 2014/12/31 were used. Several forecasting models, namely Chen’s [6], IFTS, CC06F model [9], HPSO model [10], Huarng [20], Qiu et al. [21] Gangwar and Kumar [22], Egrioglu et al. [23] Wang and Chen [24], Qiu et al. [25], and the proposed model were used to forecast TAIEX. The number of intervals was 7. The results are shown in Fig. 6 The MSE values for the forecasting models are presented in Table 13. In this table, the proposed method also has the smallest RMS.

Fig. 6
figure 6

The forecasting curve of TAIEX

Table 13 Comparison results of TAIEX forecasting using various methods

5 Conclusion

This study proposed a forecasting model based on IFTS and a modified GSO to effectively predict the enrollments of Alabama University, the enrollments of a university of technology in central Taiwan, and TAIEX. IFTS can efficiently forecast an increase or decrease in subsequent predicted data from the ratio value in the fuzzy logical relationship. The modified GSO can effectively determine the lengths of intervals. A dynamic ratio method is proposed to determine the incoming member to be the scroungers or the rangers. The proposed modified GSO provides more chances for the members to leave the local optimum when trapped and obtains more resources than the traditional GSO does. Experimental results verify that the proposed model has better prediction ability (i.e., smaller prediction error) than those of other forecasting models.