Skip to content

Enabling Connected Twins in IIoT with MQTT

by Ravi Subramanyan
27 min read

In the dynamic landscape of the Industrial Internet of Things (IIoT), the concept of connected twins has emerged as a powerful tool for bridging the gap between the physical and digital realms. The term "Connected Twins" typically refers to a concept or approach in the context of IIoT and the digital twin technology. In this article, we’ll explore what connected twins are, differentiate them from digital twins, and delve into how open-source MQTT protocol can play a pivotal role in enabling both technologies.

What are Connected Twins? 

A digital twin is a virtual representation or digital replica of a physical object, process, system, or entity. It is created using real-time data, simulation, and modeling techniques to mimic the behavior, characteristics, and performance of its physical counterpart. A connected twin extends the concept of a digital twin by emphasizing the connectivity and integration of multiple digital twins within a network or ecosystem. Instead of using separate digital twins for individual objects or systems, using a connected twin enables the interconnection and collaboration of multiple digital twins, allowing them to exchange data, interact, and operate in a coordinated manner. Like digital twins, connected twins also integrate with each of the physical objects that they represent. The connectivity, synchronization and enrichment of data between connected twins can be facilitated through IIoT technologies, communication protocols, data-sharing platforms, and cloud-based infrastructure. Connected twins continuously update based on real-world data.

An example of a connected twin would be a manufacturing use case with robots used in production. Each robotic process could be a digital twin, which is interconnected to create connected twins. These twins interact with their physical counterparts, aiding in real-time parameter adjustments, production simulation, and predictive maintenance.

Benefits of Connected Twins

Visibility and Enhanced Collaboration

Connected twins enable complete visibility into products and processes. Different entities, such as devices, machines, processes, and systems are able to easily collaborate, share information, and work together towards common process goals.

Real-Time Insights

By connecting digital twins and creating connected twins, organizations can gain real-time insights into the overall performance, interactions, and dependencies of interconnected assets and systems. They can also promote closed-loop integration between the twins and their physical counterparts.

Predictive Maintenance

Connected twins can support predictive maintenance strategies by analyzing data from multiple sources, identifying potential issues or anomalies, and recommending proactive maintenance actions.

Optimization and Automation

The integration of connected twins allows for optimization of processes, resource allocation, and decision-making, as well as automation of tasks and workflows across interconnected systems.

Scalability and Flexibility

Connected twins provide scalability and flexibility to adapt to changing environments, requirements, and scenarios by dynamically adjusting configurations, parameters, and interactions between digital twins.

Improved Decision Support 

The interconnected nature of connected twins enables organizations to make informed decisions, perform scenario analysis, and simulate what-if scenarios especially on industry use cases based on comprehensive data from integrated digital twins.

Differentiating Connected Twins from Digital Twins

While digital twins and connected twins are similar in a lot of ways, they are also different in certain aspects. Here are some of them:

Aspect Digital Twin Connected Twin
Definition Virtual representation or simulation of a single physical object, system, process, or entity.Interconnection and integration of multiple digital twins within a network or ecosystem.
Scope Replicates the behavior, attributes, and interactions of the physical counterpart using real-time data, sensors, and modeling techniques.Represents a networked environment where multiple digital twins collaborate, share data, and interact with each other to achieve common objectives.
Connectivity and Interactions Operate independently and are focused on modeling and simulating the behavior of a specific object or system.Emphasize connectivity and interactions between multiple digital twins. Enable communication, data sharing, and collaboration among interconnected digital twins.
Functionality and Use Cases Used for monitoring, analysis, simulation, optimization, and predictive maintenance of individual objects or systems.Extend the functionality of digital twins by enabling collaboration, coordination, and integration between multiple entities. Support complex use cases such as supply chain optimization, smart city management, industrial automation etc.
Scalability and Flexibility Can be deployed at different scales, from single objects to entire systems, but their scalability is limited to the scope of the individual twin.Offer scalability and flexibility by allowing the integration and coordination of multiple digital twins within a networked environment.

In summary, while digital twins focus on modeling and simulating individual objects or systems, connected twins emphasize the integration and collaboration of multiple digital twins within a networked ecosystem to achieve broader goals and outcomes through connectivity, data sharing, and coordinated actions.

Benefits of Using MQTT in Connected Twins and Digital Twins

MQTT is a lightweight, efficient messaging protocol designed for low-bandwidth, high-latency, or unreliable networks. It ensures reliable communication between devices, making it ideal for IIoT applications. MQTT offers several benefits when used in the context of connected twins and digital twins, enhancing their capabilities and functionalities. Here are some of the key benefits of using MQTT in connected twins and digital twins:

Data Connectivity 

MQTT is a lightweight and efficient messaging protocol designed for constrained environments, making it well-suited to act as a key enabler for data acquisition and connectivity between digital twins, IoT devices, and backend systems. It minimizes bandwidth usage and reduces latency, ensuring fast and reliable data transmission even in resource-constrained environments.

Single Source of Truth

MQTT provides a centralized communication channel for digital twin applications enabling real-time monitoring with scalable and reliable data. Real-time ensures that the digital twin is the up-to-date representation of the physical world with the latest version of the data values. Scalability ensures that data from all of the manufacturing machines, processes, and applications from various locations feeding the connected twins is able to do that in a scalable manner. Scalability also enables seamless integration and communication between a large number of digital twins within a connected ecosystem, accommodating dynamic changes and scaling requirements. MQTT's reliable message delivery mechanisms, including acknowledgments, message queuing, and persistent sessions, ensure data integrity and resilience against network disruptions or failures. It supports features such as Last Will and Testament (LWT) messages to handle unexpected client disconnections and maintain system stability. Lastly, it supports Quality of Service (QoS) levels to ensure reliable and timely message delivery which is critical for digital twin applications requiring instantaneous data synchronization and responsiveness.

From Reactive to Predictive 

By leveraging MQTT, industrial companies can easily consolidate their OT machine, application, and systems data into one location through which they can transition from reactive data approaches to proactive approaches like predictive maintenance, advanced analytics and operations optimization. This allows them to achieve digital transformation and realize Industry 4.0 use cases through which they can reduce costs, increase profitability, and become more operationally efficient. 

Data Connectivity in Connected Twins Using MQTT

Let's consider an example of data connectivity in connected twins using MQTT in the context of a smart building management system. In this scenario, we'll have multiple digital twins representing different components of the building, such as HVAC systems, lighting systems, energy meters, and occupancy sensors. These digital twins will communicate and exchange data using MQTT to enable coordinated control and optimization of building operations.

Digital Twin Setup

The various Digital Twin setups here are:

  • HVAC Digital Twin, which monitors and controls the heating, ventilation, and air conditioning systems based on temperature, humidity, and occupancy data.

  • Lighting Digital Twin, which controls the lighting systems, adjusting brightness and scheduling based on occupancy and ambient light levels.

  • Energy Meter Digital Twin, which monitors energy consumption and production from renewable sources, providing real-time data for energy management.

  • Occupancy Sensor Digital Twin, which detects occupancy levels in different areas of the building, triggering actions such as adjusting HVAC settings and turning on/off lights.

MQTT Communication Setup

The MQTT setup consists of:

  • Deploying an MQTT broker as the central messaging hub for communication between digital twins and other systems.

  • Configuring MQTT clients for each digital twin (HVAC, Lighting, Energy Meter, Occupancy Sensor) to publish data to specific MQTT topics and subscribe to relevant topics for receiving commands and updates.

Data Connectivity Flow

Here is the data connectivity flow:

  • HVAC Digital Twin subscribes to MQTT topics related to occupancy and temperature from the Occupancy Sensor and adjusts HVAC settings accordingly.

  • Lighting Digital Twin subscribes to MQTT topics for occupancy and light intensity from the Occupancy Sensor and adjusts lighting levels and schedules.

  • Energy Meter Digital Twin subscribes to MQTT topics for energy consumption and production to optimize energy usage and monitor renewable energy contributions.

  • Occupancy Sensor Digital Twin receives commands from other digital twins via MQTT topics and triggers actions based on occupancy changes and environmental conditions.

Benefits of MQTT Data Connectivity

Here are the benefits of MQTT:

  • Real-time Data Exchange: MQTT facilitates real-time data exchange between connected twins, enabling prompt actions and adjustments based on changing conditions.

  • Scalability: MQTT supports scalable communication, allowing the addition of new digital twins and sensors without significant overhead.

  • Reliability: MQTT's reliable message delivery ensures data integrity and system resilience, even in unreliable network conditions.

  • Flexibility and Interoperability: MQTT's lightweight protocol and wide adoption promote flexibility and interoperability, enabling seamless integration with other IoT devices, cloud services, and analytics platforms.

The example in the next section illustrates how MQTT data connectivity enables connected twins in a smart building environment to communicate, exchange data, and collaborate for efficient building management and optimization.

Real-Time Monitoring in Connected Twins Using MQTT

Let's consider an example of real-time monitoring in connected twins using MQTT in the context of an intelligent manufacturing environment. In this scenario, we'll have multiple digital twins representing different machines, production lines, sensors, and control systems within a manufacturing facility. These digital twins will communicate and exchange real-time data using MQTT to enable continuous monitoring, analysis, and optimization of manufacturing processes.

Digital Twins Setup

The various Digital Twin setups here are:

  • Machine Digital Twins: Represent individual manufacturing machines such as CNC machines, 3D printers, robotic arms, etc. Each machine's digital twin monitors its operating parameters, status, and performance metrics.

  • Production Line Digital Twins: Represent production lines or assembly processes, monitoring throughput, efficiency, and quality metrics.

  • Sensor Digital Twins: Represent various sensors deployed throughout the manufacturing floor, including temperature sensors, pressure sensors, vibration sensors, etc.

  • Control System Digital Twins: Represent control systems for regulating machine operations, production schedules, and quality control.

MQTT Communication Setup

The MQTT setup consists of:

  • MQTT Broker: Deploy an MQTT broker as the central messaging hub for communication between digital twins, sensors, control systems, and monitoring applications.

  • MQTT Clients: Configure MQTT clients for each digital twin (machines, production lines, sensors, control systems) to publish real-time data to specific MQTT topics and subscribe to relevant topics for receiving commands and updates.

Real-Time Monitoring Flow

The real-time monitoring flow consists of:

  • Machine Digital Twins publish real-time data such as operating parameters (speed, temperature, pressure), production output, and maintenance alerts to MQTT topics like "manufacturing/machines/machine1/data", "manufacturing/machines/machine2/data", etc.

  • Production Line Digital Twins publish throughput metrics, quality indicators, and production schedules to MQTT topics such as "manufacturing/production_lines/line1/data", "manufacturing/production_lines/line2/data", etc.

  • Sensor Digital Twins publish sensor readings (temperature, pressure, vibration) to MQTT topics like "manufacturing/sensors/temperature/data", "manufacturing/sensors/pressure/data", "manufacturing/sensors/vibration/data".

  • Control System Digital Twins subscribe to MQTT topics for receiving commands and updates related to production schedules, machine settings, and quality control parameters.

Real-Time Monitoring and Analysis

The real-time monitoring and analysis consist of:

  • Monitoring Applications: Develop monitoring applications that subscribe to relevant MQTT topics to receive real-time data from connected twins, sensors, and control systems.

  • Data Analysis and Visualization: Analyze real-time data streams from digital twins to detect anomalies, identify trends, predict failures, and optimize manufacturing processes. Visualize data using dashboards, charts, and reports for real-time insights and decision-making.

Benefits of MQTT for Real-Time Monitoring

Here are the benefits of using MQTT for real-time monitoring:

  • Timely Data Updates: MQTT's publish-subscribe model ensures timely delivery of real-time data updates, enabling continuous monitoring and rapid response to changing conditions.

  • Scalability: MQTT supports scalable communication, allowing the addition of new digital twins, sensors, and monitoring applications without significant overhead.

  • Reliability: MQTT's reliable message delivery ensures data integrity and system resilience, critical for real-time monitoring and control in manufacturing environments.

  • Interoperability: MQTT's lightweight protocol and widespread adoption promote interoperability, facilitating seamless integration with diverse devices, systems, and applications for comprehensive real-time monitoring.

This demonstrates how MQTT enables real-time monitoring in connected twins within a smart manufacturing environment, empowering organizations to monitor, analyze, and optimize manufacturing processes for improved efficiency, productivity, and quality control.

Predictive Maintenance in Connected Twins Using MQTT

Let's consider an example of predictive maintenance in connected twins using MQTT in the context of a fleet of industrial machinery, such as turbines, pumps, and compressors, within an energy generation facility. Predictive maintenance aims to identify potential equipment failures before they occur by analyzing real-time data from sensors and digital twins. MQTT facilitates the communication and data exchange necessary for implementing predictive maintenance strategies. Here's how it can work:

Digital Twins Setup

The digital twin setup consists of the following:

  • Turbine Digital Twins: Represent individual turbines and monitor parameters like vibration levels, temperature, pressure, and operational status.

  • Pump Digital Twins: Represent pumps and monitor parameters such as flow rate, motor temperature, and efficiency.

  • Compressor Digital Twins: Represent compressors and monitor parameters like pressure, temperature, and energy consumption.

MQTT Communication Setup

The MQTT communication setup consists of the following:

  • MQTT Broker: Deploy an MQTT broker as the central messaging hub for communication between digital twins, sensors, and predictive maintenance systems.

  • MQTT Clients: Configure MQTT clients for each digital twin to publish real-time sensor data to MQTT topics such as "equipment/turbines/turbine1/data", "equipment/pumps/pump2/data", "equipment/compressors/compressor3/data".

Data Collection and Analysis

The data collection and analysis consists of:

  • Sensor Data Collection: Sensors attached to turbines, pumps, and compressors collect real-time data on operational parameters.

  • Digital Twins Data Publishing: Digital twins periodically publish sensor data to MQTT topics, including vibration levels, temperature, pressure, flow rates, and energy consumption.

  • Data Analysis Engine: Implement a data analysis engine that subscribes to MQTT topics, collects historical data, and performs predictive analytics algorithms to detect patterns, anomalies, and potential equipment failures.

Predictive Maintenance Actions

The predictive maintenance actions consist of:

  • Anomaly Detection: The data analysis engine uses machine learning algorithms to analyze historical and real-time data, identify abnormal patterns or deviations from normal behavior, and flag potential equipment failures.

  • Failure Prediction: Based on anomaly detection results, the system predicts the likelihood of equipment failures within a certain timeframe, such as impending bearing failures in turbines or motor malfunctions in pumps.

  • Maintenance Alerts: When the predictive maintenance system detects a high probability of equipment failure, it generates maintenance alerts and notifications to maintenance teams or control systems via MQTT topics like "maintenance/alerts/turbine1", "maintenance/alerts/pump2", "maintenance/alerts/compressor3".

Maintenance Response and Optimization

The maintenance response and optimization consists of:

  • Maintenance Teams Notification: Maintenance alerts are received by maintenance teams, who can then schedule proactive maintenance activities, such as inspecting, repairing, or replacing components before failures occur.

  • Maintenance History Logging: The system logs maintenance actions, including repairs, replacements, and inspections, to track equipment health, performance, and maintenance history.

  • Performance Optimization: Predictive maintenance insights are used to optimize equipment performance, reduce downtime, extend equipment lifespan, and improve overall operational efficiency.

Benefits of MQTT for Predictive Maintenance

The benefits of MQTT for Predictive Maintenance consist of the following:

  • Real-Time Data Exchange: MQTT enables real-time data exchange between digital twins, sensors, and predictive maintenance systems, facilitating the timely detection of equipment anomalies and failures.

  • Scalability: MQTT's publish-subscribe model supports scalable communication, allowing the addition of new digital twins, sensors, and analysis engines without disrupting existing systems.

  • Reliability: MQTT's reliable message delivery ensures data integrity and system resilience, which is critical for maintaining accurate predictive maintenance predictions and alerts.

  • Interoperability: MQTT's lightweight protocol promotes interoperability, enabling seamless integration with diverse devices, sensors, and maintenance systems for comprehensive predictive maintenance solutions.

This illustrates how MQTT can be used to implement predictive maintenance in connected twins within an industrial facility, leveraging real-time data analysis and proactive maintenance strategies to optimize equipment performance and reliability.

Conclusion

Connected twins, powered by MQTT, empower industries to make informed decisions, optimize processes, and enhance efficiency. As IIoT continues to evolve, understanding and harnessing the potential of connected twins will be crucial for staying competitive in the digital age. Whether it’s a wind turbine, a manufacturing line, or a smart building, connected twins hold the promise of transforming how we interact with the physical world. 

Download and try out HiveMQ MQTT broker to support your connected twins use case.

Ravi Subramanyan

Ravi Subramanyan, Director of Industry Solutions, Manufacturing at HiveMQ, has extensive experience delivering high-quality products and services that have generated revenues and cost savings of over $10B for companies such as Motorola, GE, Bosch, and Weir. Ravi has successfully launched products, established branding, and created product advertisements and marketing campaigns for global and regional business teams.

  • Ravi Subramanyan on LinkedIn
  • Contact Ravi Subramanyan via e-mail

Related content:

HiveMQ logo
Review HiveMQ on G2