A bottling plant and a city of a million people look like very different problems. Look at them through the data, though, and the similarities are striking. Both have thousands of sensors producing measurements every second. Both have legacy systems that speak old protocols.
Both need some decisions taken locally within milliseconds and others taken centrally over days. Both struggle less with collecting data than with making it usable. That is why modern Industry 4.0 data architecture and smart city projects increasingly rely on the same patterns. This article describes that shared data architecture, from sensor to decision: the layers, the protocols, where computing should happen and how to keep it secure.
The Shared Problem: Data Without Context
Most organisations already collect large amounts of data. A typical plant has PLCs, drives, energy meters and quality stations. A typical city has traffic counters, air quality sensors, water network telemetry and building management systems. The problem is that each system stores its data in its own format, with its own naming, often accessible only through its own software.
A temperature value of 74.2 means nothing without context: which machine, which sensor, which unit, which time, which product batch, which normal range. Industry 4.0 and smart city architectures are, at their core, ways to add that context and make data flow to where it is needed.
The Layered Model
ISA-95 and the Purdue levels
In manufacturing, the ISA-95 / IEC 62264 standard and the related Purdue model describe a hierarchy of levels:
Figure 1. The ISA-95 / Purdue model levels in an industrial data architecture.
- Level 0: the physical process, sensors and actuators.
- Level 1: basic control, PLCs and controllers.
- Level 2: supervisory control, HMI and SCADA.
- Level 3: manufacturing operations, MES, historians, quality systems.
- Level 4: business planning and logistics, ERP.
- Level 5: enterprise and cloud services (in extended models).
Traditionally, data moved up this hierarchy one level at a time, each level filtering and aggregating for the next. That structure is still useful for security zoning, but strictly level-by-level data flow has become a bottleneck. Analytics and AI applications need access to data from several levels at once.
RAMI 4.0
The German Reference Architecture Model Industrie 4.0 (RAMI 4.0) extends the hierarchy with two further dimensions: the product lifecycle and functional layers from physical assets to business processes. Its concept of the asset administration shell, a standardised digital representation of every asset, is the basis for interoperable digital twins.
The smart city equivalent
Cities use a similar layering: devices and sensors, connectivity, a data platform, applications and services. Open standards such as the NGSI-LD context information model, used by the FIWARE ecosystem, describe city entities and their relationships (a parking space, a bus stop, a street light) in a consistent way, so that applications from different suppliers can share data.
Our guide to railway network architecture explains how transit systems share their data with the city platform.
Edge, Fog, and Cloud in Industry 4.0 Data Architecture
Not all data needs to travel to the cloud, and not all decisions can wait for it.
Figure 2. Comparison of edge, fog and cloud computing roles.
- Edge computing happens on or next to the machine, intersection or vehicle: industrial PCs, gateways, smart cameras. It handles time-critical processing (milliseconds), data reduction and local autonomy when the network is down.
- Fog computing sits at site level: a server in the plant’s data room or the city district. It aggregates data from many edge devices, runs site-wide applications such as MES or a district traffic controller, and buffers data for the cloud.
- Cloud computing provides elastic capacity for long-term storage, cross-site analytics, AI model training and enterprise applications.
A useful rule: process data as close to its source as the decision allows. Vibration analysis for a single motor belongs at the edge. Comparing that motor’s behaviour with a thousand similar motors across ten plants belongs in the cloud.
Protocols: How Data Moves
OPC UA
OPC UA (IEC 62541) is the most important interoperability standard in industrial automation. It combines secure transport with a rich information model: data is not just a value but an object with type, unit, range and relationships. Companion specifications define standard models for machine types, from injection moulding machines to robots. OPC UA PubSub adds publish-subscribe communication over MQTT or UDP for scalable data distribution.
MQTT and Sparkplug
MQTT is a lightweight publish-subscribe protocol originally designed for unreliable networks. Devices publish messages to topics on a broker, and any number of subscribers receive them. It scales well and works across firewalls, which makes it popular for both IIoT and smart city sensor networks. Sparkplug B adds a defined topic structure, payload format and device state management to MQTT, making it more suitable for industrial use.
Time-Sensitive Networking
TSN is a set of IEEE 802.1 standards that adds deterministic timing to standard Ethernet. It allows control traffic with strict latency requirements and ordinary IT traffic to share the same network, which could eventually replace many proprietary fieldbuses.
The Unified Namespace
An increasingly popular pattern is the unified namespace (UNS): a central, event-driven data hub, typically built on an MQTT broker, where every system publishes its current state in a structured hierarchy that mirrors the organisation, for example enterprise/site/area/line/machine/sensor. Applications subscribe to what they need instead of building point-to-point integrations.
Figure 3. A unified namespace decouples data producers and consumers through a central broker.
The advantage is decoupling. When a new application is added, it connects to the namespace rather than to ten different systems. When a machine is replaced, only its publisher changes. The same idea applies to cities, where a context broker serves as the shared view of urban infrastructure.

City dashboards that combine traffic and energy readings often depend on intelligent transport systems for live road data.
From Data to Decisions
Contextualisation
Raw tags become information when they are linked to assets, products, orders and time. This happens partly at the edge (adding units, timestamps and asset identifiers) and partly in higher layers (linking to production orders or maintenance records).
Analytics and AI
- Condition monitoring and predictive maintenance: detecting degradation in motors, pumps and bearings before failure.
- Quality prediction: linking process parameters to quality outcomes to adjust settings before defects occur.
- Energy optimisation: identifying waste and shifting loads to cheaper or cleaner periods.
- Traffic and mobility prediction in cities, adjusting signal plans and public transport capacity.
- Water network leak detection from pressure and flow patterns.
Models are typically trained centrally on historical data and deployed to edge devices for inference. Edge hardware with GPU or NPU acceleration makes it possible to run vision and anomaly detection locally.
Digital twins
A digital twin combines the asset model, live data and simulation. In a plant, it might represent a production line, allowing engineers to test changes virtually. In a city, it might represent the road network, the water system or a district’s energy demand. The value comes from keeping the twin synchronised with reality through the data architecture described above.

A Worked Example: Predictive Maintenance for a Pump Fleet
A water utility operates 120 pumping stations across a region. Pumps fail unexpectedly a few times a year, each time causing supply interruptions and emergency call-outs. The utility wants to predict failures early.
At the edge, each station receives a small industrial gateway connected to the existing PLC over Modbus TCP and to new vibration and temperature sensors on the pump bearings. The gateway calculates vibration features (RMS velocity, peak acceleration, frequency band energies) every minute instead of transmitting raw waveforms, and adds the pump’s operating state, flow and pressure from the PLC.
The gateway publishes this contextualised data over MQTT with TLS to a central broker, using a topic structure such as region/station/pump/measurement. It buffers data locally when the cellular connection drops.
In the cloud or central data centre, a historian stores the data, and an analytics application compares each pump’s behaviour with its own history and with similar pumps across the fleet. Anomaly detection models flag pumps whose vibration signature changes. Maintenance planners receive prioritised work orders with the relevant trends attached.
Nothing in this example is specific to water. Replace pumps with compressors in a factory, escalators in metro stations or traffic signal controllers in a city, and the architecture is identical: edge collection and reduction, a common data layer, central analytics and a feedback loop into operations.
Data Quality and Governance
Analytics projects fail more often because of bad data than because of bad algorithms. Common problems include sensors that drift without calibration, inconsistent tag names across sites, missing timestamps or unsynchronised clocks, and gaps nobody notices. A few practices prevent most of them:
- Synchronise time across all devices using NTP or PTP. Correlating events is impossible without a common clock.
- Define naming conventions and asset models before scaling, and enforce them at the edge.
- Monitor data quality itself: flat-lining sensors, out-of-range values and gaps should raise alerts just like process alarms.
- Assign data ownership. Someone must be responsible for each data source, its meaning and its quality.
Operators who monitor the servers behind the platform can compare their setup with DCIM software tools.
Urbanisation Raises the Stakes
The United Nations projects that around two thirds of the world’s population will live in urban areas by 2050. More people in cities means more pressure on transport, energy, water and public services, with limited room to build new infrastructure. Using existing infrastructure more efficiently through data is often cheaper and faster than expanding it. That is the economic logic behind smart city investment.
Security Across the Architecture
Connecting operational technology to IT and the cloud expands the attack surface. The IEC 62443 standard series provides the framework for industrial and infrastructure systems:
- Segment the network into zones by function and criticality, with controlled conduits between them. The Purdue levels provide a natural starting point.
- Avoid direct connections from the cloud to control systems. Use demilitarised zones (DMZ) with brokers or data diodes between OT and IT.
- Prefer outbound connections from edge devices to brokers, so that no inbound ports need to be opened in the OT network.
- Use secure protocols: OPC UA with encryption and certificates, MQTT over TLS with authentication.
- Harden edge devices: secure boot, TPM, signed updates, disabled unused services.
- Monitor for anomalies in industrial traffic and maintain an asset inventory.
People and Skills
Technology is only part of the picture. Industry 4.0 and smart city projects need people who understand both operational processes and data: automation engineers who can work with IT tools, data scientists who understand physical processes, and operators who trust and act on the new information. Many projects fail not because of technology but because the organisation does not change how decisions are made.
Implementation Roadmap
- Start with a business problem, such as unplanned downtime, energy cost or congestion on a specific corridor.
- Inventory data sources and their protocols, quality and ownership.
- Deploy edge devices to collect and contextualise data from the relevant assets.
- Establish a common data layer, such as an MQTT-based unified namespace or a context broker.
- Build the first application and measure its value.
- Scale to more assets, sites or districts using the same architecture.
- Secure and govern from the beginning, not as an afterthought.

Frequently Asked Questions
What is the difference between edge and cloud computing in Industry 4.0?
Edge computing processes data close to machines or sensors for fast, local decisions and data reduction. Cloud computing provides scalable capacity for long-term storage, cross-site analytics and AI training.
What is a unified namespace?
A unified namespace is a central, event-driven data hub, typically based on MQTT, where all systems publish their current data in a structured hierarchy so that applications can subscribe without point-to-point integration.
Why are OPC UA and MQTT used together?
OPC UA provides rich information models and secure communication at the machine and plant level, while MQTT provides lightweight, scalable publish-subscribe distribution to many consumers, including cloud platforms. OPC UA PubSub can also run over MQTT.
How do smart cities use Industry 4.0 technologies?
Smart cities use the same building blocks: sensors, edge computing, IoT protocols, data platforms, analytics and digital twins, applied to traffic, energy, water, waste and public safety.
Edge Computing Hardware From Valen
Valen supplies industrial edge computers, AI-enabled systems, gateways, panel PCs and data centre infrastructure for Industry 4.0 and smart city projects, from the sensor-side gateway to the server room. Contact Valen to discuss your architecture.







