Keywords

1 Introduction

ANN is an efficient approach amid the black-box design approach that is extensively used in different engineering applications in recent years [1]. This craft aims to greatly decrease dynamometer analysis, thereby developing scientific models of the engine outputs using a smaller subset of experimental data. Once the scientific models have been refined, the errors can be minimized using techniques such as gradient procedures [2], different approaches are included for using ANN to boost up modeling and graduate of engines [3]. The capability of ANN as a system testimony tool is pre-owned to represent the nonlinear performance of engine operations. Many analysts used ANN for predicting twisting moment, brake power, total fuel consumption, and smoke formation including engine speed and diesel injection pressure [1, 4, 5, 6 7, 8] found the ANN adds accuracy and ease in the inquiry of the engine performance. GISCA and WU described how effectively ANN is used for deciding the operating parameters of the compression ignition engine, being internal pressure in cylinders or the fuel–air ratio [9, 10]. But in ANN design draft of network topology, the trigger function, learning rule, and the permissible error for stopping the training phase is crucial and done by the engineer. So, it is tough to frame the size of the network as there is no fixed method to do it. Even though the neural networks based results is very dynamic in terms of evolution, time, and resources. By practicing and being employed on different planning, weights, and designs, we can afford actual solutions. By conducting accurate research by using various innovations and selected the best one that gives efficient output by considering input details. Depending upon the experimental data, ANN correlates various engine operating parameters with the input data. Garg explained a broad literature review and different utilizations of ANN [11]. Thus, actual-time activity and averaging of complex, nonlinear, and dynamic patterns in engine operations are challenges to be met in today’s engine advancement. Neural networks architectures, combinations of networks, and different algorithms play an important role in the execution. There is a need to use ANN as an execution critical tool that optimizes cost and time in advancing new models and techniques for overall engine performance. Further, it will support in achieving which algorithm is perfect for the appropriate situation.

2 Experimental Setup and Engine Specifications

The below line diagram represents the engine along with various parts incorporated in it (Fig. 1).

Fig. 1
figure 1

Experimental setup of engine. 1. Alamgir engine, 2. T alternators, 3. Diesel tank, 4. Air filter, 5. Three-way valve, 6. Exhaust pipe, 7. Probe, 8. Exhaust gas analyzer, 9. Fuel tank, 10. Burette, 11. Three-way valve, 12. Control panel

2.1 Engine Specifications

See Table 1.

Table 1 Specifications of engine

2.2 Formulae

See Table 2.

Table 2 Standard formulae to calculate performance parameters

2.3 Experimental Values for Diesel

See Table 3.

Table 3 Experimental values for diesel

3 Working with MATLAB

MATLAB is widely used in scientific estimations. It integrates computation, perception, and programming in a simple manner in which questions and answers are revealed in simple mathematical notation.

3.1 Feeding Inputs and Outputs in MATLAB

The input values are entered in command window, which is scaled in between 0 and 1 for minimizing the error.

Speed

= [0.1500 0.1500 0.1500 0.1500 0.1500 0.1500]

Voltage

= [0.270 0.260 0.250 0.230 0.215 0.200]

Input

= [Speed; Voltage]

Bp

= [0.0765 0.153 0.240 0.312 0.377 0.408]

Tfc

= [0.076 0.105 0.13 0.153 0.174 0.191]

The output is entered in the same form of input data by varying the neurons according to the preference of the user.

For example, if the user prefers 2 neurons, then the output should be assigned as

Output1 = [Bp; Tfc]

Likewise, all other individual output parameters are grouped as 2 rows and initialized in the MATLAB command window. Similarly, for the same individual output variable, various neurons are selected and initialized in the same manner as shown above. As soon as they entered, they are recorded as a matrix in the workspace and it is saved with the file extension MAT.

3.2 Working with Neural Network

To invoke the neural network toolbox, a command, tool is entered in the command window. The following window pops up as shown in Fig. 2.

Fig. 2
figure 2

Network data manager

The input values are given by clicking the import button in this window. The following window pos up (Fig. 3).

Fig. 3
figure 3

Data manager

All initialized data are automatically stored in the data manager scroll box and for giving the input the variable input1 is selected and is to be imported as inputs. Similarly, variables output 1 and output 2 are selected as target values which have to be optimized depending upon the neurons.

Now all the selected data are imported in neural network toolbox, next a network is to be formed. For this, new network icon in the neural network manager is clicked.

In that dialog box, various networks types are available in that we have selected “FEED FORWARD BACK PROPAGATION” network type with the training function as trained. The ranges for the input can be taken from the variable input1. The number of layers to be specified here is the total number of hidden layers and neurons for output data’s. For each layer, the number of neurons is specified and the suitable transfer function of purelin is chosen and by clicking create button in the dialog box, new network is created, next, the network has to be trained. There is an icon available in the network manager. The following window pops up (Fig. 4).

Fig. 4
figure 4

Training a network

The training data are taken from input 1 and output 1, by scrolling down the pull-down menu. The training parameters specify the numbers of epochs, goal, etc., are also given. The network is then trained. A window with the training graph appears. The training stops if the goal is reached or if the number of epochs exceeds or if one intentionally stops the training. Confirmatory values are simulated and it is displayed in the network output dialog box of network manager toolbox and similarly the trained error values are displayed in network error of network manager toolbox. The network error and output values are in scaled form.

3.3 Trained Values for Diesel with Network 2 Hidden Layers 2 Neurons

See Table 4.

Table 4 Trained values for diesel

3.4 Error Values for Diesel

See Table 5.

Table 5 Error values for diesel

4 Results and Discussion

Graph between Experimental Values and Theoretical values:

From Graph 1 brake power values obtained from experimental and theoretical results are compared, error is calculated, and the error is minimum for trail 4 and maximum for trail 6, the maximum value of brake power by theoretical method is 0.4052 for trail 2 and by experimental method is 0.408 for trail 6, so in order to reduce the error the number of hidden layers has to be increased.

Graph 1
figure 5

Error for brake power

From Graph 2 indicated power values obtained from experimental and theoretical results are compared, error is calculated and the error is minimum for trail 2 and maximum for trail 6, the maximum value of indicated power by theoretical method is 0.364 for trail 1 and by experimental method is 0.537 for trail 5, so in order to reduce the error the number of hidden layers has to be increased.

Graph 2
figure 6

Error for indicated power

From Graph 3 total fuel consumption obtained from experimental and theoretical results are compared, error is calculated and the error is minimum for trail 1 and maximum for trail 2, the maximum fuel consumption by theoretical method is 0.1909 for trail 6 and by experimental method is 0.191 for trail 5, error is minimum in this case and no need to change the hidden layers.

Graph 3
figure 7

Error for total fuel consumption

From Graph 4, brake thermal efficiency values obtained from experimental and theoretical results are compared, the error is calculated and the error is minimum all the trails, the maximum efficiency is obtained for trail 6 in both the cases and no need to change the hidden layers.

Graph 4
figure 8

Error for brake thermal efficiency

From Graph 5, mechanical efficiency values obtained from experimental and theoretical results are compared, error is calculated, and the error is minimum for trail 1 and maximum for trail 3, the maximum value of mechanical efficiency by theoretical method is 0.717 for trail 6 and by experimental method is 0.718 for trail 6, so in order to reduce the error the number of hidden layers has to be increased.

Graph 5
figure 9

Error for mechanical efficiency

From Graph 6, volumetric efficiency values obtained from experimental and theoretical results are compared, error is calculated and the error is minimum for trail 2 and maximum for trail 5, the maximum value of volumetric efficiency by theoretical method is 0.663 for trail 1 and by experimental method is 0.665 for trail 6, so in order to reduce the error the number of hidden layers has to be increased.

Graph 6
figure 10

Error for volumetric efficiency

5 Conclusions

The experimental data is trained in MATLAB using neural networks by backpropagation algorithm and all the error values are measured. By measuring the error deviation between experimental values and trained values engine performance parameters are optimized and required changes are suggested in the experimental setup which can improve the performance of engine so that error values are minimized further. ANN will be a very good tool to optimize the engines in the future.