Article

Data Science And Analytics For Operations

November 06, 2026

Query and analysis of operational data via natural language

Edson Zanlorensi Junior; Dawson Tadeu Izola

DOI: 10.22167/2675-6528-202603641

Article derived from a Final Course Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.

Summary

The research proposed the development of a conversational interface based on Large Language Models (LLMs) for the PI System, aiming to democratize access to information and increase the speed of operational data querying and analysis. Effective visualization of operational data is fundamental for assertive decision-making and maintaining industrial efficiency. The adopted methodology was classified as applied and experimental research, using the Case Study method in a large energy sector company, located in Paraná, which has an extensive history of data in the PI System. The technical development employed Python, generative AI libraries, the Retrieval-Augmented Generation (RAG) technique for “tag” identification, and a front-end architecture with Node.js and React. Preliminary results demonstrated the solution’s viability through a functional prototype, capable of interpreting natural language commands, correctly identifying “tags” and time intervals, and automatically generating JavaScript “scripts” for creating dynamic charts and textual/numerical analyses. The system proved effective in manipulating analog and discrete variables for relatively simple analyses, accelerated the querying process, and democratized information in the corporate environment.

Keywords: Data Analysis; Artificial Intelligence; LLM; PI-System.

1. Introduction

In industrial processes, especially those requiring real-time decision-making and post-operation activities, the consultation and analysis of operational data, along with the generation of custom graphs on demand, are frequent and highly important activities. Effective visualization of this data is fundamental for operators and engineers to make assertive decisions and analyze processes (International Society of Automation, 2015). The ability to access and visualize plant data and perform analyses agilely has become an essential requirement for maintaining operational efficiency and industrial competitiveness, a scenario even more evident in the context of Industry 4.0, driven by the proliferation of smart sensors and IIoT devices.

However, historically, the process of consulting and analyzing this data is generally manual and technical. It requires collaborators to directly access industrial data historian systems, such as the PI System, locate the correct variables, export the raw data, and then use spreadsheets or scripts to perform calculations and assemble visualizations. This workflow is time-consuming, requires specific knowledge of the tools, and is prone to manual errors, which significantly delays obtaining answers for decision-making and inclusion in documents and reports.

The recent advent of Large Language Models (LLMs) offers a promising solution to this bottleneck. Thanks to the code generation capability demonstrated by modern models (Chen et al., 2021), it has become possible to automate the technical step of this workflow.

Instead of manipulating spreadsheets or writing scripts manually, the user can interact with data using natural language, delegating to Artificial Intelligence the task of converting business questions into executable code for querying the historian system. The greatest opportunities lie in the ability of these tools to synthesize information and generate content, such as code and reports, instantly, freeing up professionals for more strategic tasks. A transition is observed where natural language becomes a possible command interface for computers, eliminating the need to navigate complex menus (McKinsey & Company, 2023). By using generative AI assistants, employees with less technical experience can perform tasks that previously required greater specialization, such as writing scripts for data analysis, leveling the organization’s productivity and democratizing access to information (Brynjolfsson et al., 2023).

Recent studies demonstrate that LLMs surpass traditional natural language processing approaches in generating scripts for data visualization, offering greater flexibility and accuracy in interpreting user intent (Maddigan and Susnjak, 2023). However, the application of LLMs in specific industrial domains is hindered by the lack of prior model knowledge, which generally is unaware of nomenclatures, supervision point names (tags), and other plant specificities.

To circumvent this problem, recent literature highlights the Retrieval-Augmented Generation (RAG) architecture (Lewis et al., 2020). RAG works by retrieving, through similarity, context from external knowledge bases to the model, such as the historian’s metadata or technical documentation, and injecting it directly into the context (prompt) provided to the model at inference time. This approach reduces model “hallucinations” by anchoring responses in real data.

Given this scenario, the present research is justified by the need to reduce the technical barrier to accessing industrial historians’ data and to speed up their consultation and analysis, making operational decision-making processes that require in-depth data analysis more efficient, as well as post-operation activities. Thus, the objective of this work is to develop a conversational interface based on Large Language Models for the PI System, aiming to democratize access to information and increase the speed of consultation and analysis of operational data.

2. Material and Methods

This research is classified as applied in nature, with a qualitative approach and experimental character, using the Case Study method. The focus was the development and validation of a system in a real operating environment, with the objective of demonstrating the technical and operational viability of using Language Models (LLMs) in the automation of industrial data queries and analyses, employing knowledge from software engineering and data science.

The study was conducted in a large energy sector company, located in the state of Paraná, which has historical operational data stored in the PI System historian. For the construction of the solution, the main materials used were the PI System API, an internal API of generative AI agents (based on market models), and Python libraries for data manipulation. For the development of the “front-end”, Node.js and React were employed, and the Flask library (Python) was used as a prototype of the processing layer to orchestrate the services.

The methodological procedures were executed in three main stages. The first stage consisted of the development of a Proof of Concept (PoC), a functional prototype limited to a set of operational variables. In this phase, data collection and processing were based on “Prompt” Engineering, instructing the AI agent to interpret user requests to extract parameters such as variable names and time intervals. The architecture envisioned that the LLM, aided by a Retrieval-Augmented Generation (RAG) system, would identify “tags” and timestamps in the historian and generate query and analysis “scripts”. These codes were executed in an isolated and secure environment (“sandbox”), returning the processed information in text or graphic format.

After the technical validation of the PoC, the research moved to the scaling and refinement stage, which involved expanding the intelligent agent’s knowledge base to encompass all operational data of the PI System. A dynamic update mechanism for this base was implemented to automatically reflect changes in the plant’s configuration, such as the addition or removal of sensors.

The final stage was field validation, where the application was made available to a controlled group of key users, composed of specialists. Data collection in this phase occurred through observation of tool usage and recording of qualitative feedback on response accuracy and user experience. Indicators such as the assertiveness of the generated code and the reduction in analysis time compared to traditional manual methods were analyzed, aiming for final adjustments and the creation of the user manual. Figure 1 illustrates the methodology in a flowchart format.

Figure 1. Project stages flowchart

Source: Original research results

Given the experimental nature and the use of sensitive corporate data, the application followed security and governance protocols. Access to the historian system was strictly via service credentials with read-only permission. The execution environment for the “scripts” was completely isolated from the corporate network, with blocks for external calls and import of unauthorized libraries. To mitigate the risk of AI hallucinations, logical validation mechanisms were implemented, along with the automatic generation of links to the native PI Vision interface, allowing human verification of the veracity of the data presented by the tool.

3. Results and Discussion

AI Agent Communication

The initial stage of the work involved establishing communication with the company’s internal AI agent (LLM) API, using the agent provided by the company’s IT division (GPT 5) to ensure the security of sensitive user “prompt” information. A Python script was developed to test this connection, making REST calls to the agent’s API. The test demonstrated that communication was successfully established, as illustrated in Figure 2, which presents the response obtained from the agent.

Figure 2. Agent API test result

Source: Original research results

Identification of “tags” and timestamps

To obtain data from the PI-System historian, it is essential to identify the “tag” of the variable of interest and the start and end timestamps. The main challenge consisted of extracting this information from the user’s “prompt”. The identification of timestamps was facilitated by the semantic analysis capability of LLMs. However, the identification of “tags” required access to an internal database with the list and description of system “tags”, which was implemented using the Retrieval-Augmented Generation (RAG) technique.

For the initial prototype, a sample list of “tags” and their descriptions was elaborated, according to Table 1. This information was processed and stored in a vector database, allowing the RAG system to identify the most relevant “tag” by similarity with the user’s “prompt”.

Table 1. “Tags” and descriptions to be used in the RAG technique for the initial prototype

LabelDescription
U05.STATE.SVStatus of generating unit 05. It can assume the values: synchronized, stopped, under maintenance, or running idle.
U05.ACTIVE POWER.AVActive power of Unit 05
U15.ACTIVE POWER.AVActive power of Unit 15
U14.ACTIVE POWER.AVActive power of Unit 14

Source: Original research results

Tests performed with the agent API demonstrated the ability to correctly identify a single “tag”, as shown in Figure 3, and multiple “tags” from a single “prompt”, according to Figure 4. Subsequently, the agent was instructed to identify both the “tags” and the “timestamps” and return the response in JSON format, which aligned with expectations, as evidenced in Figure 5.

Figure 3. Result of the “tag” identification test

Source: Original research results

Figure 4. Result of the multiple “tag” identification test

Source: Original research results

Figure 5. Final result of the tag and timestamp identification stage

Source: Original research results

PI-System Data Acquisition

After identifying the “tags” and timestamps, PI-System data extraction was performed using the PI Web API (AVEVA, 2025), which allows obtaining historical data via REST calls, returning them in JSON format. An example of an analog quantity data request response is presented in Figure 6.

Figure 6. Example of PI Web API data request response

Source: Original research results

The PI-System server sends data containing timestamps, values, and quality flags. For the prototype, the “Recorded” method was chosen to collect raw data, which is then processed in Python to apply interpolation at fixed intervals, ensuring periodicity and facilitating analysis. In summary, the agent’s response is used to perform the REST call to the PI server, with the “tag” and timestamps as parameters, and the result is temporarily stored for processing.

Data Analysis

With the “tags”, timestamps, and extracted PI data, the agent was instructed to assist in the final analysis through “prompt” engineering. In this stage, the agent receives the data format and generates the necessary JavaScript code for the analysis, which is executed in the user’s environment (web browser). The “prompt” also guides the treatment of analog and discrete data, including the possible values for discrete quantity “tags”, obtained from an internal database via RAG.

The agent was instructed to use basic pre-implemented functions in a JavaScript file, such as calculating statistics (mean, maximum, minimum), plotting graphs, crossing thresholds, calculating total duration, backward search, and calculating energy. The signatures and descriptions of these functions were made available to the agent via the RAG system, optimizing the use of “tokens” and increasing accuracy. If the user’s request is not covered by a pre-implemented function, the agent is authorized to generate the complete code logic.

An example of code generation for plotting the active power of a unit and calculating the time it remained above a threshold is shown in Figure 7. The agent correctly used the “plot()” and “totalDuration()” functions. To demonstrate the ability to generate unplanned codes, a request for parameterized plotting of the active powers of U15 (Y-axis) and U13 (X-axis) was submitted, resulting in the creation of a specific function by the agent, as seen in Figure 8. This highlights the “token” savings provided by ready-made functions.

Figure 7. Code generated by the agent (example 1)

Source: Original research results

Figure 8. Agent-generated code (example 2)

Source: Original research results

User interface and “back-end”

A simple user interface was implemented on a web platform using the React library and the Node.js runtime environment, as illustrated in Figure 9. The user enters a “prompt” in a text field and, upon submission, the following steps are executed sequentially: the “prompt” is sent to the Python “back-end”; the agent obtains the “tags” and timestamps; data is extracted from the PI-Server; the agent generates the analysis code; the JavaScript code and PI data are returned to the “front-end”; and the code is executed on the “front-end”.

Figure 9. User interface

Source: Original research results

The “back-end” architecture, detailed in Figure 10, is built with the Python Flask framework, which manages the application’s “endpoints”. Requests are processed in stages that include identifying “tags” and “timestamps”, data extraction, and analysis code generation, with all intermediate results displayed to the user. For security, code execution in the “front-end” occurs in an isolated environment (“iframe sandbox”) with restricted permissions, preventing risky operations.

Figure 10. “Back-end” function structure

Source: Original research results

Other “back-end” mechanisms include Python functions to transform discrete data values into text (acronyms), process discrete data for “square wave” plotting, interpolate fixed-step data, generate URLs for PI-Vision for user verification, and apply security filters to AI-generated code. The RAG mechanism, which provides the agent with information about pre-implemented functions and the “tags” database, is configured in a web interface for the company’s internal agent configuration and is automatically executed by the API.

Application Results

The initial tests of the assistant focused on common requests, such as data plotting and statistical value calculations. In the first analysis, the system correctly identified the active power “tag” of generator unit 14 and plotted the previous day’s data, as illustrated in Figure 11.

Figure 11. Result for simple analog quantity analysis

Source: Original research results

In a second analysis, the agent plotted the active power of two generating units in separate “subplots” and calculated the time each remained above 700 MW, presenting the results satisfactorily in Figure 12.

Figure 12. Result for analysis of two analog quantities

Source: Original research results

For discrete variables, the assistant plotted the state of the generating unit and indicated the number of transitions to a specific state (synchronized), as shown in Figure 13. In a backward analysis test, the system reported the dates of the last five synchronization occurrences of unit U05, using a function that searches for past events in time windows, with the result presented in Figure 14.

Figure 13. Result for discrete magnitude analysis

Source: Original research results

Figure 14. Result for retroactive analysis

Source: Original research results

The “PI-ADHOC” functionality was demonstrated, allowing the user, by clicking a button on the interface, to be redirected to a PI-Vision page with the visualization already filtered by the requested “tags” and “timestamps”, as exemplified in Figure 15 and in the PI-Vision screen in Figure 16. This functionality allows the user to verify the veracity of the data presented by the tool directly in the historian system.

Figure 15. Example used for demonstration of “PI-ADHOC” functionality

Source: Original research results

Figure 16. PI-Vision Screen

Source: Original research results

Verified benefits

The results obtained demonstrate the project’s viability, confirming the possibility of using an LLM agent for querying and analyzing operational data from the PI-System via natural language. The main benefit observed is the efficiency in creating graphs and performing analyses, overcoming the technical barriers of the conventional method. The tool streamlines the query and analysis process, even for users with extensive knowledge of the database. While manual methods can take 2 to 10 minutes for simple analyses, and up to hours for more complex ones, the developed solution processes analyses in 5 to 30 seconds, depending on complexity.

Tool expansion

The expansion of the tool included the ability to incorporate a larger set of “tags” into the system, using a specific internal agent “endpoint” for programmatic updating of the RAG database. This allows for the automation of knowledge base updates when the PI system is modified. Additionally, a “feedback” system was implemented after each AI response, as shown in Figure 17, allowing users to evaluate the usefulness of the responses. An administration page, shown in Figure 18, was created to track suggestions and criticisms, aiding in measuring user satisfaction and identifying new ready-made functions.

Figure 17. “Feedback” system added to each AI response

Source: Original research results

Figure 18. Administration page for “feedbacks” for monitoring

Source: Original research results

4. Conclusion

The research proposed the development of a conversational interface based on Large Language Models for the PI System, with the aim of democratizing access to information and increasing the speed of consultation and analysis of operational data. The feasibility of the solution was verified through a functional prototype that interpreted natural language commands, correctly identified “tags” and time intervals, and automatically generated JavaScript “scripts” for creating dynamic charts and textual and numerical analyses. The system’s effectiveness was observed in manipulating analog and discrete variables for relatively simple analyses. The integration of “prompt” engineering and Retrieval-Augmented Generation (RAG) techniques was essential for the precise interpretation of user intentions and for anchoring responses in plant-specific data, overcoming the limitations of the language models’ prior knowledge. This advancement significantly streamlined the process of consulting and analyzing operational data, reducing response time from minutes or hours to a few seconds, and democratized access to information in the corporate environment, allowing professionals with less technical experience to perform complex analyses.

However, the tool, in its current configuration, presents some limitations. It does not offer real-time plotting for continuously updated variables, nor does it support a continuous “chat” mode for more complex interactions that leverage prior context. Additionally, the system is not capable of analyzing requests about specific events in the historian, focusing primarily on the behavior of values for “tags”. For future studies, it is suggested to implement real-time plotting functionalities, develop a continuous “chat” mode for contextual interactions, and expand the analysis capability to include events, which would broaden the tool’s utility. This study, therefore, contributes significantly to innovation in industrial data management, paving the way for the optimization of decision-making processes and the democratization of access to technical information.

Bibliographic References

AVEVA. 2025. PI Web API Reference. Disponível em: https://docs.aveva.com/bundle/pi-web-api-reference/page/help.html. Acesso em: 05 set. 2025.

Brynjolfsson, E.; Li, D.; Raymond, L.R. 2023. Generative AI at work. National Bureau of Economic Research [NBER], Cambridge, MA, EUA.

Chen, M.; Tworek, J.; Jun, H.; Yuan, Q.; Pinto, H. P. O.; Kaplan, J.; Edwards, H.; Burda, Y.; Joseph, N.; Brockman, G.; Ray, A.; Puri, R.; Krueger, G.; Petrov, M.; Khlaaf, H.; Sastry, G.; Mishkin, P.; Chan, B.; Gray, S.; Ryder, N.; Pavlov, M.; Power, A.; Kaiser, L.; Bavarian, M.; Winter, C.; Tillet, P.; Such, F. P.; Cummings, D.; Plappert, M.; Chantzis, F.; Barnes, E.; Herbert-Voss, A.; Guss, W. H.; Nichol, A.; Paino, A.; Tezak, N.; Tang, J.; Babuschkin, I.; Balaji, S.; Jain, S.; Saunders, W.; Hesse, C.; Carr, A. N.; Leike, J.; Achiam, J.; Misra, V.; Morikawa, E.; Radford, A.; Knight, M.; Brundage, M.; Murati, M.; Mayer, K.; Welinder, P.; McGrew, B.; Amodei, D.; McCandlish, S.; Sutskever, I.; Zaremba, W. 2021. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374.

International Society of Automation [ISA]. 2015. Human machine interfaces for process automation systems (ANSI/ISA-101.01-2015). ISA, Research Triangle Park, NC, EUA.

Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; Küttler, H.; Lewis, M.; Yih, W.; Rocktäschel, T.; Riedel, S.; Kiela, D. 2020. Retrieval-augmented generation for knowledge-intensive NLP tasks. Advances in Neural Information Processing Systems 33: 9459-9474.

Maddigan, P.; Susnjak, T. 2023. Chat2VIS: generating data visualisations via natural language using ChatGPT, Codex and GPT-3 large language models. IEEE Access 11: 45181-45193.

McKinsey & Company. 2023. The economic potential of generative AI: the next productivity frontier. Disponível em: <https://www.mckinsey.com/capabilities/mckinsey-digital/our-insights/the-economic-potential-of-generative-ai-the-next-productivity-frontier>. Acesso em: 08 dez. 2025.

Article originating from the Final Course Work of the Specialization in Data Science and Analytics for Operations from POLI USP PRO

To learn more about the course, click here.

You may also like

Data Science And Analytics For Operations

November 19, 2026

Polyp-YOLO: an efficient, low-latency detector for polyps in colonoscopies

The early detection of colorectal polyps is crucial for the prevention of colorectal cancer, and real-time computer-aided detection (CADe) systems have shown gains in endoscopic practice. The objective was to develop and validate a lightweight colorectal polyp detector, based on the YOLO architecture, capable of operating on restricted hardware with high precision and low latency. The methodology used public datasets of endoscopic images, partitioning the Kvasir-SEG dataset for training and internal validation, and CVC-ClinicDB and ETIS-Larib Polyp DB for cross-dataset evaluation. Lightweight variants of the YOLOv8, YOLO11, and YOLO26 families with 640×640 pixel input were evaluated. A grid search tested 70 combinations of optimizers and activation functions, and identified AdaBelief and LeakyReLU as the configuration with the best generalization. The optimization pipeline applied unstructured pruning, knowledge distillation, and fine-tuning. The optimized YOLO11n-seg model outperformed the higher-capacity architecture (YOLO26m-seg) in mAP50 and showed similar performance in F1-Score, operating with approximately seven times fewer parameters. It achieved an mAP50 of 0.7929 and an F1-Score of 0.7514 on the ETIS-Larib dataset, and fast inference was demonstrated in different formats, with real-time latencies. The explainability of predictions was validated by Grad-CAM activation maps. The proposed solution demonstrated itself to be a promising experimental tool for diagnostic support, with technical feasibility for integration into environments with reduced computational power, although it requires future clinical validation.

Keywords: Computer-aided detection; Edge computing; Hyperparameter optimization; Endoscopic image segmentation; Medical computer vision.

Data Science And Analytics For Operations

November 19, 2026

Multi-touch Attribution in E-commerce: A Comparison between Markov Chains and Last-Click

The research investigated Multi-touch Attribution (MTA) Models in e-commerce, seeking to overcome the limitations of the Last-Click model, widely used in the market. The objective was to compare the performance of first-order Markov Chains with Last-Click and Position-Based approaches, identifying the value of assistance channels frequently ignored. To this end, Markov Chain algorithms were applied to a large volume of purchase journey data from the Google Merchandise Store, extracted via BigQuery. The study probabilistically mapped the purchase journey and calculated the Removal Effect to quantify channel relevance. The results demonstrated that data-driven models identified the strategic role of discovery (awareness) and assistance channels, which Last-Click neglected in 65% of complex journeys. Simulated financial analysis indicated an approximate 28% hidden efficiency in Cost Per Acquisition (CPA) for Paid Search, compared to the Last-Click model. It was concluded that Markov Chains allowed for a more accurate mapping of purchase journeys, validating the technical feasibility of the modeling and providing evidence for more efficient budget allocation in digital media, mitigating the risk of early divestment in crucial channels.

Keywords: Assistance channels; Data science; E-commerce; Digital marketing; Media optimization.

Data Science And Analytics For Operations

November 19, 2026

Predictive Analysis Methodology for Performance Optimization in E-commerce: Correlation between Public Data and Paid Media

A predictive analysis methodology was developed for e-commerce, integrating transactional data and public search trends. The objective was to develop and validate a predictive model, based on machine learning algorithms, capable of correlating organic search trends with sales performance and paid media costs in the Beauty and Health category of Brazilian e-commerce. The Brazilian E-Commerce Public Dataset by Olist and data from Google Trends were used, processed in Python with the Random Forest Regressor algorithm. A moderate inverse correlation (r = -0.43) with a seven-day lag was identified between organic search volume and purchase. Initial models, based solely on behavioral variables, presented insufficient metrics (R² = -0.47; MAE of R$ 2,120.54). The incorporation of microeconomic (average ticket and shipping) and macroeconomic (exchange rate and Ibovespa index) variables raised the R² of the final model to 0.29, with an MAE of R$ 1,489.63, representing a 24.7% reduction in error compared to the baseline. Temporal cross-validation showed that, in periods of mature operation (2018), the model achieved an R² of 0.42. It was concluded that isolated search volume explains the moment of consumer interest, but not the financial magnitude of sales, making the fusion with transactional and economic data mandatory for predictive viability.

Keywords: Beauty and Health; Consumer Behavior; Google Trends; Machine Learning; Time Series.

Data Science And Analytics For Operations

November 19, 2026

Supply chain risk index for predictive analysis of delays in industrial supply chain

This study addressed the development of a Supply Risk Index (SRI) to predict delays in purchase orders from a multinational company in the pulp and paper equipment sector, aiming to support the prioritization of expediting in the supply area. The objective was to estimate in advance the probability and duration of delays in purchase orders, increasing supply chain risk visibility. The methodology employed machine learning techniques, notably the LightGBM algorithm, applied to a historical database of over 150,000 orders extracted from an ERP system. This database contained information on suppliers, material groups, order value, planned delivery time, and open order load. A classification model was developed, with class balancing via SMOTE, to estimate the probability of delay, and a regression model to predict the number of days of delay. Model evaluation used metrics such as F1-score, area under the ROC curve, Brier score, MAE, and RMSE. Interpretability was achieved through SHAP values. The results indicated that the SRI adequately discriminated orders with a higher propensity for delay and provided explanations aligned with the literature on data-driven supply chain risk management. The integration of these components into an automated production workflow allowed for the generation, for each open order, of the probability of delay, a risk score, and the main explanatory factors, supporting the prioritization of supplier expediting.

Keywords: Predictive analytics; Machine learning; Supply chain; Purchase order expediting; LightGBM.

Data Science And Analytics For Operations

November 19, 2026

Turnover Prediction with Machine Learning in People Analytics

Voluntary employee turnover represents a recurring strategic challenge in organizations, with costs estimated between 50% and 200% of the annual salary of each replaced employee. The study aimed to develop, validate, and interpret a predictive turnover model based on machine learning algorithms, evaluating its technical feasibility using a public reference database. The IBM HR Employee Attrition dataset, synthetic in nature, was used, comprising 1,470 records and 35 demographic, professional, and behavioral variables. Three supervised classification algorithms (Logistic Regression, Random Forest, and XGBoost) were implemented and compared, with class imbalance handled by the SMOTE technique applied exclusively to the training set. The XGBoost model with hyperparameters optimized by RandomizedSearchCV and five-fold stratified cross-validation showed the best performance, with an AUC-ROC of 0.8651 on the test set and a Recall of 84.4% on the positive class with an optimized decision threshold. Interpretability analysis using the SHAP framework identified overtime, monthly compensation, and tenure as the main predictors of departure, results consistent with the people management literature. An illustrative financial impact simulation suggested potential economic return, conditioned on validation with real data and calibration of assumptions. The results confirmed the technical feasibility of the approach and its potential value as a decision support tool in People Analytics.

Keywords: Supervised classification; Algorithmic interpretability; Human resources; Talent retention; Voluntary turnover.

Data Science And Analytics For Operations

November 19, 2026

Event-Driven Distributed Cloud Architecture for Bank Credit Contracting

Digital transformation in the banking sector required the modernization of credit flows that were still dependent on legacy systems and manual activities. These generated high operational costs, inconsistency risks, and contracting times of up to 72 hours for the FINIMP product in a large Brazilian bank. Given this scenario, the study aimed to demonstrate that the adoption of a cloud-based microservices-oriented and event-driven architecture could significantly reduce total processing time and operational costs, through the integral automation of the flow and the elimination of manual steps. The research was characterized as applied, with a mixed approach, structured as action research and a single case study. It involved semi-structured interviews, direct observation of the process, documentary analysis, collection of SLA metrics, and the iterative development of a prototype in .NET Core and Angular, executed in a containerized local environment, with scaling designed for AWS. The solution was modeled with strategic Domain-Driven Design, definition of bounded contexts, and application of the Saga pattern for distributed transactional coordination. The results indicated the technical feasibility of the proposed architecture, with a reduction in the estimated timeframe to approximately two hours, improvement in p95 latency of critical steps, increased throughput under controlled load, and an estimated reduction in cost per 1,000 operations processed. There was also a strengthening of security and traceability controls. It was concluded that the proposed approach delivered measurable gains in efficiency, scalability, and operational governance.

Keywords: FINIMP; Idempotence; Microservices; Cost optimization; Distributed systems.