Smart Diagnostic Expert System for Defect in Forging Process by Using Machine Learning Process

integration of AI with forging.


Introduction
Forging is a metal forming process involving the shaping of metal using compressive force. This technique will be used in different industries like automobile, aerospace, hand tools and hardware, and machine and equipment. Two forging processes are there: (1) hot forging process and (2) cold forging process.
Cold forging is worked at room temperature, but hot forging is needed at more than 1200 Celsius degrees. Simple components are made by cold forging, and the hot forging process makes complex parts. In both cases, problem analysis is more difficult due to different conditions. It is the main moto to work on this. The experts or operators can identify the problem using previous information or destructive test-ing after production. Optimizing the production of forged parts requires solving all the related defects. So we developed a diagnostic system to be used by engineers or operators to detect the cause of any defect or background information of the product [1][2][3].
Artificial Intelligence (AI) is the new operation technique to interchange data with human thinking, and it can understand that human sense [4]. It gives an intelligent machine or intelligent process as a product, and also it will respond to any problem like a human [5].
Continuous development toward automation and intelligent machines awaits the mechanical engineer. Mechanical and electrical engineering will be combined with artificial intelligence in a new way. Artificial intelligence is mostly used to regulate automated mechanical engineering [6]. AI is now being used to identify forging errors. In general, an AI-based defect detection system uses rule-based reasoning, case-based reasoning, and fault-based diagnosis as its primary diagnostic methods of analysis [1]. The defect diagnostic system will build an expert knowledge system based on the provided data [7]. Rules for fault diagnosis are needed in the database, as are the knowledge processing tools of the interpreter diagnostic system, the learning system, and the man-machine interface expert system [8].

Problem Statement
At any time, operator/engineers find faults during/after the operation/process and guess when, how, and why the mark appears. At some time, they need some information to predict the reason for the fault, type of part, defect location on the component/part, depth of the defect, etc [3,9]. More information may help estimate the correct cause. Figure 1 represents the basic flow system to identify the defect [10].
The process needs some inputs to find the defect.
(1) part type (2) location of defect Now, we develop the step by step to detect the defect any circumference of the forging process.
Step 3. Develop fault diagnostic system. It will give a good analysis of causes of forging. Figure 2 represents the identification of defect in forging process [17,18].
Step 4. Development and implementation: We need to establish the overall structure of the expert system, implement the knowledge base, and debug the system (In Section 4) [19][20][21].

Quantitative Analysis-Mathematical Modelling
For example, consider a forged part, Type of element: X (say). Defect category: Y (Say at defect may).
Final decision is that: The parts have some defect.
In the above part, we cannot find exact decision, because Pðe i Þ be the probability then d j be the decision number j. Pðe i /d j Þ will represent the maximum probability of e i in the case that d j is evident.
It may express Now, we add one more decision here. Decision 2: The element also has some defect on a part. This fact also supports the assumption that some fault is detected.
If d 1 depends on d 2 , then By applying the above condition to the first equation, Now, we increase this type of equations which are independent on each other.   Journal of Nanomaterials Then, Now, almost got d j at every step, i depends on decision j . On the other hand, remaining probabilities may be necessary. However, in some only Now, involve a variable v Let X iv and Y v be Now, Pðd j ðvÞ/e i Þ = X iv :Y v .
The above sequence addition should be equal to one, so Let X iv be the matrix     Step to proceed  Journal of Nanomaterials From above equations, Now, we get P ðd j ðvÞ/e i Þ from above equations.

Implementation of Overall System
(1) The Bayesian methodology is used to find each defect according to the information given as input (2) Causes and treatment reasoning that use the knowledge-based approach depend on the combination of input information

Journal of Nanomaterials
(3) The output of the system is represented in a graphical manner. In the end, operator or engineer knows the result, they can utilize the supervised machine learning process to get the probability [22][23][24] The entire implementation system is developed in a flowchart represented in Figure 3.  (1) User interface will transfer the data between the user to the system (2) Target was achieved using a reasoning machine and user input (3) Interpretation mechanism will interpret the conclusions from the reasoning machine and make them user friendly (4) Base knowledge has huge rubrics for fault diagnosis in the forging process  To engine Go previous Go next Figure 9: Table of Probability. 6

Journal of Nanomaterials
The condition of rules is composed of several conditions' initiation/introduction of the problem, decision description, etc.
Condition of rules stores all the simple data like name and need, priority, and number of contents [29].

Result and Discussion
Here, we execute the developed system; the user goes to the main menu as shown in Figure 5. The user is to answer all the input questionnaires for the integrated part. Now, Figures 6 and 7 show the choice of part, process, and property, respectively. For the given example data, we will run the system with a combination of inputs.
Our developed system (Figure 8) makes the decision by the probability table as shown in Figure 9. Push the button "CERTAIN CALCULATION" shown in Figure 10. Our advanced system displays the defect category [20][21][22].
Finally, the user may use a system of certainty to conclude based on the empirical relations. It may add the past information and also possibly update the essential parts [23][24][25].
We can conclude the following: (1) Developed conditional program to remove the complex data. The expanded program is very user-friendly and adaptable to any other application [30,31] (2) The probability approach allows the possibility of a specific category, which is the most valuable and advantageous to use or evaluator based on the matching diagnosis system concept used by the expert system (3) The entire process will find the relation of each factor that leads to the diagnosis of the indicated cause (4) It is pretty simple because it needs to update the basic probability according to the field/experimental data processed The limitation of work is our entire work system accommodates input information only; these are independent. In some cases, maybe factors are not separate. So, users can develop the method to make it easy.

Conclusion
The forging system is very suitable for artificial intelligent applications because it needs more of a human expert. This entire concept combined the different knowledge to counter the fault in forging. We construct the system, it will link the field data and engineering design. Graphical type of output was obtained and it is easy to understand. Bayesian interface was used in this research work. The developed formulation and the expert system will diagnose the fault in the manufacturing system, i.e., forging.
A fault diagnosis system is proposed, a skeleton of the forging is developed in a fault tree. Analysis of fault tree carried out qualitatively and quantitatively gives the exact fault diagnosis system. Fault diagnosis of forging was developed by "Microsoft SQL Server and Microsoft visual studio". Finally, diagnosis of the result shows the prepared system with an example.

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.