Article

October 27, 2026

Front-End Application Dependency Management: Strategies for Decoupling Chat Providers in React Projects

Lisandre Andreolo Darioli; Enderson Luiz Pereira Junior

DOI: 10.22167/2675-6528-202601076

Article prepared by the ResumeAI tool, an artificial intelligence solution developed by the Pecege Institute focused on synthesis and writing.

Summary

The growing reliance on external providers in modern front-end applications, especially in React projects, has highlighted the need for strategies that reduce excessive coupling and increase system flexibility. The study aimed to analyze the extent to which different design patterns contribute to reducing the dependency on a chat provider, as well as to investigate the impacts of this reduction on refactoring cost and code complexity. To this end, an experimental study was conducted based on the development of three versions of a prototype order management system in React with TypeScript: an initial highly coupled version, an intermediate version using the Facade Pattern, and a more advanced version using the Adapter Pattern and Dependency Injection. Decoupling metrics, refactoring cost, and complexity, such as the number of files and lines changed, and cyclomatic and cognitive complexities, were defined and analyzed. The results demonstrated a progressive reduction in coupling between the versions, with greater isolation of dependencies in the one that employed adapters, at the cost of greater initial refactoring effort and increased system cyclomatic complexity. However, it was observed that cognitive complexity showed a modest increase in the last version, indicating maintained code comprehensibility. It was concluded that decoupling represented an investment that favored long-term system maintainability and evolution.

Keywords: coupling; complexity; design patterns; maintainability; refactoring.

1. Introduction

The evolution of software development, driven by the demand for agility and innovation, has led to the increasing adoption of external service providers in modern web applications. Platforms like React, with its component-based architecture, often integrate third-party solutions for essential functionalities such as authentication, payments, and real-time communication services (Pressman and Maxim, 2021). While this approach accelerates value delivery, it entails significant challenges, primarily related to excessive coupling. In a scenario where the complexity of front-end applications increases exponentially, managing these dependencies becomes critical for the maintainability, flexibility, and evolution of the system. The absence of effective strategies to decouple these services can result in “vendor lock-in”, hindering migration and increasing technical and financial risks.

Coupling, a fundamental concept in software engineering, describes the degree of interdependence between the modules of a system. High coupling implies that changes in one module may require alterations in many others, making the code more rigid and difficult to maintain (Pressman and Maxim, 2021). To mitigate this problem, design patterns emerge as proven solutions, offering abstractions that promote flexibility and reusability. The Facade Pattern simplifies the interface of a complex subsystem, while the Adapter Pattern allows incompatible interfaces to work together, encapsulating integration logic (Shvets, 2019). Dependency Injection (DI) allows an object to receive its dependencies externally, promoting loose coupling and facilitating the exchange of implementations. These strategies are linked to refactoring, which restructures code without altering its external behavior, aiming to improve quality and comprehensibility. However, the introduction of patterns can impact complexity metrics, such as cyclomatic (execution paths) and cognitive (mental effort to understand the code), as addressed by inspection platforms (SonarSource, 2023; SonarSource, 2026).

Despite the wide availability of design patterns and decoupling techniques, their practical application in modern front-end projects, especially with React and TypeScript for integrating chat providers, still presents challenges and gaps. The choice and implementation of a decoupling strategy is not trivial, as it involves trade-offs between reducing dependency and the potential increase in initial complexity or refactoring effort. Developers frequently seek to balance long-term flexibility and maintainability with development costs and perceived short-term complexity. In the context of chat providers, direct integration of third-party SDKs can permeate various layers of the application, creating a tangle of dependencies that hinders service evolution and replacement. The literature lacks empirical studies that systematically quantify the benefits and costs of applying design patterns to decouple chat providers in React environments, providing a solid foundation for architectural decisions.

Given this scenario, the relevance of this study lies in providing empirical evidence on the effectiveness and trade-offs of decoupling strategies in front-end applications, aiding in architectural decision-making. Understanding how design patterns affect coupling, refactoring cost, and code complexity is crucial for resilient and adaptable systems. Thus, the present work aims to analyze to what extent specific design patterns, such as Facade, Adapter, and Dependency Injection, reduce the dependency on a chat provider in React projects, and to investigate the impacts of this reduction on refactoring cost and the cyclomatic and cognitive complexities of the code, aiming to optimize the long-term maintainability and evolution of the system.

2. Material and Methods

This study adopted an experimental research approach, based on the iterative development of a web application prototype. The methodology employed aimed to systematically analyze the impacts of different decoupling strategies in a front-end development environment. The experimental research allowed for controlled manipulation of variables, such as the application of design patterns, to observe their effects on coupling metrics, refactoring cost, and code complexity. This approach is particularly suitable for investigating cause-and-effect relationships in software engineering contexts, providing an empirical basis for conclusions. The main focus was on comparing the prototype versions.

The research context involved the development of an order management system prototype, designed to simulate a real restaurant application. This system allowed for order management and communication between the restaurant and the client through an integrated chat service. The main technology used was React with TypeScript, aligning with modern front-end development practices. The integrated external chat provider was the Sendbird platform. The study was conducted as part of a Final Course Project presented in 2026, without a specific physical location, with the unit of analysis being the three distinct versions of the application prototype developed for the experiment.

Given the experimental and controlled nature of the study, which focused on the development and analysis of a single software prototype in different configurations, traditional concepts of population and sample do not apply directly. There was no selection of human participants or external documents for analysis. Instead, the research operated with a singular unit of analysis: the web application prototype itself. The prototype “versions” represented the different experimental conditions, each incorporating a specific decoupling strategy, allowing for a direct comparison of methodological and architectural impacts. The “selection” criteria were intrinsic to the experiment’s design.

The first stage of data collection consisted of developing Version 0 (V0) of the prototype, named “reference scenario”. This version was intentionally built with a high degree of coupling to the Sendbird chat provider, simulating development without specific architectural planning. The application had basic functionalities, such as a header with an entry point to the conversation list, a list of orders on the left, and, in the center of the screen, the details of the selected order. Interacting with the header or the “Open chat” button in the order details displayed modals with the conversation list or the specific conversation, respectively. The objective was to establish a coupled base for subsequent refactorings.

Version 1 (V1) was developed from V0, incorporating the Facade Pattern to improve code organization and reduce initial coupling. The Facade Pattern, as described by Shvets (2019), provides a unified interface to simplify the use of complex subsystems. In this research, the pattern was transposed to the creation of React hooks, which acted as an abstraction layer between the user interface components and the chat services. For example, the `ListItem` component, which in V0 directly accessed the chat SDK, now interacts with a single hook (`useOrderChatUnreadCount`), receiving only the necessary information about unread messages, centralizing the chat logic in the `features/chat` layer.

Version 2 (V2) represented the evolution of V1, introducing the Adapter Pattern and Dependency Injection (DI) to achieve even more effective decoupling. The Adapter Pattern (Shvets, 2019) was implemented to create an abstract contract (`ChatClient`) that any chat provider should follow, allowing for provider substitution. Instead of traditional classes and interfaces, `function factory` and `type` in TypeScript were used, aligning with React’s functional paradigm. Dependency Injection was performed through React’s context API, allowing the application to receive instances of specific adapters (like `SendbirdChatAdapter`) externally, promoting flexibility and facilitating the exchange of chat provider implementations.

To quantify the degree of decoupling of the chat provider and the ease of its replacement, three main metrics were defined and collected. The first was the total number of modules, comprising all `.ts` and `.tsx` files present in the application’s `src` directory. The second metric consisted of the number of modules that directly used the chat provider, identifying the integration points that would require changes in case of vendor replacement. Finally, the Provider Leakage Index (PLI) was created, which measured the number of modules outside the integration layer that still had direct knowledge of the chat provider, indicating the extent of cross-cutting coupling.

The refactoring cost for each transition between prototype versions was evaluated through four specific metrics. Firstly, the number of files changed, including additions, deletions, or modifications, was recorded. Secondly, the number of lines of code changed, encompassing added, deleted, or modified lines, was quantified. The third metric was the number of new components, hooks, or services created during the refactoring process. Additionally, the Exchange Propagation Index (EPI) was developed, defined as the ratio between the number of modules changed in a version and the total number of application modules, indicating the extent of change propagation.

The complexity and maintainability of the code were evaluated using metrics obtained through the Sonarqube continuous code quality and security inspection platform. Two metrics were employed for this analysis. The first was cyclomatic complexity, which quantifies the number of independent execution paths within a code, serving as an indicator of structural complexity and testability. The second metric was cognitive complexity, which measures the mental effort required for a developer to understand the logic of a code, focusing on the ease of understanding the application flow (SonarSource, 2026). Both metrics were collected for each version of the prototype.

After defining the metrics, the research execution proceeded with the sequential development of application versions V1 and V2, starting from V0. At each stage, refactoring procedures were applied according to the defined decoupling strategies. Subsequently, systematic data collection was performed for all established metrics for each of the three prototype versions. Data analysis involved a comparative evaluation, both qualitative and quantitative, of the implemented solutions. This process allowed for the identification of the impacts of decoupling strategies on coupling, refactoring cost, and code complexity, without presenting specific results at this time.

This study, by involving the development and analysis of a software prototype in a controlled environment, did not involve human participation or the collection of sensitive data, therefore, formal ethical procedures were not applied. The information used for the analysis was generated directly from the prototype’s source code and code analysis tools. Regarding methodological limitations, the original term paper does not detail them explicitly in the Material and Methods section, but addresses them in the discussion of the results. Thus, the present section is limited to describing the procedures performed, without anticipating discussions about the restrictions inherent to the employed method or the generalization of the findings.

3. Results and Discussion

The results obtained in this experimental study provide a comprehensive overview of the impacts of different decoupling strategies on front-end application architecture, specifically in the context of integration with chat providers. The comparative analysis of the three prototype versions (V0, V1, and V2) revealed a clear progression in coupling reduction, albeit with distinct implications for refactoring cost and code complexity. The main objective of investigating the contribution of design patterns to reducing dependency on chat providers and their effects on maintainability and complexity was largely achieved, allowing for an in-depth discussion of the *trade-offs* involved.

Version 0 (V0) of the prototype, conceived as a reference scenario, was intentionally developed without the application of design patterns or specific architectural patterns, reflecting a common scenario of accelerated development with an inflated backlog. This approach resulted in a high degree of direct coupling to the Sendbird chat provider, which is a crucial finding for understanding the research starting point. The folder structure, although presenting an initial organization by functionalities such as `components`, `features`, and `pages`, as illustrated in Figure 1, did not prevent modules from different layers from directly accessing the chat provider’s SDK.

Source: Original research results

Figure 1. Folder structure in the src directory of the version-0 project

This lack of abstraction and the dispersion of chat provider knowledge throughout the application, as observed in UI components like `ListItem` that directly accessed Sendbird’s internal state, queried `channels`, and calculated unread messages, constitute an overreach of component responsibilities. According to the React documentation (Meta, 2026), user interface components should be reusable and primarily focus on presentation, avoiding complex business logic or direct dependencies on external services. V0, by violating this principle, not only made the code harder to understand and maintain but also created a significant barrier to a future chat provider migration, requiring changes in numerous files scattered across the project. Pressman and Maxim (2021) emphasize that excessive coupling is a common problem that increases software complexity, hindering its maintenance, flexibility, and evolution, which perfectly aligns with the V0 scenario. The practical implication of this finding is that, without adequate architectural planning from the outset, front-end projects can quickly accumulate technical debt, becoming inflexible and expensive to evolve.

The transition to Version 1 (V1) aimed to mitigate these issues through the implementation of the Facade Pattern. As described by Shvets (2019), the Facade provides a unified interface to simplify the use of complex subsystems. In this study, the pattern was adapted to React’s functional paradigm by creating *hooks*, which acted as an abstraction layer between UI components and chat services. For example, the `ListItem` component, which in V0 had direct access to the chat SDK, now interacts with a single *hook*, `useOrderChatUnreadCount`, receiving only the necessary information about unread messages. This approach centralized the chat logic in the `features/chat` layer, representing a significant advancement in code organization and reducing the extrapolation of component responsibilities.

Although V1 improved the organization and reduced the coupling of UI components, it still presented considerable limitations regarding the ease of changing the chat provider. The `useOrderChatUnreadCount` hook, despite abstracting logic and delivering information in a simplified way, was still highly coupled to the specific chat provider. This means that, although the chat-related logic was more confined within `features/chat`, there was no *proper* abstraction layer between the application and the external provider. This absence of an abstract contract for the chat provider implied that, in case of an eventual change of provider, it would still be necessary to modify the internal implementation of the hook and, potentially, other parts of the `features/chat` layer that directly depended on the Sendbird SDK. The literature on design patterns, such as that by Gamma et al. (1994), often discusses the importance of interfaces and abstractions to promote flexibility. V1, although a step in the right direction, did not achieve the necessary level of abstraction to completely isolate the application from the chat provider, which limits its long-term adaptability. The practical implication is that the Facade Pattern is excellent for simplifying complex interfaces, but it may not be sufficient to completely decouple the dependency on an external service, especially when the intention is to replace the provider.

Version 2 (V2) represented the most advanced evolution, introducing the Adapter Pattern and Dependency Injection (DI) to achieve even more effective decoupling. The Adapter Pattern, according to Shvets (2019), is used to allow interaction between incompatible classes or subsystems, through a common contract. In this study, this was transposed to the context of React with TypeScript, using `function factory` and `type` instead of traditional classes and interfaces to create an abstract contract (`ChatClient`) that any chat provider should follow. This choice was motivated by the search for an approach more aligned with contemporary principles of front-end development in React, which values composition by functions, *hooks*, functional components, and explicit dependency injection.

Dependency Injection was implemented through React’s context API, allowing the application to receive instances of specific adapters (like `SendbirdChatAdapter`) externally. This approach promoted unprecedented flexibility, facilitating the exchange of chat provider implementations. If it were necessary to change the provider, one would simply create a new adapter that implemented the `ChatClient` contract and inject it into the application. This eliminates the application code’s direct dependency on a specific provider, making it agnostic to the underlying chat service. The reduction of *boilerplate* was also a notable benefit, as `function factory` and `type` allow for leaner and more readable code compared to the ceremonial structure of classes and interfaces in TypeScript, as discussed by Martin (2008) on the importance of clean and maintainable code. The practical implication is that the combination of the Adapter Pattern with Dependency Injection, adapted to React’s functional paradigm, offers the most robust solution for decoupling external providers, ensuring flexibility, testability, and long-term maintainability, albeit with a higher initial implementation cost.

The analysis of the decoupling metrics, presented in Table 1, corroborates the conclusion that projects V1 and V2 demonstrate a progressive decoupling in relation to V0 and, also, between themselves.

Table 1. Provider decoupling metrics with respect to chat

Project

Files that know Sendbird

Total of .ts or .tsx files in src

Coupling Percentage

version-0

8

44

18,18

version-1

6

49

12,24

version-2

5

58

8,62

Source: Original research results

According to Table 1, the coupling percentage, which measures the proportion of modules that directly know the chat provider in relation to the total number of modules, decreased from 18.18% in V0 to 12.24% in V1 and, finally, to 8.62% in V2. This progressive reduction is a clear indicator of the success of the decoupling strategies implemented. In V0, 8 out of 44 modules (18.18%) had direct knowledge of Sendbird. In V1, this number dropped to 6 modules out of a total of 49 (12.24%), and in V2, to 5 modules out of 58 (8.62%). The increase in the total number of modules in versions V1 and V2 reflects the introduction of new abstraction layers and configuration files, which are inherent to the decoupling process. However, the decrease in the coupling percentage, even with the increase in the codebase, demonstrates that the knowledge about the chat provider was effectively isolated in a smaller number of specific modules. This finding is in line with software design principles that promote low coupling and high cohesion, fundamental for building flexible and evolving systems (Fowler, 2002). The ability to isolate dependencies in specific modules reduces the risk of a “domino effect” in case of changes in the external provider, a crucial benefit for system resilience.

The location of the files that know the chat provider in each version, although not presented in a specific table here, was a key point of the analysis. In V0, these files were dispersed across multiple application layers, including UI components, *hooks*, request *features*, and even constants. This dispersion indicates cross-cutting coupling, where knowledge about the chat provider “leaked” into areas that should not have this responsibility. In V1, there was a concentration of these dependencies in the chat *feature* and the `ChatProvider` component, indicating progress in organization. Finally, in V2, the coupling was significantly more controlled and intentional, being restricted to the adapters layer (`adapters/sendbird`). This evolution demonstrates a clearer separation of responsibilities and consistent progress towards an application agnostic to a single chat provider. This segregation of responsibilities is a pillar of modular software design, as advocated by Evans (2003) in his work on Domain-Driven Design, where the creation of explicit boundaries between contexts and responsibilities is essential for maintainability and scalability. The practical implication is that by isolating provider knowledge in an adapter layer, the application becomes more robust against external changes and easier to test, as dependencies can be easily mocked or replaced.

Another crucial aspect investigated was the cost of code refactoring, a common point of debate when planning software architecture. The data regarding the changes made to the code of each project (Table 5 in the original document) showed an increase in development cost as a more organized application with a higher level of decoupling is built. For example, the transition from V0 to V1 involved changing 19 files and modifying 501 lines of code, while the transition from V1 to V2 required changing 23 files and modifying 623 lines of code. The number of files added also grew, from 44 in V0 (considering the initial base) to 7 in V1 and 10 in V2. This increase in initial refactoring effort and the amount of code changed or added is an expected *trade-off*.

This finding challenges the perception that refactoring always results in lower development effort in the short term. On the contrary, the main gain from decoupling-oriented refactorings lies not in reducing immediate effort, but rather in creating a higher cost now to reduce the cost of maintenance and rework in the future. This perspective aligns with the concept of technical debt (Cunningham, 1992), where an initial investment in design and refactoring may seem costly but avoids compound interest from rework and inflexibility in the future. The introduction of new abstraction layers, such as *hooks* in V1 and adapters with dependency injection in V2, naturally requires the creation of new files, modification of existing structures, and reallocation of logic, which translates into a larger volume of changes. The practical implication for project managers and developers is that decoupling should be viewed as a strategic investment. It is crucial to communicate that the additional initial effort is a deliberate cost to ensure the system’s longevity, flexibility, and maintainability, avoiding more serious and expensive problems in the future. Ignoring this investment can lead to premature “legacy” systems that are difficult to evolve and expensive to maintain.

The complexity and maintainability of the code were evaluated using metrics obtained through the Sonarqube platform, specifically cyclomatic complexity and cognitive complexity. The results, presented in Table 2, offer valuable insights into how decoupling strategies impacted code comprehensibility.

Table 2. Cyclomatic and cognitive complexity metrics

Metrics

version-0

version-1

version-2

Cyclomatic complexity

57

68

109

Cognitive complexity

18

36

39

Source: Original research results obtained through the Sonarqube tool

According to Table 2, cyclomatic complexity grew significantly with each new version: from 57 in V0 to 68 in V1 and 109 in V2. Cyclomatic complexity quantifies the number of independent execution paths within a code (SonarSource, 2026), and its increase is expected when new logic and decision points are introduced. V1 expanded the responsibilities of the chat module, and V2 added new layers of abstraction and adaptation logic, which naturally increases the number of possible paths in the code. However, cognitive complexity, which measures the mental effort required for a developer to understand the logic of a code (SonarSource, 2023), showed a much more moderate variation: from 18 in V0 to 36 in V1 and 39 in V2.

This divergence between the growth of cyclomatic complexity and the moderation of cognitive complexity is a particularly relevant finding. While the structural complexity of the system increased due to the introduction of more layers and abstractions, the difficulty of understanding the code for a developer did not grow proportionally. This suggests that, although the system has become more complex in terms of structure and execution flow, the organization and distribution of this complexity through design patterns (Facade and Adapter) and dependency injection have kept the code relatively understandable. This “organized complexity” is a fundamental goal of software design, where the inherent complexity of a problem is managed and distributed in such a way that the system remains maintainable and extensible (Brooks, 1987). The practical implication is that decoupling, while not simplifying the system in absolute terms, organizes it in a more controlled manner, mitigating the negative impact on maintainability. Developers can handle more complex code if it is well-structured and follows recognizable patterns, as this reduces the cognitive load of understanding the application’s flow.

In summary, the results of this study show that the progressive adoption of design patterns, specifically the Facade Pattern in V1 and the combination of Adapter Pattern with Dependency Injection in V2, is effective in consistently reducing the application’s coupling to a chat provider. The Facade Pattern promotes a partial reduction in dependency, improving internal organization, while the combination of Adapter Pattern and Dependency Injection allows for more effective decoupling, resulting in a more modular, organized, and future-proof structure. This finding directly answers the first research question, demonstrating that different design patterns contribute distinctly to dependency reduction, with the Adapter Pattern and DI offering the highest degree of isolation.

However, this gain in decoupling and flexibility implied an increase in refactoring cost, characterizing a higher initial investment in terms of altered files and lines of code. This is the answer to the second research question: it is possible to maintain a modular and flexible architecture, but not without an impact on the initial development cost. This *trade-off* between initial effort and long-term maintainability is a critical point for decision-making in software projects. Cyclomatic complexity increased significantly, reflecting the introduction of more logic and decision points. However, cognitive complexity showed a moderate variation, indicating that, despite the increase in structural complexity, the code remained understandable. This addresses the third research question, revealing the *trade-offs* between decoupling, initial cost, and structural complexity, while favoring the maintainability and evolution of the application over time.

The practical implications of these findings are multifaceted. For developers, the choice of design patterns such as Facade and Adapter, combined with Dependency Injection, is a robust strategy for building front-end applications that are more resilient and adaptable to changes in external providers. For project managers, it is crucial to recognize that decoupling is a strategic investment that may increase the initial development cost, but translates into long-term savings by reducing technical debt and facilitating system evolution. Clear communication of these *trade-offs* to stakeholders is essential for aligning expectations and ensuring the necessary support for implementing more robust architectures. Future research could explore the application of these strategies in different contexts of external providers (e.g., payments, authentication) and quantify the return on investment (ROI) of decoupling throughout the software lifecycle. Furthermore, evaluating the developer experience with these architectures, perhaps through usability studies or interviews, could provide a qualitative perspective complementary to quantitative data.

4. Conclusion

It is concluded that the objective was achieved by analyzing to what extent specific design patterns, such as Facade, Adapter, and Dependency Injection, reduce the dependency on a chat provider in React projects, and by investigating the impacts of this reduction on refactoring cost and the cyclomatic and cognitive complexities of the code, aiming to optimize the long-term maintainability and evolution of the system. The results demonstrated that the progressive application of these patterns, especially the combination of Adapter Pattern and Dependency Injection, promoted a consistent and significant reduction in the application’s coupling to the chat provider. It was observed that, although the initial refactoring cost and cyclomatic complexity increased, the cognitive complexity remained moderate, indicating that the organization of complexity contributes to code comprehensibility, favoring long-term maintainability.

However, this study faced the limitation of an increase in initial development effort and code structural complexity, which are inherent trade-offs of decoupling. It is suggested that future research explore the application of these strategies in other contexts of external providers, such as payment or authentication systems, to verify the generalization of the findings. Additionally, it would be valuable to quantify the return on investment (ROI) of decoupling over the software lifecycle and conduct qualitative studies on developer experience with these architectures, complementing the quantitative data obtained.

Bibliographic References

Brooks, 1987 [Referência completa não encontrada no documento original]

Cunningham, 1992 [Referência completa não encontrada no documento original]

Evans, 2003 [Referência completa não encontrada no documento original]

Fowler, 2002 [Referência completa não encontrada no documento original]

Gamma et al., 1994 [Referência completa não encontrada no documento original]

Martin, 2008 [Referência completa não encontrada no documento original]

Meta. Your First Component. Disponível em: <https://react.dev/learn/your-first-component>. Acesso em: 04 dez. 2025.

Pressman, Roger S.; Maxim, Bruce R. 2021. Engenharia de Software: uma abordagem profissional. 9ed. AMGH, Porto Alegre, RS, Brasil.

Shvets, Alexander. 2019. Design Patterns Explained Simply. Disponível em: <https://github.com/hraverkar/books/blob/master/Alexander.Shvets.Design.Patterns.Explained.Simply.pdf>. Acesso em: 10 mar. 2026.

SonarSource. Cognitive Complexity: a new way of measuring understandability. 2023. Disponível em: <https://www.sonarsource.com/docs/CognitiveComplexity.pdf>. Acesso em: 20 mar. 2026.

SonarSource. Cyclomatic complexity: developer’s guide. Disponível em: <https://www.sonarsource.com/resources/library/cyclomatic-complexity>. Acesso em: 24 mar. 2026.

Article originating from the Final Course Work of the Specialization in Software Engineering of the MBA USP/Esalq

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

You may also like

Executive Mba In Leadership And Management

November 23, 2026

Improvements in the efficiency of a secondary biological sludge drying plant

The management of industrial solid waste, especially secondary biological sludge, represented an operational and strategic challenge for a company in the pulp and paper sector. A secondary biological sludge drying plant, installed to meet environmental requirements and reduce costs, operated with low efficiency and high unavailability. The objective of this study was to evaluate and propose a set of actions to increase the operational availability of the plant, ensure the integral processing of the generated sludge, and reduce treatment and transportation costs, in addition to mitigating environmental risks. To this end, an analysis of the root causes of low efficiency was carried out, using tools such as the cause-and-effect diagram (Ishikawa) and the “5 whys” analysis, and hypotheses were tested to identify the most impactful factors. Three main root causes were identified: addition of low-load effluent to the process, absence of a dedicated maintenance team, and lower consistency of dewatered sludge. The proposed countermeasures, which included stopping the addition of effluent, hiring a maintenance team, and testing polymers, had a monthly implementation cost of R$ 35,000.00. An annual reduction in operating expenses of up to R$ 1,800,000.00 and maintenance costs of R$ 600,000.00 was estimated, in addition to a 25% reduction in operational unavailability. It was concluded that the proposed measures are viable, quick to implement, and capable of ensuring the integral processing of secondary biological sludge, strengthening the company’s ESG strategy and ensuring environmental compliance.

Keywords: Operational costs; Operational efficiency; ESG; Biological sludge; Sludge drying.

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.

Project Management

November 19, 2026

Integrated Software for Operational Communication and Control: Practical Evidence in a Medium-Sized Company

The study analyzed the impacts of the lack of integration between commercial and operational modules of an integrated management software (ERP/CRM) in a medium-sized company in the mechanical engineering sector. The main objective was to evaluate practical evidence of communication and operational control optimization, identify bottlenecks, and formulate improvement proposals. A qualitative-quantitative approach was adopted through a single case study with documentary research, based on the extraction and filtering of historical task records from the Bitrix24 software and statistical correlation analysis between workload and allocated team. Based on the diagnosis, an action plan structured in the 5W2H tool was developed. The results revealed that 54.4% of the registered tasks consisted of duplicate, test, or practically useless records, generated by manual insertion during the scope transition between commercial CRM and engineering. It was also demonstrated that the increase in the commercial team linearly accompanied the growth of inefficient tasks, polluting the database and masking the organization’s real productive capacity. It was concluded that the automation of workflows and native integration between modules are essential to mitigate operational and financial risks, providing replicable guidelines for data governance in small and medium-sized enterprises.

Keywords: System Customization; Enterprise Resource Planning (ERP); Task Management; Management Software.

Project Management

November 19, 2026

Supervised learning in voltammetric quantification with electrochemical sensors

The application of supervised learning in the voltammetric quantification of paraquat in artificial urine was evaluated. The study aimed to quantitatively assess the predictive performance of supervised learning models compared to a univariate “baseline”, preserving independence between devices in the training and testing sets. The research was conducted as an applied case study, processing data from four physical devices, each evaluated under a blank condition and six paraquat concentration levels, totaling 28 square wave voltammetry (SWV) curves. A computational “pipeline” integrated automated file reading, organization of curves into current-potential matrices, generation of potential maps, and device-specific blank correction. Five approaches were considered: conventional univariate calibration, predictive univariate “baseline”, partial least squares (PLS) regression, support vector regression (SVR), and random forest (RF). Predictive evaluation was performed using device-grouped cross-validation. PLS showed the best predictive performance for curves from a device not used in training, with an R² of 0.7981. RF exhibited intermediate performance, while SVR and the predictive univariate “baseline” showed inferior and similar performance between themselves. It was concluded that a compact multivariate representation of the voltammetric profile was more favorable for inter-device prediction than increasing model flexibility under the studied conditions. Grouped validation preserved independence, but the limited number of devices restricts the generalization of results.

Keywords: Supervised learning; Paraquat; PLS; Electrochemical sensors; Square wave voltammetry.

Project Management

November 19, 2026

Improvement of Inventory Management via Lean Six Sigma: Study in the Paper Industry

Organizations seek methodologies to reduce waste, increase efficiency, and become more competitive, promoting sustainable improvements in their processes. In this context, the study aimed to apply the Lean Six Sigma methodology, through the DMAIC cycle, to improve inventory management in a company in the paper industry manufacturing pneumatic hoses, aiming to increase the accuracy between physical and systemic inventories and improve the visual management of parts storage. The research was developed from the collection and analysis of data extracted from the company’s ERP system. Tools such as SIPOC, Ishikawa Diagram, and 5 Whys were used to define and identify the root cause of the problem. As improvement proposals, a Digital Kanban system and an adaptation of the Two-Bin system, called the Three-Bin System, were implemented, in addition to the development of standardized operating procedures and the establishment of control mechanisms. The results demonstrated a significant improvement in inventory accuracy, raising the lowest identified index from 28% to 80%, and detected discrepancies between systemic and physical records equivalent to R$ 134,335.53. It was concluded that the application of Lean Six Sigma, combined with Project Management, represented an effective approach for conducting operational improvement projects, contributed to increased reliability of inventory information, to the improvement of material control processes, and to the strengthening of the organization’s operational management.

Keywords: Inventory accuracy; DMAIC; Visual management.

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.