Abstract

The nonhomogeneous grey model has been seen as an effective method for forecasting time series with approximate nonhomogeneous index law, which has been widely used in diverse disciplines on account of its high prediction precision. However, there remains room for improvements. For this, this study presents an improved nonhomogeneous grey model by incorporating the dynamic integral mean value theorem and fractional accumulation simultaneously. In order to promote the efficacy of the optimised model, we apply the whale optimization algorithm (WOA) to ascertain its optimal parameter. In particular, two examples are conducted to validate the superiority of the proposed model in contrast with other benchmarks, and the experimental results show that the mean absolute percentage error of the proposed approach is 808692% and 6.0706%, respectively, indicating the proposed approach performs better than other competing models.

1. Introduction

The prediction plays an important role in management and decision-making science. In the past decades, there are a variety of forecasting technique, such as autoregressive integrated moving average (ARIMA), artificial neural networks, and support vector machine. These models have their modeling mechanism and application scope. However, these models have a common flaw that they usually require more samples to build the model so as to obtain relatively high prediction precision. However, the behaviors of most systems in practice are often uncertain and unknown, and the effect of large-sized sample-based prediction models may be relatively poor. On this basis, grey system models focusing on small-sized observations have been received more attention in the recent decades [1].

As previous literature revealed, for the ability to analyse and process data sequences, grey-based models have been broadly applied among diverse disciplines because of their excellent implementation on small-scale sample modeling, such as natural gas consumption [24], electric power supply and demand [58], renewable energy [9, 10], industry [11, 12], and medicine [13, 14]. Although grey-based models have their own advantages, there still exist some shortcomings. For instance, the traditional grey model (denoted as GM(1, 1)) only fits time-series sequence with pure exponential characteristics well but fails to fit time series with other features. To this end, Cui et al. [15] brought forward a nonhomogeneous grey model for forecasting data series with approximate nonhomogeneous index feature. In fact, the nonhomogeneous grey model is nascent, and this model has certain defects. To be specific, these defects mainly exist in the background value, cumulative order, time response function, and application scope. Later, to improve the nonhomogeneous grey model, many scholars have paid their attention to this issue. For example, Ma and Liu [16] optimised the background value in accord with general expression for its time response function, also notable is that this optimised model was successful to apply in practice. Tong et al. [17] designed a newly designed nonhomogeneous grey model to simultaneously fit time approximately homogeneous and nonhomogeneous index features. Considering the vital impact of the background value on the prediction performance of the nonhomogeneous grey model, Zeng and Liu [18] presented an improved nonhomogeneous grey model based on fractional-order accumulation, which can achieve high accurate prediction by virtue of fractional-order accumulation. Subsequently, a series of variants of the nonhomogeneous grey model with fractional-order accumulation have emerged. For example, Wu et al. [19] established a discrete nonhomogeneous grey model based on fractional-order accumulation. Later, Wu et al. [20] presented a conformable fractional nonhomogeneous grey model to predict carbon emissions for BRIC countries. The abovementioned optimization measures have dramatically improved the prediction performance of the existing grey-based model and enriched the grey modeling theory.

Admitted, there exist a variety of nonhomogeneous grey models; however, these approaches are not universal. That is, many optimization approaches are only suitable for special cases. The optimization methods for increasing the prediction precision of the grey models include fractional accumulation and integral median theorem aiming to optimize the background value. Recalling, Wu et al. [21] first placed the fractional accumulation on the grey system models, which is a significant innovation to improve the prediction precision of grey models, on the foundation of grey-based models with fractional-order accumulation [2225].

To further increase the prediction performance of the abovementioned models, there are a variety of studies that are committed to explore the combination of fractional-order accumulation and grey modeling technique. For instance, Zhu et al. [26] brought forward a newly designed fractional grey model, of which the fractional accumulated generating operation sequence is dependent on an adaptive grey score weight; additionally, this model is applied to predict Jiangsu’s electricity consumption. Chen et al. [27] put forward a fractional Hausdorff grey model, and Ma et al. [28] presented a novel grey model by using conformable fractional-order accumulation. These studies greatly enriched the grey system theory and enabled the combination of fractional calculus with the grey modeling technique. On the other hand, the adaptation of the integral median value theorem for improving the background value can enhance the prediction precision of the grey-based models [29, 30].

On the foundation of the previous knowledge, this study constructs a novel discrete nonhomogeneous grey model by incorporating the idea of fractional accumulation and the dynamic integral median theorem; the composite grey model (denoted as FDNGM(1,1) for short) is developed thereby, which can fit diverse series sequence through altering the fractional accumulation order and background-value coefficients. The principal innovations and contributions are outlined as follows. (1) We combine the dynamic background value with the grey modeling technique. (2) An effective intelligent technique, namely, the whale optimization algorithm, is utilized to ascertain the proper parameters for the proposed approach. (3) The several examples are used to certify the feasibility of this model.

The rest of this study is listed as follows. Section 2 briefly depicts the computational steps of the basic nonhomogeneous grey model. The proposed approach is studied in Section 3. Section 4 introduces the solution method for the proposed model. Section 5 reports the experimental results, and Section 6 concludes.

2. Basic NGM(1,1,k,c) Model

Assuming a raw sequence can be denoted as , whose 1st-order accumulative generation operator data series is calculated aswhere .

Then, the differential equation for the basic NGM(1,1,k,c) model is written as

For the sake of estimating the system parameters for the abovementioned model, we get the discrete formula for equation (2) as

In equation (3), refers to the background value, for which .

With the help of the least-squares method, the system parameters for the conventional NGM(1,1,k,c) model should be computed aswhere

After that, we get the time response function for equation (2) calculated as

Eventually, the restored values of the raw data are given by

We observe from the modeling procedure above that the prediction precision is dependent on the system parameters influenced by the background value and cumulative sum operator. In NGM(1,1,k,c), we apply the integer-order accumulation and trapezoid formula to generate the accumulated sequence and background value, and it is evident that the fixed accumulation order and approximate discrete error will impair the prediction performance to a large degree. For this, we apply the fractional accumulation and dynamic integral median theorem on the modeling procedure for improving the prediction capacity of the existing nonhomogeneous model.

3. Presentation of FDNGM(1,1,k,c)

Suppose thatis the given data sequence that is nonnegative, then its r-order fractional accumulating generation operation data series can be calculated aswhere .

Based on , the differential equation for the proposed model is obtained as

In this study, we place the dynamic integral median theorem on the background value for the proposed model so as to eliminate the discretization error generated by the transition process.

Theorem 1. If is continuous over given interval , then we getwhere and .

Proof. Since keeps continduous over , there exist the maximum value and minimum value for over , which makes hold true; then, we havewhich is alsoCombining equations (12) and (13), we haveIn accord with the intermediate value theorem, that makes hold. It can be further concluded that for any value of the continuous function on , there exists that makes hold true. Thereafter, in accord with the integral mean value theorem, we getFurthermore, we haveIt is proved.
Therefore, the newly designed background value for the proposed model can be given asThen, we get the least-squares estimation for system parameters expressed aswhereSimilar to the calculation steps mentioned in Section 2, the time response function for the proposed model can be acquired. Moreover, the predicted values of the original data series is given as

4. Determination of Parameter

Notice that the proposed model is constructed under the assumption that the emerging coefficients are known. Thus, they have a significant impact on the prediction precision directly. Aiming to effectively enhance the prediction precision of the proposed model, a relative simple optimization problem can be established, whose calculation formula can be defined as

As previous literature revealed, the abovementioned equation is difficult to solve by the ordinary approach on account of its nonlinear features. Therefore, this study introduces a metaheuristic technique, namely, the whale optimization algorithm (denoted as WOA), to search the best values of the background-value coefficients and fractional accumulation order.

In 2016, Mirijalili and Lewis [31] designed the whale optimization algorithm which describes the social behavior of the whale group. Over the past 5 years, this algorithm has been applied in various fields [32, 33]. More importantly, this approach is regarded as an effective technique to solve nonlinear optimization problems [34]. This is the main motivation for us to choose the WOA to solve the abovementioned equation. To be specific, the modeling steps of the WOA are listed.

Whales move in spiral to surround the school of fish, which is considered the best solution for predation. After that, they change their position by reference to the candidate solution. We get the expression of this behavior shown as

In equation (22), denote the whales’ current position and their current best position, respectively. refers to a arbitrary number generated within [0, 1], is a random number produced from [−1, 1], is the key for controlling the shape of whales’ moving spiral, is denoted as the maximum number of iterations, and the movement strategy will be chosen by the probability . Whales change their position according to the equation expressed as

In equation (23), denotes the position of random whale in the group. Additionally, we define the fitness function for calculating the fitness of each whale expressed as

The flowchart of the proposed model based on the WOA technique is shown in Figure 1.

5. Application

This section conducts two real cases to demonstrate the superiority of the proposed approach in contrast with other benchmark models. The models used for comparison include the polynomial regression model (PR) proposed by literature [35], the FHGM(1,1) model proposed by literature [26], and the ONGM(1,1,k,c) model proposed by literature [36].

Case 1. (Prognosticating Chongqing’s electric power consumption) With the depletion of nonrenewable energy sources such as coal, crude oil, and nuclear energy, electrical energy is becoming more and more important in our lives and production. Overestimation and underestimation of short-term electricity consumption will waste the energy or cause unnecessary loss. Therefore, accurate and effective forecasting of electricity consumption can help power system operators and market participants to propose bidding strategies and ensure consumer’s electricity supply based on corresponding forecast information, thereby reducing the cost of electricity consumption and reducing energy consumption.
The original data were gathered from the Statistical Yearbook of China. Regarding the calculation procedure, first, the searching process by the WOA is given in Figure 2; accordingly, all the system parameters are listed in Table 1. By reference with this study and references therein, the predicted values and error-value metrics generated by the competing models are given in Tables 2 and 3, respectively. What is more, the error distribution is shown in Figure 3.
In accord with the predicted values mentioned in Table 2, we find that the predicted values by the NGM(1,1,k,c), FHGM(1,1), and ONGM(1,1,k,c) models all deviate far away from the actual series, and those of the proposed approach are much closer to the actual data. In addition, we observe from Table 3 that the MAPE values of the FDNGM(1,1,k,c) model are obviously lower than those of others. Moreover, the same discovery can be supported in Figure 3, indicating the proposed approach is more suitable for predicting the electric power consumption in Chongqing than other competitors.

Case 2. (Forecasting China’s natural gas consumption) Chinese economy experienced a high growth in the new stage; additionally, natural gas, as a clean energy, has been regarded as an alternative source. Under the background of oil and gas system reform, the supply and demand for natural gas have dramatically changed as time goes on. Developing a accurate and sustainable forecasting model for the development trend of natural gas is of great practical significance.
Analogous with Case 1, the original series is gathered from Statistical Yearbook of China, as given in Table 4. First, the searching process by the WOA technique-based proposed approach is shown in Figure 4. By referring to the current study and references therein, we tabulate the predicted values of China’s natural gas consumption and corresponding error-value indices by using different models in Tables 4 and 5, respectively.
By screening the predicted values of natural gas consumption in Table 5 that the predicted values of NGM(1,1,k,c), FHGM(1,1), and ONGM(1,1) models deviate away from the observations, and the those of the proposed approach are much closer to the actual data. What is more, the error of the proposed model is smaller than other benchmarks, as shown in Figure 5. Specifically, the APEs and MAPEs of the proposed approach in this case, referring that the proposed model, should be regarded as a promising approach in this case.

6. Conclusion

Aiming to improve the prediction precision of the existing NGM(1,1,k,c) model, this study establishes an optimised NGM(1,1,k,c) model by combining the ideal of fractional accumulation and dynamic integral median theorem. As a result, a novel model named FDNGM(1,1,k,c) is proposed thereby. The proposed model is proved to grasp a more flexible and general structure to fit different series by changing the variable of fractional accumulation parameter and dynamic background-value coefficients, thus obtaining a much stronger adaptability in practice. To demonstrate the performance of this approach, we carried out two practical examples to certify the feasibility of the FDNGM(1,1) approach. Additionally, this study presents the dynamic parameters to perfect the background value for the grey modeling technique, applicable for all grey forecasting models.

In addition, we have discussed the superiorities of the proposed FDNGM(1,1,k,c) model; however, it still has some shortcomings, for example, many parameters are contained in the proposed model (elaborated on in Section 3), which brings trouble into the calculation process. How to simplify the model structure will be addressed in our next work.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by the National Natural Science Foundation of China (11661001).