Modern ML methods for failure analysis automation on classical ERP systems
MSc. Mario Enrique Vallejo Venegas
- Dra. Ma. del Rocio Maciel Arellano
- Dr. Victor Manuel Larios Rosillo
- Dr. Jesús Raúl Beltran Ramirez
- Dr. José Antonio Orizaga Trejo
RESUMEN
Introduction
Typically IT teams working with ERP systems have little to almost no knowledge of artificial intelligence and more specifically Machine Learning (ML) and Natural Language Processing (NLP) models because their working environment is mostly focused in supporting usually commercial ERP systems like SAP, Oracle ERP, Microsoft Dynamics, etc., so they focus on the functional aspects and sometimes in some proprietary development environments like ABAP language for SAP systems, to make very specific customizations. The current research work is aimed to provide detail insights of the state-of-the-art ML and NLP models that could be used in a classical ERP environment and also it pursues the objective of investigating the technical feasibility and the ease or difficulty to provide artificial intelligence to a classic ERP system that does not have it with the intention of automating the analysis of errors and failures in the ERP system that due to its volume is difficult to manage by human operators. The aim is therefore to achieve significant savings in time and IT human resources consumed in failure analysis.
Another objective is to share with the reader several lessons learned by the researchers while investigating the available literature and while experimenting and testing with several of the existing models available in Python and C# languages while comparing different technology platforms. This should provide valuable information to IT managers, project managers, developers, and testers who normally work with ERP systems and not with AI, so they are not so familiar with it.
Material/method
Two software development platforms, Python and Microsoft ML.Net, were investigated. The corresponding IDEs were installed and various packages or extensions required to work with ML and NLP were configured. We also simulated a production environment in SAP ERP with multiple job failures in order to produce a job log that could be downloaded to a local text file. For this purpose, programs were created in SAP’s ABAP language. Because the research is incipient only two NLP models were investigated for tokenization and for creating bags of words and the SAP ERP job log text file was used as input for both NLP models in both languages, Python and C Sharp. Both platforms were tested and the different technical issues were solved as they appeared until the expected results were produced.
Results
As a result, it was possible to simulate an SAP ERP production environment of a chaotic-equipment nature, with multiple failed-equipment in background jobs, and an extractor program could be built to download the failed-equipment job log into a plain text file. This represented a medium scale complexity.
PyCharm, which is a Python IDE for data science, was also successfully installed and configured. The installation and configuration proved to be of low complexity. But, building the models for Tokenization and for Bag of Words was a medium complexity job.
Alternatively, for comparison purposes, the Visual Studio 2022 IDE and Microsoft.ML Nugget packages were installed. Models were also built for Tokenization and for Bag of Words, which was a medium-high complexity job.
The interconnection of technological platforms was feasible and of medium difficulty, although we did not try to automate the download of data from the SAP ERP system or to automate the loading of data into the NLP models because we wanted to give priority to the implementation of the logic of the NLP models. However, the automation of the interface is a must in order to achieve an optimization of the software and to eliminate the need to automate the data loading into the NLP models.
Conclusions
The first conclusion reached is that it is definitely feasible and relatively easy to provide artificial intelligence to classic ERP systems, even if they are traditional systems, with client-server architecture and may seem very conventional as they are already very proven technologies and well known by the IT industry. Some might even think that ERP systems are a thing of the past and that the new artificial intelligence technology cannot be easily applied to them, which is false.Â
The second conclusion is that it is more difficult to determine what type of artificial intelligence is most useful to apply to ERP systems. It depends on the problem to be solved. Trying to predict the consumption of products sold by a company, or trying to analyze dozens or hundreds of purchase contracts, or measuring customer satisfaction, or even automating IT staff tasks is not the same need, and therefore there will not be a single artificial intelligence applicable to every problem.
The third conclusion is that there are definitely programming languages that have specialized in artificial intelligence and are therefore easier to use. For example, it was easier to implement NLP models in Python than in C#. Much more lines of code are written in C# than in Python because Python is higher level. However C# is faster to run, because it is compiled and in particular the Visual Studio 2022 IDE is easier to use because it has code auto-completion functions (predictive text) and a wizard that suggests how to solve syntax errors. It is also very easy to get help on the statements used in the programs.
The fourth conclusion is that the work presented here is incipient and further work is needed on more complex models in both NLP and ML. In the case of NLP, further research on the NER (Named Entity Recognition) model is suggested. Research on the applicability of Large Language Models (LLM) in classified ERP systems is also suggested. Such models are the basis of more advanced artificial intelligences such as ChatGPT.