Introduction

Forecasting is an integral part of the electric power system [1]. Because from a few minutes to an hour ahead or as much as 20 years into the future, load forecasts are typically programmed. There are four types of electrical load forecasting, i.e., short-term load forecasting, very short-term load forecasting, medium-term load forecasting and long-term load forecasting [2]. Predicting the load from one hour to one week is known as short-term load forecasting [3]. Short-term load forecasting is one of the most important operations for control of power generation for determining the power plant’s work plan and choosing the best production group. Because the problem of economic as well as technical issues is challenging to electrical companies [4,5,6], these problems are removed by short-term load forecasting by deciding production of energy and purchasing, developing infrastructure and switching of load correctly for electricity providers is very much important [7,8,9]. By criteria regarding the quality of supply, the reliability of supply and to minimize the costs of balancing, a day ahead planning balances the forecasted hourly demand that is implemented based on providing security and system integration of operation. One day in advance, balancing the whole system is performed according to the forecasted values given by the demand side to the day ahead planning system. Otherwise, the cost will be increased by an imbalance of the load from forecasted errors.

Due to the characteristics, the behavior of the electric power system is quite different. Any forecasting method cannot achieve the best results for all power systems [10]. So other methods are adopted for load forecasting. Among them, the most commonly used methods are regression analysis, time series analysis, similar day approach, support vector machine, artificial neural network, fuzzy logic as shown in Fig. 1, adaptive network-based fuzzy inference system, genetic algorithm and some hybrid methods which are discussed as a literature survey. Statistical methods and artificial neural networks are widely adopted for load forecasting. But nowadays, hybrid methods or other intelligent approaches are also adopted for load forecast [11].

Fig. 1
figure 1

Fuzzy logic model

In [12], it is studied that for determining the position of the capacitor, an oppositional crow search algorithm (CSA) is used for Var planning with fuzzy logic technique. For each bus of the tested networks, i.e., IEEE 30 and IEEE 57, the fuzzy membership value is calculated based on the loss sensitivity factor. To obtain the global or near-global optimal setting of the control variable for more accuracy and reliability, modified whale optimization algorithm (MWOA) is used [13]. In [14], for optimal reactive power planning, oppositional gray wolf optimization (OGW) is used for less expensive systems with poor bu recognition by voltage collapse proximity index (VCPI). The optimization and performance toward unraveling the optimal phasor unit (PMU) placement problem (OPPP) is achieved by integrating an A-star algorithm and binary search tree. Here, redundancy measurement is considered for OPP [15]. An efficient and hybrid meta-heuristic algorithm of harris hawk-particle swarm optimization is used to solve the voltage-constrained reactive power planning problem. So, the overall operating cost and transmission loss are calculated [16]. For minimizing active power loss and system operating cost while maintaining voltage profile within the permissible limit in finding the optimal setting of all control variables, including thyristor-controlled series compensator (TCSC), the series type and Static var compensator (SVC), the shunt kind of FACTS device, the tested system is used. For this, optimization like whale optimization algorithm (WOA), differential algorithm (DE), gray wolf optimization (GWO), and Quasi-opposition-based gray wolf optimization (QOGWO) are implemented. Among them, WOA gave the best results. The statistical analyses between the different techniques are implemented by the ANOVA test [17]. In other bundle conductor arrangements for three-phase, the capacitance and inductance per unit length are determined by the whale optimization algorithm (WOA) with the discussion for voltage stability for load modeling [18]. For the solution of voltage-constrained reactive power planning (VCRPP) of power system, ameliorated harris hawks optimization (AHHO) and harris hawks optimization (HHO) have been used [19]. To minimize the active power loss and total operating cost, opposition-based gray wolf optimization (OGWO) and gray wolf optimization (GWO) are used for IEEE 14, IEEE 30 and IEEE 57 bus systems [20].

Proposed Approach for STLF

The exact fuzzification method is Takagi–Sugeno–Kang, or Sugeno fuzzy inference uses a singleton output membership function that is a linear function of the input values. The Sugeno systems use a weighted average or weighted sum of a small number of data points during the defuzzification process rather than computing the centroid of a two-dimensional area, which results in a more computationally efficient procedure.

Work of Fuzzy Logic Model for STLF

Four steps are suggested for developing and implementing a fuzzy logic-based load forecasting system, as shown in Fig. 2.

Fig. 2
figure 2

Flowchart of Fuzzy logic

Fuzzy Rule Base Design

Wang and Kosko have suggested this methodology because it successfully generates predictions. The five steps have concluded this method as follows:

Step 1 According to statistical analysis, engineering decisions, and operator experience, the i/p and o/p variables list has been preliminarily assembled. The following are the three input variables utilized to forecast electric load as an output [10, 11], i.e., temperature, humidity and wind speed are all factors to consider.

Step 2 Analyzing their behavior, the input and output variables are normalized, and the membership value [0, 1] is mapped to the input space [21, 22].

Step 3 For each variable, choose a fuzzy membership function shape such as triangular, trapezoidal, Gaussian, or bell shape membership. By trial and error, the membership function (MF) is selected.

Step 4 The number of fuzzy membership functions for each i/p and o/p variable is determined. In this case, all variables represent all three functions. The region’s lengths in the functions are not equal for a particular variable, nor are the number of functions for all variables required to be similar. The cold, normal, and hot like three fuzzy set categories classify the temperature data [23, 24]. Similarly, the dry, humid, and very humid categories classify the humidity data. Three types of wind speed data, low, medium and high, are used to predict the load. Three fundamental fuzzy sets are used to classify the data, distinguished by the following characteristics: morning, midday, and night.

Step 5 Training data consist of each pair of input and output based on the fuzzy logic rule. Consider the following scenario: IF the “temperature” is high, the “humidity” is high, and the “wind speed” is superior to the norm, THEN the “load” is higher than typical.

Calculate Value of the Point Forecast

A fuzzy inference system is used to implement a nonlinear mapping from the input to the output space. A sequence of fuzzy IF–THEN rules is used to map these data, each describing the mapping’s local behavior. Defuzzification is utilized to derive the forecast’s point estimate from fuzzy forecasts. Using Eq. (1) for the centroid of area (ZCOA) approach, a numerical prediction is generated responsive to all rules. ZCOA helps in the defuzzification technique. It is applied where the load will be divided into segmented ways for exact prediction of the load with minimum error by removing noisy data.

$$Z_{{{\text{COA}}}} = \frac{{\int\limits_{Z} {\mu_{A} (Z){\text{d}}z} }}{{\int\limits_{Z} {\mu_{A} (Z)Z{\text{d}}x} }}$$
(1)

where µA(Z) is the MFs aggregated output.

Evaluate the Rule Base’s Performance

A different historical data set (test set) is used to test the forecast accuracy from the one used to obtain the rule base. If the shapes of the fuzzy membership functions and/or the number of fuzzy membership functions are insufficient, a new fuzzy rule base can be created. The iterative building of the rule base by selecting a mechanism of defuzzification and the performance of the evaluating system occurred systematically with different types of fuzzy memberships and/or the number of fuzzy membership functions. The test set for real-time forecasting, selected using a fuzzy rule base, has the lowest error. When the test set is large enough, the ‘Train and Test method,’ commonly referred to, works well. If the test set is large enough, it is expected that the observed error rate will be close to the expected real-time forecasting error rate [25, 26].

Calculate and Update the Fuzzy Rule Database

Once an observation is made, it can be added to a fuzzy rule base as long as it does not conflict with any previously existing rules. Conflict resolution processes [27] can modify the THEN component of the rule when disagreements arise.

Analysis of Errors

Find the mean absolute percentage error (MAPE) using Eq. (2) for forecasted error between the actual and forecasted loads.

$${\text{MAPE}} = \frac{1}{N}\sum\limits_{i = 1}^{N} {\frac{{|{\text{Actual\;load}} - {\text{Forecasted\;load}}|}}{{{\text{Actual\;load}}}} \times 100}$$
(2)

where N = forecasted values.

Figure 2 explains the work of fuzzy logic for STLF, which predicts the exact load 24 h ahead followed each step.

Assumption

In this study, Sugeno fuzzy inference model is used with IMF1for STLF, where the output membership function is linear and the number of the fuzzy rule is 01. Also assumed that future trends will hold similar to historical trends.

Numerical Outcomes

For training and load forecasting, the data from the Jaipur Vidyut Nigam for various day types are used, which shows the performance of the fuzzy logic methodology used for a load forecasting system. The real-time data are collected from the Rajasthan Vidyut Parasaran Nigam, Jaipur (JVN), which consists of a State Load Dispatch and Communication and the weather data such as temperature, wind speed, humidity, and humidity historical hourly load demand over a week are considered as real-time data. In this paper, 03 triangle membership functions are used. IMF1 is used to improve the accuracy of load forecasting because IMF1 achieved the highest level of categorization accuracy, and when the levels of the IMFs rise after that, performance falls. Compared to higher-order IMFs, lower level IMFs have more frequency components and faster oscillations. This analytical characteristic facilitates the analysis of non-stationary signals for load prediction.

Figure 3 explains the comparison of the actual load and forecasted load for Saturday, 23rd November 2013. The average percentage inaccuracy is calculated by comparing projected and actual loads. There are four circumstances mentioned in this essay.

  • Pre-holiday hourly load forecast (Saturday)

  • Holiday hourly load forecast (Sunday)

  • Post-holiday hourly load forecast (Monday)

  • Working day hourly load forecast (Wednesday)

Fig. 3
figure 3

Pre-holiday hourly load forecast (Saturday)

Figure 4 compares the actual and forecasted loads for Sunday, 24th November 2013.Table 1 explains the predicted load and error of Saturday in 2013 for 23rd November with the effect of temperature, wind speed and humidity [28, 29].

Fig. 4
figure 4

Holiday load prediction hourly (Sunday)

Table 1 Input details of 23rd Nov. 2013

Table 2 explains the predicted load and error of Sunday in 2013 for the 24th of November with the effect of temperature, wind speed and humidity [19, 20]. In Table 2, the forecasted load is 2530 MW because

Table 2 Input details of 24th Nov. 2013

Step-1 The EMD divided the initial load data signal (24th Nov. 2013) into three separate IMFs and one residual.

Step-2 The suggested approach Sugeno fuzzy inference model is used to forecast the component signals (IMFs).

Step-3 One output node in the overall prediction model adds all of its inputs and displays the forecasted average value of the load. So in Table 2, the forecasted load is 2530 MW.

Table 3 explains the predicted load and error of Monday in 2013 for 25th November with the effect of temperature, wind speed and humidity [28, 29].

Table 3 Input details of 25th Nov. 2013

Figure 5 compares the actual and forecasted loads for Monday on 25th November 2013.

Fig. 5
figure 5

Post-holiday hourly load forecast (Monday)

Table 4 explains the predicted load and error of Wednesday in 2013 for 27th November with the effect of temperature, wind speed and humidity [19, 20].

Table 4 Input details of 27th Nov. 2013

Figure 6 compares the actual and forecasted loads for Saturday 27th November 2013.

Fig. 6
figure 6

A working day’s hourly load forecast (Wednesday)

Figure 7 compares the actual and forecasted loads for Saturday and Sunday in STLF.

Fig. 7
figure 7

Pre-holiday and holiday hourly load forecast (Saturday and Sunday)

Figure 8 compares the actual and forecasted loads for Monday and Wednesday in STLF.

Fig. 8
figure 8

Working day’s hourly load forecast (Monday and Wednesday)

Table 5 explains the work of Saturday, Sunday, Monday and Wednesday, which affect the STLF for predicting the load 24 h.

Table 5 Comparison of the proposed days

Table 6 explains the work of Saturday and Sunday with errors that affect the STLF to predict the load 24 h ahead. Table 7 presents the work of Monday and Wednesday with errors affecting the STLF for predicting the load 24 h ahead. Table 8 explains the errors of different days that affect the STLF for predicting the load 24 h. Table 9 presents the work of comparison where the proposed work gives better output for the STLF with the effect of temperature, wind speed and humidity.

Table 6 Performance of Saturday and Sunday
Table 7 Performance of Monday & Wednesday
Table 8 Day-wise performance
Table 9 Comparison of the error with existing work

Conclusion

For unit commitment, generating economic allocation and security analysis, the STLF is a helpful tool. So in the PS, accurate load forecasting is essential for minimizing forecasting error. Forecasting errors may significantly impact the economy of operations and power system control. The fuzzy logic method to STLF implementation, which gives a logical set of easily flexible rules that the operator quickly understands, could be a good fit. The MAPE between the actual and anticipated values, determined for four scenarios using three triangular membership functions, is used to examine its forecasting reliabilities. The MAPE for pre-holiday (Saturday), holiday (Sunday), post-holiday, and working day is 0.37%, 0.24%, 0.09%, and 0.09%, respectively. The MAPE in the load calculation is reduced if a proper and extensive training data set is used for fuzzy logic model training. The MAPE can be lowered by adopting the trapezoidal, Gaussian bell membership function and increasing the number of membership functions. Expert Systems and Support Vector Machines are examples of artificial intelligence approaches that can be used to lower the MAPE. It will help in contingency analysis and load shedding, and by including a factor that penalizes model complexity, the regularization technique reduces the modified cost function. The complexity of the model is determined by the load curve, which is obtained from the second derivative of output. This model can be used to forecast the load utilizing renewable energy sources.