Article

Data Science And Analytics For Operations

November 19, 2026

Event-Driven Distributed Cloud Architecture for Bank Credit Contracting

Fernando do Bomfim Brito; Christian Eric Barrantes Briceño

DOI: 10.22167/2675-6528-202603865

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

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 adopting 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, SLA metrics survey, 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.

1. Introduction

Digital transformation in the financial sector has driven the modernization of technological infrastructures and operational models, especially in banking institutions that still rely on legacy systems and centralized transactional processes. Migration to cloud environments and the adoption of distributed architectures are widely recognized as strategic enablers of scalability, resilience, and operational efficiency (BIS, 2021; AWS, 2026a). However, the mere transition of infrastructure to the cloud does not, in itself, guarantee the improvement of system performance or governance. To achieve these benefits, a comprehensive review of the architectural model and the quality attributes prioritized by the organization is essential.

In the field of software engineering, microservices architectures have emerged as an alternative to traditional monolithic systems, promoting low coupling, independent deployment, and incremental evolution of complex applications (Fowler, 2002; Richardson, 2018). Event-driven communication complements this approach, supporting asynchronous integration, fault tolerance, and horizontal scalability.

However, these approaches introduce challenges inherent to distributed systems, particularly regarding transaction coordination and consistency management across multiple services. A single business operation in a microservices-based architecture can involve several independent services and databases, making distributed transaction coordination one of the main challenges in ensuring data consistency and integrity (Lungu and Nyirenda, 2024). The CAP Theorem, discussed by Gilbert and Lynch (2002), demonstrates that distributed systems cannot simultaneously guarantee strong consistency and high availability in the presence of network partitions, requiring explicit choices between these attributes.

In regulated transactional environments, such as bank credit operations, the requirements for traceability, auditability, and contractual integrity impose additional challenges for the adoption of eventual consistency models, frequently used in event-driven architectures. In this context, patterns like Saga are employed to coordinate distributed transactions through sequences of local operations and compensation mechanisms, replacing blocking global transactions (Daraghmi et al., 2022). Strategic domain modeling, proposed by Domain-Driven Design (Newman, 2021), contributes to the definition of bounded contexts and the clarification of responsibilities between services, reducing semantic ambiguities and improving architectural governance.

In the Brazilian banking sector, the import financing credit product (FINIMP) in large commercial banks remains highly dependent on synchronous integrations and manual interventions. The workflow involves multiple functional areas and typically requires up to seventy-two hours to complete. This results in high operational costs, increased risk of inconsistencies between systems, and limited predictability in process performance.

Although cloud computing and microservices architectures have been extensively studied, there are few works that explore the combined application of strategic domain modeling, distributed transaction coordination, and quantitative performance evaluation in banking credit processes subject to regulatory constraints. The modernization of these workflows is crucial for financial institutions to maintain their competitiveness and meet the growing demands for efficiency and agility.

Given this scenario, this study is justified by the need to investigate architectural solutions that can mitigate the operational and technological challenges faced by the banking sector. The objective is to demonstrate that the adoption of a cloud architecture based on microservices and event-driven can significantly reduce total processing time and operational costs, through the full automation of the workflow and the elimination of manual steps.

2. Material and Methods

The research was characterized as applied, with a mixed methodological approach, integrating qualitative and quantitative techniques. It was structured as action research combined with a single case study. The applied nature was justified by direct intervention in a real credit origination process, aiming to propose and evaluate an architectural solution. The action research involved the active participation of the researcher in the design, implementation, and validation of the solution in the studied organization. The mixed approach allowed for qualitative analysis of the operational workflow and quantitative measurement of performance and costs.

The study was conducted in a large Brazilian banking institution, located in the state of São Paulo, which employs more than 10,000 professionals and operates in the retail, wholesale, and corporate credit segments. The process analyzed was the origination of import financing credit (FINIMP), whose workflow involves the credit, treasury, commercial, contracts, guarantees, disbursement, and custody departments. The historical average completion time for this process was 72 hours.

Data collection was carried out in four stages. Initially, semi-structured interviews were conducted with managers and analysts from the departments involved in the workflow, including commercial banking, credit, trading desk, and back-office operations. The interview protocol consisted of 15 open-ended questions, organized into three thematic groups: description of the current workflow, identification of operational bottlenecks, and perceptions of risks and rework. All interviews were transcribed and subjected to thematic analysis, after formal consent from the participants.

Next, direct observation of the process was carried out, monitoring real FINIMP transactions and collecting records on workflow steps, average activity completion times, and dependencies between participating systems. Complementarily, documentary analysis and secondary data collection were performed, including operational manuals, internal process flowcharts, Service Level Agreement (SLA) reports, and historical records of processing volume and deadlines. Estimated operational costs for each process step, such as personnel allocation and infrastructure expenses, were also collected. Finally, performance metrics from transactional systems were extracted, such as response times, rework rates, and average daily contract volumes.

The architectural redesign was based on strategic Domain-Driven Design (DDD), with the explicit definition of primary bounded contexts: Eligibility, Simulation, Proposal, Contracting, Disbursement, and Guarantees. External services for digital signature processing and credit limit validation were considered part of the flow but not modeled as domain contexts. The Guarantees context was defined as a product-specific bounded context, acting as a facade for integration with the corporate guarantee registration API.

Communication between contexts was designed using synchronous REST APIs and asynchronous events published through a message bus. The coordination of distributed transactions was modeled through an orchestration service running on a containerized backend, deployed on Amazon Elastic Container Service (ECS). The Saga pattern was adopted to coordinate distributed transactions through sequences of local transactions and compensation mechanisms. For each step of the workflow, the trigger event, primary operation, maximum timeout, retry policy, and compensation action were defined. An idempotency strategy was implemented for critical transactional flows, associating each operation with a unique correlation identifier.

A containerized prototype was developed in a local environment to simulate the behavior of the proposed architecture, with cloud infrastructure sizing estimated from public pricing parameters. The prototype was built using .NET 8.0 technologies for backend services, Angular 20 for the frontend application, and Docker for containerization and execution. For the prototype, PostgreSQL was deployed in a containerized environment. For a production environment, Amazon Relational Database Service (RDS) with PostgreSQL and Amazon DynamoDB were selected as persistence technologies. RabbitMQ was used as a local message broker during the prototype development.

For the production environment, an event-driven architecture based on Amazon Simple Notification Service (SNS) and Amazon Simple Queue Service (SQS) was defined. Observability capabilities were incorporated through Application Performance Monitoring (APM) and distributed tracing solutions, such as Datadog or equivalent. The adoption of alternative on-premises technologies for the prototype was justified by the need to control costs associated with the implementation and operation of a solution of this scale directly in the Amazon Web Services (AWS) environment. The prototype included components for simulation generation, preliminary credit assessment, loan amortization calculations, and customer communication via email notifications. External dependencies were represented by simulated services, allowing for the validation of workflow orchestration without integration with production systems.

Controlled simulations of the proposed architectural workflow were conducted in a containerized development environment, using partially simulated services to represent external integrations. The Insomnia and JMeter tools were employed to collect performance metrics. Test scenarios incorporated progressively increasing workloads of 50, 100, and 200 concurrent requests, in order to evaluate the orchestration service behavior and the overall workflow latency. Metrics analyzed included average latency, p95 and p99 latency for each workflow step, throughput (contracts processed per minute), failure rate, and estimated cost per 1,000 operations processed. The estimated cost was calculated based on the projected sizing of computing, storage, and messaging resources, using publicly available parameters from the AWS pricing model.

Qualitative data were analyzed through thematic categorization. Quantitative data were analyzed using descriptive statistical techniques and comparative evaluation between the current process and the proposed architectural solution. The identities of the institution and its collaborators were preserved in accordance with applicable institutional guidelines and confidentiality requirements. The research involved semi-structured interviews and direct observation of professional workflows in a corporate environment. The Ethical Considerations Form (ECF) was completed and resulted in the waiver of submission to the Research Ethics Committee (CEP). The specific questions used during the data collection phase are not presented in this document, out of respect for the bank’s internal policies regarding the confidentiality of proprietary data, internal workflows, and corporate materials.

3. Results and Discussion

This section details the results obtained in the research, which aimed to demonstrate the viability of a cloud architecture based on microservices and event-driven for optimizing the hiring process of the FINIMP product in a large Brazilian bank. The findings revealed a significant projected reduction in total processing time and operational costs, resulting from the full automation of the workflow and the elimination of manual steps. The discussion of the results is structured around the analysis of the current process, the identification of bottlenecks, the architectural proposal, and the evaluation of its performance and economic impact, always in line with the study’s objectives and the relevant literature.

Initially, the mapping of FINIMP’s current workflow revealed a complex and time-consuming process. Through semi-structured interviews with managers and analysts from the commercial banking, credit, trading desk, and back-office areas, it was possible to identify the activities involved, the participating systems, and the points of manual intervention. The interview protocol, composed of fifteen open-ended questions, addressed the operational flow, bottlenecks, and perceptions about automation risks and opportunities, as detailed in the study’s methodology.

Direct observation of FINIMP transactions and the analysis of procedure manuals, internal flowcharts, and Service Level Agreement (SLA) reports complemented the understanding of the process. It was found that the average process completion time was approximately seventy-two hours. A substantial portion of this duration was attributed to operational queues between workflow steps and the need for repeated manual validations, indicating an excessive reliance on human intervention and legacy systems.

Identification of Operational Bottlenecks

The analysis of the current workflow allowed the identification of several critical bottlenecks that directly impacted the process performance. The main problems included the dependency on synchronous integrations between systems, the requirement for sequential validation procedures, and the presence of manual activities performed by multiple operational departments. These characteristics are typical of legacy environments, where strong coupling between systems and synchronous dependencies limit scalability and operational efficiency (Fowler, 2002; Richardson, 2018).

Steps such as reviewing supporting documents, generating contracts, disbursing loans, and registering collateral proved to be the most susceptible to delays. These delays were caused by human intervention and information reprocessing. The absence of distributed transaction coordination mechanisms among participating systems increased the risk of operational inconsistencies, requiring additional verification procedures before transaction completion, which further prolonged processing time.

These findings corroborated the hypothesis that a large part of the total processing time was not due to the inherent complexity of the FINIMP financial product, but rather to the technological and organizational structure of the existing workflow. The reduction of manual intervention and the improvement of coordination between systems were identified as key opportunities to shorten delivery times and increase process predictability, aligning with the principles of process optimization and architectural modernization.

Architectural Design Proposal

Based on the identification of operational bottlenecks, a distributed architecture was designed to automate the FINIMP credit origination workflow. The proposed solution was structured following the principles of microservices, event-driven communication, and strategic domain modeling, based on Domain-Driven Design (Newman, 2021). This approach aimed to promote low coupling, independent deployment, and incremental evolution of system components.

The following primary bounded contexts were defined: Eligibility, Simulation, Proposal, Contracting, Disbursement, and Guarantees. Each context was modeled as an independent service, responsible for specific business rules and communication with other system components. This separation of responsibilities, along with maintaining a dedicated persistence layer for each context, reduced coupling between domains and allowed for independent service evolution, a pillar of microservices architectures (Richardson, 2018).

Communication between contexts was designed using a combination of synchronous REST APIs for low-latency requests and asynchronous events published through a message bus. The coordination of distributed transactions was modeled through an orchestration service running on a containerized backend, adopting the Saga pattern. This pattern is widely used in microservice-based systems to coordinate distributed transactions through sequences of local transactions and compensation mechanisms, maintaining consistency between services without relying on traditional distributed transaction protocols (Daraghmi et al., 2022).

Considering the CAP Theorem (Gilbert and Lynch, 2002), the proposed architecture prioritized consistency over immediate availability in partition scenarios for critical operations, such as credit limit reservation and loan disbursement. This decision was motivated by the financial nature of the transactions, where inconsistencies could result in significant operational and financial risks. To support system resilience, controlled retry mechanisms, idempotency, and transactional compensation via the Saga pattern were incorporated.

The idempotency strategy was crucial for critical transactional flows, such as credit limit reservation and fund disbursement. Each operation was associated with a unique correlation identifier, allowing consumer services to detect and ignore duplicate executions. This approach is particularly relevant in financial transactions, where duplicate commands could lead to financial inconsistencies, ensuring operational consistency even in scenarios of communication failure between services.

Technical Implementation and Architectural Feasibility Analysis

To validate the technical feasibility of the proposed architectural workflow, a functional prototype was developed in a local containerized environment. The implementation used C# and the .NET framework for the backend services and Angular for the frontend application. Communication between services combined synchronous interactions via REST API with asynchronous event publishing through a RabbitMQ message broker, replicating the communication patterns expected in cloud-native distributed environments.

The prototype included components responsible for generating simulations, preliminary credit assessment, loan amortization calculations, and customer communication via email notifications. External dependencies were represented by mock services, which allowed for the validation of workflow orchestration without the need for integration with production systems. Although this approach limits the representativeness of performance results in a real production environment, it provided sufficient evidence of the proposed design’s feasibility.

The architectural feasibility analysis indicated that the proposed solution has the potential to reduce sequential dependencies between workflow stages and allow for the parallel execution of selected activities. The separation of responsibilities between domain services, combined with asynchronous communication mechanisms, contributed to increased scalability and reduced impact of localized failures on the system as a whole. The adoption of the Saga pattern enabled the coordination of distributed transactions without relying on global locking mechanisms, which is fundamental for resilience and operational continuity in distributed environments (Richardson, 2018; Newman, 2021).

To evaluate the architecture’s behavior under concurrent workloads, controlled performance tests were conducted using the JMeter framework. The experiments simulated workloads of 50, 100, and 200 concurrent requests, incorporating queuing and resource contention effects representative of production environments. Performance metrics analyzed included average latency, p95 and p99 latency for each workflow step, throughput (contracts processed per minute), and failure rate.

The results demonstrated that the proposed architecture maintained stable behavior under increasing workloads, achieving substantial gains in processing capacity. Throughput increased from 2,173 to 4,152 transactions per minute as the workload went from 50 to 200 concurrent requests, representing an increase of approximately 91%. Although latency increased with workload intensity, the growth was proportional and did not indicate abrupt degradation or saturation of architectural components under the tested conditions.

The analysis of percentile-based metrics revealed that p95 latency increased from 3.32 to 5.01 seconds, while p99 latency increased from 3.64 to 6.33 seconds. These results indicate that the architecture remained capable of processing higher transaction volumes, although the impact of queuing effects and resource contention became more pronounced under heavier loads. This behavior is consistent with the performance characteristics commonly observed in distributed systems, where response time variability tends to increase with workload intensity.

The failure rate increased from 0.5% to 3.0% as competition grew. Despite this increase, the observed error levels remained within acceptable limits for an experimental prototype operating in a local containerized environment. These results suggest that the combination of asynchronous communication, transactional orchestration, retry mechanisms, and service isolation contributed to maintaining operational stability under increasing demand, as discussed by Newman (2021).

For a production deployment, the proposed infrastructure incorporates horizontal scalability, pre-warmed service instances, and managed cloud services such as Amazon SNS, Amazon SQS, and Amazon DynamoDB. These features are expected to improve the overall system capacity and reduce infrastructure-related failures. However, differences are expected between the local prototype and the production environment. The increase in the number of services, network hops, and integrations with external systems, such as digital treasury and subscription platforms, may contribute to higher tail latencies and greater performance variability, a phenomenon known as tail latency (Dean and Barroso, 2013).

The projected reduction of up to 80% in failure rates and 10% in average latency reflects the benefits of adopting mature cloud managed services and elastic infrastructure. On the other hand, the expected increases in p95 and p99 latency represent an inherent trade-off in distributed architectures, where the additional flexibility, scalability, and fault isolation are accompanied by increased sensitivity to latency amplification across service boundaries. These projections, based on author estimates and literature, indicate that the proposed architecture can achieve substantially higher processing capacity than the local prototype, albeit with greater latency variability.

Reduction of Process Completion Time

Based on the analysis of the current process and the identified automation opportunities, the proposed architecture is estimated to reduce the average process completion time from approximately seventy-two hours to about two hours and thirty minutes. This projected reduction, of approximately 97% in process lead time, is one of the most significant findings of this study. It is primarily associated with the elimination of manual operational queues, the automation of validation activities, and the parallel execution of process steps that were previously sequential.

After the proposed redesign, the digital signature step is expected to become the main operational bottleneck. Unlike the other steps in the workflow, this activity still depends on direct interaction with the client, requiring authenticated access to the platform and formal acceptance of the generated contract. Consequently, the total duration of the process remains partially dependent on the client’s response time, a factor external to the system’s direct control. In addition to operational benefits, such an improvement can positively influence customer satisfaction indicators, such as the Net Promoter Score (NPS), by reducing waiting times and increasing the predictability of the credit origination process.

Cost Analysis

From an economic and operational point of view, the costs associated with the current process were compared with those projected for the proposed architecture. In the current operational model, an average of forty FINIMP transactions are processed daily by a team composed of nineteen internal employees and ten outsourced professionals. Considering an average monthly cost of USD 3,000 per internal employee and USD 1,000 per outsourced professional, the total labor cost was estimated at USD 67,000 for the analyzed period.

Under the proposed architecture, the automation of operational activities and the reduction of manual intervention are expected to increase processing capacity to approximately eighty transactions per day, while reducing personnel requirements to three internal employees and three outsourced professionals. Based on these premises, the projected labor cost was estimated at USD 12,000 per month. This represents an approximate reduction of 82.1% in workforce-related expenses, while simultaneously increasing operational throughput.

The infrastructure costs projected for the cloud-based architecture are relatively small compared to the reduction in operational labor costs. Even after accounting for cloud infrastructure expenses, the proposed solution remains substantially less expensive than the current operational model. For example, a minimal production cluster in the South America region (sa-east-1), comprising three Amazon ECS Fargate tasks, would have an estimated monthly cost of approximately USD 310.02, according to AWS pricing data.

The comparison of productivity and cost per transaction demonstrated that, in the current state, the bank processes 1,200 FINIMP transactions per month at a cost of USD 55.83 per transaction. With the proposed architecture, processing 2,400 transactions per month is projected at a cost of USD 5.13 per transaction. This represents a 90.8% reduction in cost per transaction, one of the most significant results of the study. These findings suggest that the main economic benefits of the proposed architecture derive not only from infrastructure optimization but primarily from process automation, reduced operational dependency, and increased productivity.

Limitations and Threats to Validity

Although the results indicate the technical and economic viability of the proposed architecture, some methodological limitations should be considered in the interpretation of the findings. Firstly, the prototype was executed in a local containerized environment and depended on simulated external integrations (mock services). Consequently, the measured latency, throughput, and failure rate metrics primarily reflect the behavior of the architectural workflow and the implemented transaction coordination mechanisms, rather than the total complexity of a production environment.

Factors such as network variability, distributed authentication, managed service constraints, and latency introduced by external systems were not fully represented in the experimental setup. In real-world distributed systems, these factors can introduce additional variability into performance metrics, particularly in tail latency distributions. Secondly, the experimental evaluation was conducted under controlled workload conditions and with a limited number of concurrent requests. While the selected scenarios allowed for the assessment of architectural behavior under increasing load, the results should not be interpreted as statistically representative of all production operational conditions.

Furthermore, although the prototype successfully validated key architectural mechanisms, including Saga-based transaction orchestration, retry policies, idempotency controls, and asynchronous service communication, definitive performance, reliability, and scalability evaluation would require deployment in a production environment with real integrations and longitudinal observation of system behavior over time. Additional threats to validity arise from organizational and operational factors that were outside the scope of the prototype implementation, such as process exceptions, regulatory governance requirements, variations in transaction profiles, seasonal demand fluctuations, and human interaction patterns, which may influence the operational gains projected in this study.

In particular, the estimated reduction in process completion time and operational costs should be interpreted as projections derived from the architectural model and experimental results, and not as guaranteed outcomes of a production deployment. Despite these limitations, the study provides empirical evidence supporting the technical feasibility of applying event-driven microservices architectures, strategic Domain-Driven Design, and Saga-based transaction coordination to the FINIMP credit origination process. Production validation, with operational telemetry under real workloads, is essential to confirm the identified gains.

In summary, the research results demonstrate the technical and economic feasibility of the proposed architecture for modernizing the FINIMP process, with a projected reduction of 97% in processing time and 90.8% in cost per transaction. The adoption of microservices, event-driven communication, and the Saga pattern enabled measurable gains in efficiency, scalability, and operational governance, despite the inherent limitations of validation in a prototype environment. These findings corroborate the hypothesis that automation and architectural restructuring can transform legacy banking processes, offering substantial benefits that go beyond simple infrastructure optimization.

4. Conclusion

The present study aimed to demonstrate that adopting a cloud architecture based on microservices and event-driven principles could significantly reduce the total processing time and operational costs of the FINIMP product in a large Brazilian bank, through the integral automation of the workflow and the elimination of manual steps. It was found that the existing process was complex and time-consuming, with an average completion time of approximately seventy-two hours, driven by manual interventions and legacy system dependencies. The proposed architecture, based on strategic Domain-Driven Design and the Saga pattern for distributed transactional coordination, enabled the automation of validation activities and the parallel execution of previously sequential steps. The results indicated a projected reduction in completion time to about two hours and thirty minutes, representing an optimization of approximately 97% in lead time. Additionally, a 91% increase in throughput under controlled load and an estimated reduction of 90.8% in cost per transaction, from USD 55.83 to USD 5.13, were observed. This approach delivered measurable gains in efficiency, scalability, and operational governance, transforming a legacy banking process.

However, it is important to acknowledge that the prototype was executed in a local containerized environment, with simulated external integrations, which limits the representativeness of the performance metrics in a real production scenario. Factors such as network variability, distributed authentication, and external system latency were not fully represented. Experimental evaluations were conducted under controlled workloads and with a limited number of concurrent requests, so the results should be interpreted as evidence of architectural viability, rather than definitive production performance. The projected reductions in completion time and operational costs are estimates derived from the architectural model and experimental results. For complete validation, future studies should include deployment in a production environment with real integrations, collection of operational telemetry under real workloads, and longitudinal observation of system behavior to confirm identified gains and assess long-term business outcomes.

Bibliographic References

Amazon Web Services. 2026a. AWS Well-Architected Framework. AWS Documentation. Available at: <https://aws.amazon.com/architecture/well-architected/>. Accessed March 5, 2026.

Bank for International Settlements [BIS]. 2021. Digital transformation in the financial sector. BIS Annual Economic Report.

Daraghmi, E.; Yuan, S.; Zhang, C. 2022. Enhancing Saga Pattern for Distributed Transactions within a Microservices Architecture. Applied Sciences (MDPI) 12(12): 6242.

Dean, J.; Barroso, L. A. 2013. The Tail at Scale. 2ª ed. Association for Computing Machinery, New York, New York, United States of America.

Fowler, M. 2002. Patterns of Enterprise Application Architecture. Addison-Wesley, Boston, Massachusetts, United States of America.

Gilbert, S.; Lynch, N. 2002. Brewer’s conjecture and the feasibility of consistent, available, partition-tolerant web services. 2ª ed. Association for Computing Machinery, New York, New York, United States of America.

Lungu, S.; Nyirenda, M. 2024. Current Trends in the Management of Distributed Transactions in Micro-Services Architectures: A Systematic Literature Review. Open Journal of Applied Sciences 14(9): 2519-2543.

Newman, S. 2021. Building Microservices: Designing Fine-Grained Systems. 2ª ed. O’Reilly Media, Sebastopol, California, United States of America.

Richardson, C. 2018. Microservices Patterns. Manning Publications, New York, New York, United States of America.

Article originating from the Final Course Work of the Specialization in Data Science and Analytics of the MBA USP/Esalq

To learn more about the course, click here and access the MBX Academy platform

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

Assessment of the technical and behavioral viability of residential flexibility in a pilot project of Virtual Power Plant (VPP) in Brazil

The flexibility of electricity consumption in Brazilian households was evaluated. The study assessed the technical and behavioral viability of this flexibility in a pilot project of a Virtual Power Plant (VPP) in Brazil. 10 Demand Response (DR) events were conducted with 30 measured consumer units, between January and March 2026, using quantitative analysis of real smart metering data. The k-means algorithm was applied to segment behavioral profiles and a final evaluation survey was conducted to collect perceptions. The average acceptance rate was 70.6% and the average delivery rate reached 80.1%, with a verified load reduction of 99.3 kWh. Three behavioral engagement profiles were identified, with the full engagement group responsible for 61% of the generated flexibility. The hybrid remuneration model achieved the highest delivery rate (90.4%) and the lowest cost per kWh. The correlation between incentive and percentage reduction was significant in the hybrid phase. The final survey indicated a 96.7% intention to re-participate and a preference for the hybrid model. The results confirmed the technical and behavioral viability of residential flexibility in Brazil as a component of a VPP, demonstrating that consumers respond to DR events when adequately communicated and incentivized.

Keywords: Consumer engagement; Residential flexibility; Smart metering; Demand Response; Virtual Power Plant.