Article

Data Science And Analytics For Operations

November 19, 2026

SUPPLY CHAIN SIMULATION FOR TRAINING ARTIFICIAL INTELLIGENCE ALGORITHMS

Leandro Murback Pereira; Mayara Rohenkohl Ricci

DOI: 10.22167/2675-6528-202603838

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

Supply chain management faces inefficiencies, such as the Bullwhip Effect, and cost trade-offs that require environments to train and compare inventory control algorithms with multi-objective performance. To meet this need, the study aimed to develop a stochastic, discrete-event simulation environment, based on graph theory and faithful to the Beer Game dynamics. In it, a genetic algorithm, focused on optimizing inventory policies (s, S), was compared with multi-agent reinforcement learning, which assigned each node an agent with a graph neural network and proximal policy optimization, evaluated by the SCOR model and the Bullwhip Effect ratio. The experiments were conducted with ten paired seeds of identical demand, managed costing, and freight market for the agents of each pair, using a single-product anchor replicated in six scenarios and a multi-objective optimization of cost and delivery time. The genetic algorithm proved to be simultaneously dominant in cost and service level in all scenarios. Multi-agent learning achieved only the lowest Bullwhip Effect ratio, a result of order under-sizing, not effective coordination, dissipating when meeting a relevant portion of the demand. It was concluded that the central contribution lies in the simulation artifact, whose first application revealed a negative honest discovery, indicating that the bottleneck of multi-agent learning lies in the method and not in the environmental conditions.

Keywords: Genetic algorithm; Multi-agent reinforcement learning; Supply chain; Bullwhip effect; Discrete-event simulation.

1. Introduction

Contemporary supply chains exhibit increasing complexity, with their performance being evaluated across multiple dimensions, including reliability, responsiveness, cost, and asset efficiency (Reddy et al., 2019). In this dynamic scenario, effective management and process optimization become fundamental strategic challenges.

One of the most documented inefficiencies in this context is the Bullwhip Effect, a phenomenon where order oscillations amplify as they move upstream in the chain, in response to variations in customer demand. The causes of this effect include demand signaling, rationing, order batching, and price changes (Lee et al., 1997). Lead time for information and materials has a significant impact on the amplification of this effect (Nienhaus et al., 2006). Furthermore, logistics decisions often involve cost trade-offs, where reducing one component may increase another, making total cost the relevant evaluation metric (Amaral and Guerreiro, 2014).

For the study of these dynamics, the Beer Game is a traditional model characterized by a chain in successive levels, where the orders of one link are decided by participants without full network visibility and are subject to delays. The human behavior of anchoring, which leads to underestimating in-transit stock, amplifies the variance of orders and system instability (Guimarans et al., 2010; Sterman, 1989). Thus, the Beer Game has become a safe and reproducible laboratory for examining stock dynamics and training replenishment policies. Simulation environments, especially discrete-event ones, are crucial for representing operational inventory and replenishment problems, allowing for scenario analysis and strategy improvement without exposing the real operation to losses (Tako and Robinson, 2012; Afridi et al., 2020).

Intelligent supply chain management requires algorithms capable of reacting to environmental volatility. At this point, two classes of control agents stand out. The first are Genetic Algorithms, which statically and offline optimize the inventory parameters of each node, such as (s, S) policies, evolving a population of solutions over generations through selection, crossover, and mutation operators (Kumar et al., 2012; Deb et al., 2002). The second is Multi-Agent Reinforcement Learning, in which each node is controlled by an agent that observes its local state and learns a dynamic replenishment policy. This approach frequently incorporates graph neural networks, allowing the agent to aggregate the characteristics of neighboring nodes and capture network topology dependencies, rather than just isolated local information (Kotecha and Chanona, 2025; Ziegner et al., 2025).

Despite the potential of these artificial intelligence approaches, there is a gap in the fair and symmetric comparison of their performance in an environment that faithfully replicates the dynamics of a complex supply chain. The absence of a standardized and robust environment for training and evaluating these algorithms prevents a clear understanding of their capabilities and limitations in varied scenarios. The need for a simulation environment that allows the exploration of trade-offs between cost, service level, and the Bullwhip Effect, under an evaluation aligned with recognized models such as SCOR (Reddy et al., 2019; Wulandari et al., 2024), justifies the construction and use of such a tool to advance knowledge on the application of AI in supply chain management.

Given this scenario, the objective of this work is to develop a discrete-event stochastic simulation environment, based on graph theory and faithful to the dynamics of the Beer Game, and in it fairly compare the Genetic Algorithm and Multi-Agent Reinforcement Learning, mapping the trade-off between cost, service level, and the Bullwhip Effect under an evaluation aligned with the SCOR model.

2. Material and Methods

The present research was characterized as experimental and quantitative, conducted *in silico* through a discrete event simulation computational environment. The experiments were executed under controlled seeds, ensuring the reproducibility of the trajectories. This environment did not constitute a digital twin, but a synthetic system based on the Beer Game, intended for the training and comparison of artificial intelligence agents, serving to evaluate control policies before exposing the real operation to losses (Tako and Robinson, 2012, p. 22).

The simulation environment was modeled as a directed graph G = (V, E), where the vertices represented the facilities of the supply chain, including suppliers, manufacturers, transshipment terminals, distribution centers, wholesalers, and retailers. The edges represented the multimodal transport connections, with orientation in the direction of material flow, similar to architectures that process the supply chain as a graph of directed edges by neural networks (Ziegner et al., 2025, p. 11). The network was organized in layers, with each layer arranged in a column and the port and airport terminals inserted as transshipment nodes.

Each node maintained a state composed of inventory on hand, accumulated shortage quantity, and in-transit quantity. The supply chain links decided their orders without full network visibility and under delays. The demand received by a node in a period corresponded to the order placed by the downstream node in the previous period (Guimarans et al., 2010, p. 134). In each period, the simulation engine executed a fixed event schedule for each node, which included receiving shipments, fulfilling the *backlog* and new demand, consulting the agent for order decision, shipping new shipments with modal delay, and calculating costs.

The cost determined each period was broken down into inventory maintenance, shortage, order issuance, and waste. Maintenance was charged on the stock on hand plus material in transit, and shortage on the quantity not met, at unit rates of one and two monetary units (Guimarans et al., 2010, p. 135). The fixed issuance cost was charged when there was an order, and the waste cost applied to the discarded quantity. The transportation cost was not included in the objective optimized by the agents, being determined proportionally to the distance traveled and the mode used (Okyere et al., 2022, p. 7), weighted by the prevailing freight rate.

The end-customer demand was generated by a stochastic process that combined a base level, a seasonal component, and Gaussian shocks, while remaining reproducible by seed. Freight rates were modeled as first-order autoregressive processes correlated across modes, preserving the empirical co-movement of rates (Shackman et al., 2021, p. 260). Both the demand generator and the autoregressive form constituted modeling decisions of this work.

Three classes of agents operated on the environment: static heuristic policies, genetic algorithm, and multi-agent reinforcement learning. The genetic algorithm (GA) statically and *offline* optimized the inventory parameters (s, S) of each node, encoded in a chromosome. Population evolution occurred through tournament selection operators, two-point crossover, and Gaussian mutation (rate of 0.05, scale of 8.0), with one-individual elitism, over two hundred generations for a population of one hundred individuals (Kumar et al., 2012, p. 655). The fitness of each chromosome was evaluated by the managed cost obtained in the simulation.

Multi-agent reinforcement learning (MARL) assigned each node an agent that observed its local state, composed of on-hand inventory, shortage, in-transit material, and recent demand and order windows. The agent decided a continuous action, subsequently mapped to the (s, S) parameters of the policy (Kotecha and Chanona, 2025, pp. 17-18, 20). The policy was parameterized by a two-layer graph neural network (GNN GraphSAGE) and trained by proximal policy optimization (PPO) with clipped objective (Schulman et al., 2017). Generalized advantage estimation (GAE) was used for temporal difference calculation (Schulman et al., 2016, p. 5), with the value of the last state of the truncated episode estimated by bootstrap (Pardo et al., 2018, p. 6). Each agent’s reward corresponded to the symmetric of the managed cost, ensuring the symmetry of the comparison with the genetic algorithm.

The hyperparameters for multi-agent reinforcement learning included the PPO algorithm (CTDE and IPPO variants), a two-layer GraphSAGE graph neural network, a hidden dimension of sixty-four, a learning rate of 5 x 10^-4, a discount factor (γ) of 0.99, a clip parameter (ε) of 0.20, GAE (λ) of 0.95, a value coefficient of 0.50, and an entropy coefficient of 0.01. The optimizer used was Adam, with a training budget of sixty iterations, eight episodes, and ten epochs, and a training horizon of fifty periods.

The performance was evaluated by indicators aligned with the SCOR model (Reddy et al., 2019, p. 43), which organized the measurement of the chain into the dimensions of reliability, responsiveness, flexibility, cost, and assets. Order fulfillment rate, cycle time, inventory days, and total cost were adopted as raw indicators. To make them comparable, De Boer’s Snorm normalization was applied, which rescaled each indicator between the worst and best value achieved in the set of compared agents (Wulandari et al., 2024, p. 744).

The intensity of the Bullwhip Effect was quantified by the ratio between the variance of the issued orders and the variance of the final customer demand, calculated per layer (Chen et al., 2000, p. 437). The difference between the agents was evaluated through the Student’s t-test, performed on the seed-paired variant, with ten repetitions (n = 10). This procedure calculated the difference between the outcome of the evaluated agent and the genetic one in each repetition, with the p-value expressing the bilateral probability of observing such an extreme statistic under the null hypothesis of zero difference (Nienhaus et al., 2006, p. 554).

The experiments were conducted in six scenarios, varying a single dimension from a frozen *baseline*. The scenarios included: *Baseline* (C1), Volatile Demand (C2), Average Capacity (C3), Deep BoM (C4), Network Scale (C5), and Multimodal (C6). Each scenario was motivated by literature references to stress variation, instantiate dilemmas, or amplify decision units. Additionally, a multi-objective optimization was performed, where the transportation mode was a learned decision, aiming to trace the Pareto frontier between cost and *lead-time* (Peng et al., 2023, p. 1757).

In the single-objective comparison, the single-product scenario with one manufacturer, two suppliers, two distributors, and three customers was evaluated over ten independent seeds across forty test periods. The heuristic and genetic policies were compared with four variants of multi-agent reinforcement learning (marl-ctde, marl-ippo, marl-dyn-ctde, and marl-dyn-ippo), under the same managed cost and the same seed for all agents in each pair. In multi-objective optimization, the choice of modal became a learned decision, incorporating transportation into the objective, and the genetic algorithm migrated to the NSGA-II multi-objective formulation (Deb et al., 2002, pp. 184, 185).

3. Results and Discussion

The research results revealed a clear distinction in the performance of the inventory control algorithms evaluated in the discrete-event stochastic simulation environment. The comparative analysis, conducted in two main stages – a mono-objective evaluation in single-product anchor scenarios and a multi-objective optimization with transportation mode selection –, allowed mapping the trade-off between cost, service level, and the Bullwhip Effect. The experiments were conducted under symmetric conditions, with ten paired seeds of identical demand, managed costing, and consistent freight market for all agents in each pair, ensuring that the observed differences were attributable to the control policies and not to environmental variations.

The first phase of the evaluation focused on the single-product anchor, where the genetic algorithm demonstrated notable superiority over multi-agent reinforcement learning variants and the heuristic policy. The genetic algorithm recorded an average managed cost of $40,218, significantly lower than the $129,841 of the best multi-agent variant in cost, marl-ippo. In terms of service level, the genetic algorithm achieved an order fulfillment rate of 96.6%, surpassing the 50.2% of the best multi-agent variant in service, marl-ctde. These results indicate that the static and offline optimization of the (s, S) policy parameters by the genetic algorithm was consistently more effective in inventory management and demand fulfillment.

Despite the dominance of the genetic algorithm in cost and service level, the Bullwhip Effect analysis presented a peculiar finding. The marl-ippo variant of multi-agent learning obtained the lowest Bullwhip Effect ratio, with a value of 9.8, in contrast to the value of 1,145 recorded by the genetic algorithm. However, a deeper investigation revealed that this low ratio was not an indicator of effective coordination or chain stability, but rather an artifact of extreme order undersizing. The marl-ippo achieved this low order variance precisely because it barely issued any orders, resulting in a fill rate of only 11.1%.

This interpretation is crucial, as it demystifies the apparent advantage of multi-agent learning in mitigating the Bullwhip Effect. The Bullwhip Effect ratio, defined by the relationship between the variance of issued orders and the variance of final customer demand (Chen et al., 2000), tends to increase with the volume effectively ordered. When an agent practically does not place any orders, the variance of its orders is naturally low, which artificially reduces the Bullwhip Effect ratio, without this representing a deliberate smoothing of the flow or intelligent coordination of the chain. The genetic algorithm, by meeting most of the demand, incurred a higher Bullwhip Effect, but in a way consistent with its high service rate.

Paired t-tests confirmed the statistical significance of these differences, with t-values for cost (132.8), service (-155.8), and Bullwhip Effect (-14.9) all having p < 0.001. The robustness of the failure of multi-agent simultaneous training learning against an optimized base-stock policy had already been observed in previous studies (Ziegner et al., 2025), which corroborates the intrinsic difficulty of this approach in complex scenarios. The symmetric and fair comparison in the developed simulation environment was fundamental to isolate the impact of control policies, eliminating demand variance as a differentiation factor.

Robustness across scenarios and multi-agent learning variants

To evaluate the robustness of the findings, the experiment was replicated in six distinct scenarios, each varying a specific dimension of the supply chain from the uni-product anchor. The manipulated dimensions included demand volatility, capacity slack, bill of materials depth, network scale, and the presence of multiple transportation modes. The four variants of multi-agent reinforcement learning (marl-ctde, marl-ippo, marl-dyn-ctde, and marl-dyn-ippo), parameterized by a graph neural network with proximal policy optimization, were compared under these conditions, differing in their training scheme (centralized with critic or independent policy) and the nature of the policy (frozen or re-decided each period).

In all six scenarios, the genetic algorithm maintained its dominance in terms of lower managed cost and higher service rate. The genetic algorithm’s margin of superiority, instead of decreasing with increasing scenario complexity, widened, reaching cost t values of 384.1 in the deep bill of materials scenario and 613.4 in the multimodal scenario. This suggests that the effectiveness of statically optimized (s, S) policies is highly resilient to diverse supply chain operational and structural conditions, from volatile demand to network and transportation modal complexity.

The multimodal scenario provided the most compelling evidence that the apparent advantage of multi-agent learning in the Whiplash Effect ratio was an artifact of order undersizing. In this scenario, marl-ippo managed to increase its fulfillment rate to 41.4%, a still modest value, but significantly higher than in previous scenarios. With this increase in fulfillment, its Whiplash Effect ratio soared to 11.953, surpassing that of the genetic algorithm and losing the only axis on which it had excelled. This result demonstrates that, by attempting to meet a more relevant portion of the demand, multi-agent learning revealed its inability to effectively coordinate the chain, amplifying order oscillations.

The adaptability and lower variance attributed to the method by Kotecha and Chanona (2025) were not reproduced in this study, suggesting that the gains reported by these authors may be conditioned to specific regimes and scales. Ablations performed to dismiss the hypothesis of undertraining, testing interventions such as imposing a service floor, adjusting exploration, adopting a shared central critic, and iterative training schemes, failed to close the performance gap with respect to the genetic algorithm. Even when service was significantly increased to 66.1% with a service floor, this occurred at the cost of triggering cost and the Whiplash Effect.

These robust findings indicate that the negative outcome of multi-agent learning is not attributable to insufficient training, but rather to an inherent bottleneck in learning and credit assignment difficulty in more complex scenarios (Ziegner et al., 2025). The simulation environment, however, did not prove intractable, as a structured heuristic policy, combining dependent demand forecasting and proximity-based routing, managed to recover a service level close to 99% under the same engine. This reinforces the conclusion that the observed limit for multi-agent learning stems from the employed method rather than the simulation’s environmental conditions.

Multiobjective optimization: the Pareto frontier

In the multi-objective optimization phase, where the choice of transport modal became a learned decision and the objective was expanded to include delivery cost and time, the genetic algorithm maintained its primacy in the pure cost operating point. Comparing with marl-ippo, the genetic algorithm registered a total cost of $24,790 against $36,210 from the multi-agent. Furthermore, the genetic lead-time was 1.5 periods, while marl-ippo presented 2.79 periods, and the genetic service rate was 98.2% against 21.3% from the multi-agent. All these differences were statistically significant, with p less than 0.001.

The analysis of the Pareto frontier revealed that neither paradigm dominated the entire curve, indicating the existence of trade-offs. The genetic algorithm dominated the entire portion of the curve that prioritized cost, evidencing its superior efficiency on this axis. However, at the extreme of service preference, marl-ippo achieved a point of higher service and lower cost than the corresponding genetic point, albeit with a higher lead-time. This configuration represents a compromise, not complete dominance, suggesting that in situations where service level is the maximum priority and a higher lead-time is acceptable, multi-agent learning may offer an alternative, even if with overall inferior performance.

It is important to note that, due to hardware limitations, the multi-agent training budget in this phase was reduced to four update epochs per iteration, in contrast to the ten epochs used in the single-objective comparison. This restriction may have impacted the multi-agent learning performance, making the favorable verdict for the genetic algorithm a conservative finding. However, even with this caveat, the consistency of the results in favor of the genetic algorithm across multiple scenarios and objectives reinforces its robustness and effectiveness in optimizing inventory policies in complex supply chains.

In summary, the research demonstrated that the genetic algorithm, by optimizing inventory policies (s, S), consistently outperformed multi-agent reinforcement learning in terms of managed cost and service level across all tested scenarios, including multi-objective optimization. The apparent advantage of multi-agent learning in reducing the Bullwhip Effect was identified as an artifact of order undersizing, rather than effective coordination, dissipating as the agent attempted to meet demand. The central contribution of the work lies in the developed simulation artifact, which allowed for a fair and symmetric comparison, revealing an honest negative finding that situates the bottleneck of multi-agent learning in the learning and credit assignment method, rather than in the environmental conditions of the simulated supply chain, directly addressing the objective of comparing the performance of these algorithms.

4. Conclusion

The present study aimed to develop a discrete-event stochastic simulation environment, based on graph theory and faithful to the dynamics of the Beer Game, and in it compare the Genetic Algorithm and Multi-Agent Reinforcement Learning, mapping the trade-off between cost, service level, and the Bullwhip Effect under an evaluation aligned with the SCOR model. It was found that the genetic algorithm, by optimizing inventory policies (s, S), demonstrated consistent superiority in terms of managed cost and service level across all evaluated scenarios, from the single-product anchor to multi-objective optimization. In contrast, multi-agent reinforcement learning achieved the lowest Bullwhip Effect ratio, but this apparent advantage was identified as an artifact of order undersizing, rather than effective supply chain coordination. This low order variance dissipated as the multi-agent agent attempted to meet a more relevant portion of the demand, revealing its inability to sustainably manage oscillations. The robustness of these findings was confirmed in six distinct scenarios and through ablations, indicating that the limited performance of multi-agent learning stems from an inherent bottleneck in its learning and credit assignment method, rather than the environmental conditions of the simulation.

The central contribution of this work lies in the developed simulation artifact, which provided a fair and symmetric environment for the training and comparison of artificial intelligence algorithms in supply chain management. Its first application resulted in a negative honest discovery, showing that multi-agent learning, in the examined simultaneous training scheme, does not reach a well-adjusted evolutionary benchmark. The study’s limitations include the use of ten paired seeds, the post-hoc selection of the best-performing multi-agent variant, the single training budget in the mono-objective comparison and reduced in the multi-objective phase due to hardware constraints, and the variation of a single dimension per scenario, which prevented the analysis of factor interactions. As suggestions for future studies, it is proposed to investigate the service floor under the canonical protocol and explore iterative training schemes, in order to examine the conditions under which the method’s promise of adaptivity may finally be realized.

Bibliographic References

Lee, H.L.; Padmanabhan, V.; Whang, S. 1997. Information distortion in a supply chain: the bullwhip effect. Management Science 43(4): 546-558. Disponível em: <https://doi.org/10.1287/mnsc.43.4.546>. Acesso em: 14 fev. 2026.

Nienhaus, J.; Ziegenbein, A.; Schoensleben, P. 2006. How human behaviour amplifies the bullwhip effect: a study based on the beer distribution game online. Production Planning & Control 17(6): 547-557. Disponível em: <https://doi.org/10.1080/09537280600866587>. Acesso em: 14 fev. 2026.

Reddy, K.J.M.; Rao, A.N.; Krishnanand, L. 2019. A review on supply chain performance measurement systems. Procedia Manufacturing 30: 40-47. Disponível em: <https://doi.org/10.1016/j.promfg.2019.02.007>. Acesso em: 14 fev. 2026.

Article originating from the Final Course Work of the Specialization in Data Science and Analytics for Operations of 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

Impact of BDGD inconsistencies on the calculation of technical losses in electric power distribution

Technical losses in the Brazilian electric distribution system represented a cost exceeding R$ 11 billion in 2024, with the regulatory calculation based on the Distributor’s Geographic Database (BDGD). Inconsistencies in the cadastral data of this database can compromise the fidelity of power flow simulations and the accuracy of the technical losses determined. The research evaluated the impact of different types of BDGD inconsistencies on the calculation of technical losses in electric energy distribution systems. To this end, an automated data pipeline was developed in Python, which included data extraction via the ANEEL API, import into the DuckDB relational database, topological reconstruction of the network using a Breadth-First Search (BFS) algorithm, conversion of data to the OpenDSS simulator via the bdgd2opendss library, and power flow simulation. Ten inconsistency verification rules were defined, classified into categories that prevent or may prevent simulation, and those that allow it but alter the technical loss percentage. The results indicated that inconsistencies not tolerated by ANEEL, such as phasing errors and unmatched load curves, prevented simulation. Inconsistencies tolerated or not covered by the GeoPerdas regulatory script, such as incorrect conductor and transformer parameters, introduced errors in the loss calculation without making simulation impossible. It was concluded that the quality of BDGD data is a determining factor for the reliability of power flow simulations. Additionally, the BDGD Analyzer was developed, a desktop application with a graphical interface that automates the pipeline and provides indicator dashboards and interactive maps, publicly released on GitHub.

Keywords: BDGD; electric energy distribution; OpenDSS; technical losses; data quality.

Data Science And Analytics For Operations

November 19, 2026

Application of Generative Artificial Intelligence as a Support Tool for Decision Making in Predictive Maintenance

The increasing use of operational data in industry has expanded the relevance of predictive maintenance for identifying equipment failures. The reliability and applicability of Generative Artificial Intelligence (GAI) as a tool to support industrial data analysis were evaluated, comparing its classifications with those of a supervised Random Forest model. The research used the Al4l 2020 Balanced Predictive Maintenance Dataset and its original training and testing sets. After training and optimizing the Random Forest, 198 valid records were selected from the test set, with 98 failure cases and 100 non-failure cases. The same records were analyzed by GPT-40 with structured prompts and a few-shot prompting strategy. Performance was measured by accuracy, precision, recall, and F1-score, in addition to the analysis of divergences and technical justifications generated by GPT-40. The Random Forest outperformed GPT-40 in all metrics, with an accuracy of 90.40% (RF) vs. 78.28% (GPT-40), precision of 97.59% (RF) vs. 80.22% (GPT-40), recall of 82.65% (RF) vs. 74.49% (GPT-40), and F1-score of 89.50% (RF) vs. 77.25% (GPT-40). Despite the lower quantitative performance, GPT-40 produced classifications and technical justifications in natural language, indicating complementary potential to supervised models in data interpretation and decision-making support.

Keywords: data analysis; decision support; generative artificial intelligence; predictive maintenance; supervised models.

Data Science And Analytics For Operations

November 19, 2026

Failure recognition by images: computer vision for defect identification in industrial processes

The automation of quality inspection in industrial processes, driven by Industry 4.0, faces challenges due to the dependence on manual methods, which are prone to errors and have scalability limitations. A computer vision system was developed and evaluated to identify defects in metal parts from digital images, aiming to reduce reliance on manual inspection. The research, of an applied nature and with a quantitative experimental approach, used image datasets from public repositories of industrial anomalies. The data were pre-processed and augmented, and a convolutional neural network was implemented, combining a custom architecture and transfer learning. The dataset was divided into training, validation, and testing subsets. The results demonstrated the model’s effectiveness in defect classification, evaluated by metrics such as accuracy, precision, recall, and F1-score, and analysis of the confusion matrix. An initial classification capability was observed, although the results require further detail and visual evidence for in-depth analysis. It was concluded that the developed model met the proposed objectives, showing potential for application in industrial environments requiring greater reliability, standardization, and efficiency in quality control.

Keywords: Deep learning; Quality control; Automated inspection; Digital manufacturing; Convolutional neural networks.

Data Science And Analytics For Operations

November 19, 2026

Optimization of public school infrastructure in Cuiabá: accessibility, territorial restriction and allocation scenarios

The dispersed urban expansion of Cuiabá, Mato Grosso, strains the territorial distribution of public school supply and hinders the alignment between installed infrastructure and demographic demand. A locational optimization procedure was proposed to integrate demand by educational stage, accessibility by road network, environmental and regulatory constraints, and the division of responsibilities between municipal and state networks. Installed capacity was reconstructed from the 2022 School Census classes, and public demand was obtained from the age cohort by census tract, adjusted by the National Education Plan goals and the portion served by the private network. The pedestrian network was represented as a graph of 26,291 vertices, on which metric centralities and angular spatial syntax measures were calculated. A graph convolutional neural network produced the continuous territorial fitness surface that guided the allocation, conducted by a coverage heuristic in three scenarios. The city’s regulatory capacity was equivalent to 102.6% of the demand, but only 60.3% of it reached a place in the corresponding stage within the adopted service radius. The reallocation of classrooms, added to 74 new units, would raise coverage to 86.7%, and the complete redesign of the network in 209 sites would reach 85.9%, indicating that the installed stock retains locational value. The results suggested that the deficit is predominantly one of distribution in the early years, later years, and high school, and absolute in daycare and preschool. The main contribution lies in the auditable chain that links the regulation to the locational prescription, distinguishing structural from locational deficit for management.

Keywords: Deep learning; Basic education; Urban planning; Graph neural networks; Spatial syntax.