
A digital twin of a pharmaceutical operation is only as reliable as its underlying data, and PiSA, a Mexican manufacturer operating 16 plants and 17 specialty production lines, set out to build one. Its first obstacle was the data itself. Each machine and process recorded information according to its own criteria, with no uniform standard across the company. This lack of consistency produced conflicting readings that made real-time decisions unreliable, directly affecting product quality and operational efficiency.
The equipment generating this data added another layer of complexity. PiSA's production lines combined modern IoT systems with legacy machinery, often using incompatible protocols and formats. As a result, information reached the people who needed it too late, delaying responses to production anomalies and quality issues. Manually reconciling these sources created a permanent operational cost in a sector where evidence must be provided to regulators for every batch.
Phase 1 of the digital twin therefore focused not on the model itself, but on the foundation beneath it: a Single Source of Truth. This unified, authoritative repository would consolidate data from machines, processes, and facilities, allowing production, quality control, and management teams to work from the same reliable dataset. Working with the integrator EISOT, PiSA chose Barbara as the edge infrastructure on which to build it.
Establishing a Single Source of Truth across PiSA's manufacturing operations presented four challenges:
With support from the integrator EISOT, PiSA built an edge computing architecture to serve as the backbone of its Single Source of Truth strategy. Barbara Core ran on edge nodes installed at the manufacturing site, providing a secure runtime for the containerized microservices, or workloads, that formed the solution and connecting them to the surrounding production equipment. Its management agent maintained permanent communication between every node and Barbara Panel. From there, the team remotely handled data integration, deployment, execution, and the automated configuration of applications and algorithms without requiring staff on the plant floor. Many of these workloads came ready-made from Barbara Marketplace, allowing the team to assemble the deployment from certified applications rather than packaging each one independently. This shortened the time required to bring each new line into the architecture.
The architecture operated in two tiers. Each edge node acquired data from the equipment on its production lines, normalized and pre-filtered it locally, and wrote the validated output both to its local database and to a second database hosted on PiSA's on-premises servers. This second copy, rather than the individual node, held the authoritative record. It brought together data from every line in the unified repository on which the digital twin would later be built.

The following components formed the deployment:
Plant staff did not need to stand in front of a node to work with it. Barbara's built-in VPN service provided secure remote access to the web interfaces of the workloads running on each device. This kept the data inside the plant while allowing authorized users to access it from wherever they were. Underneath, Barbara Core's out-of-the-box compliance with IEC 62443-4-2 secured both the devices and the data travelling between production equipment and the central repository. Connecting the lines therefore introduced no new points of exposure, and the architecture as a whole was designed to comply with GxP standards.
Consolidating data from every production line into a single authoritative repository changed how PiSA reported, audited, and operated its manufacturing processes:
By consolidating data from its machines, processes, and facilities into a Single Source of Truth built on Barbara's platform, PiSA completed the first phase of its digital twin. Unified, pre-filtered, and validated data from every production line was held in a single authoritative repository within the company's own facilities. Manual reconciliation gave way to a record that production, quality control, and management teams interpreted consistently. Traceability, regulatory compliance, and operational efficiency now rested on the same foundation rather than on separate reporting exercises.
This foundation was deliberately designed to remain open-ended. Because the edge model normalized the data from each line before it reached the repository, the same architecture could be replicated across PiSA's plants and warehouses without being rebuilt for every new set of machines. The second phase of the digital twin could therefore begin with a consistent, company-wide dataset. For a manufacturer operating 16 plants under strict regulatory scrutiny, this combination of local processing and a single shared record turned digitalization from a series of isolated projects into a strategy on which the entire operation could be built.
PiSA is a 100% Mexican company with 80 years of history and a leading position in the development of medicines, products, and comprehensive services for both the public and private healthcare sectors. The group is supported by a multidisciplinary team of more than 20,000 highly qualified employees working across its different business units.
Its manufacturing operation spans 16 plants and 17 specialty production lines, supporting a portfolio of more than 1,500 products and integrated healthcare solutions that serve millions of families. Each specialty line has its own equipment and processes, and the company maintains this breadth while complying with the healthcare regulations and regulatory frameworks of Mexico and every other country in which it operates.
Get full access to Barbara platform and start experiencing on your own the power of deploying and managing your AI models and edge apps while having full control of your edge nodes.
