- Nature wrote the book on intelligence and we took it to the factory floor. ELEKS tested a bio-inspired edge model that makes fast local decisions on a production line in a model under 4 MB. Read on for how it works, what didn’t and what comes next.
Manufacturers need AI inside the machine
Unplanned downtime is one of the costliest problems in industry. Siemens' True Cost of Downtime 2024 report estimates that the world's 500 largest companies lose almost $1.4 trillion a year to it, about 11% of their revenue.
Many of the decisions that prevent those losses can't wait for a round trip to the cloud. A safety-zone event, a temperature drift or a blocked filter needs a local answer, even when the network is slow or down. That is why the intelligence has to sit in the machine itself. This idea goes by several names that are often used interchangeably, so it helps to clear them up:
- Physical AI senses, decides and acts in the physical world, not just on a screen. NVIDIA describes it as AI that allows autonomous machines "to perceive, understand and perform complex actions in the real (physical) world". For manufacturers, this means sensors, models and equipment working together in one closed loop.
- Embodied AI is the older name for much the same idea, used in academic work since the 1990s. It stresses that intelligence lives in a body of sensors and actuators and is shaped by continuous interaction with its environment.
- Biophysical AI describes a similar concept, with the small tweak that its underlying structure and dynamics come from measured biology rather than from a generic stack of layers.
ELEKS’ work sits more on the biophysical side. Instead of training a generic network and hoping it copes with physical signals, we borrow the computational structure of a nervous system. A nervous system is built to turn many asynchronous sensory streams into timely action, so we use it as a prior for a machine that has to do the same.
Whole-line intelligence for production lines, and where biology comes in
A factory line does not fail in one isolated way. A falling holding temperature may be harmless for a minute; it becomes a quality concern if flow stays high. Rising filter pressure matters more when pump current and vibration rise with it. A camera may report seal defects while the conveyor is still moving.
Each sensor has a history, but the operator needs the history of the whole line.
Consider a manufacturer that builds pasteurisation lines for its customers. It wants one edge device per line. That device collects process, equipment, environmental, camera, and safety observations. It then turns them into timely operational recommendations or even direct actions.
The manufacturer is building the production system, rather than pasteurising milk itself, and that distinction matters: the proposed monitoring solution has to work across installations, equipment variants and sensor configurations. It must also handle data and signals of different kinds and stay efficient in terms of computing possibility (~edge), costs, performance.
That’s the real problem of physical AI in manufacturing intelligence: it has to perceive, combine and act on the messy, asynchronous reality of data, not tidy rows in a table. At ELEKS, we took an unusual start: a small, real slice of a fruit fly’s nervous-system wiring. This approach can resolve several challenges around edge computing and the different nature of signals: a nervous system accepts different kinds of inputs, maintains distributed activity, and carries signals through many connections before producing a response.
Nature wrote the blueprint for intelligence — we are bringing it to the factory floor.
One may wonder how a fruit fly’s wiring can help an edge device? It gives the model a ready-made, measured way to mix very different signals. A nervous system accepts many kinds of input, keeps activity spread across many neurons and passes signals through many connections before it responds. A factory line needs the same habit.
In September 2026, Google Research and collaborators described a complete male fruit fly central nervous system map containing more than 166000 neurons and 125 million synaptic connections. The map is a scientific account of biological connectivity, not a manufacturing model, but it gives engineers something rare: a measured, directed graph through which signals can propagate.
ELEKS' biophysical AI experiment: what data did we use?
Our study uses 2880 records covering 48 hours of manufacturing/pasteurization, with 36 variables (including timestamp and decisions) in total. The dataset carries explicit signal levels, descriptions and expected decisions, but no recorded plant provenance: we treat it as a short-term controlled line scenario rather than long-term customer production history. 23 numeric and binary input channels describe the line, including the temperature control unit, product inlet and holding temperatures, hot-water temperature, product flow, filter differential pressure, pump current, motor vibration, ambient humidity, VOC and CO₂ levels, guard and emergency-stop status, LiDAR zone occupancy, and camera-derived seal-defect rate. Context fields identify the timestamp, shift, batch, and line state.
Our target is an operational decision, with a corresponding action label: there are 18 decision classes and 13 action values. Based on primary EDA: some decisions depend on persistence: thermal deviation is observed over ten or twenty minutes, filter restriction over fifteen, a safety-zone event may matter after two minutes. And obviously, in time series analysis, one single observation cannot express those conditions reliably.
Described signal channels are not naturally one uniform stream. For example, temperature is continuous, an emergency stop contact is a state, LIDAR may announce an event, and camera analytics may arrive after processing a frame. A deployed edge device would receive them on its own clocks, preserve each observation timestamp and validity, and assemble a current picture of the line. Then the fixed number of neurons in the graph does not require a fixed number of arrivals at every instant. There is also an imbalanced problem: of the 2880 states, 2679 (~93%) are labelled as NORMAL (here, the accuracy metric alone can therefore flatter a model that mostly says NORMAL). A tuned solution must identify the less frequent states at the right time, especially the ones that lead to quality loss or equipment intervention.
FEATURE_COLUMNS = [
"tcu_setpoint_c",
"tcu_output_pct",
"product_inlet_temp_c",
"product_holding_temp_c",
"product_outlet_temp_c",
"hot_water_temp_c",
"product_flow_l_min",
"holding_tube_pressure_bar",
"filter_dp_bar",
"pump_current_a",
"conveyor_speed_m_min",
"vibration_rms_mm_s",
"motor_bearing_temp_c",
"ambient_temp_c",
"ambient_humidity_pct",
"voc_ppm",
"co2_ppm",
"hvac_fan_feedback",
"lidar_zone_occupied",
"guard_closed",
"estop_healthy",
"camera_product_present",
"camera_seal_defect_rate_pct",
]
BINARY_FEATURES = [
"hvac_fan_feedback",
"lidar_zone_occupied",
"guard_closed",
"estop_healthy",
"camera_product_present",
]
DECISION_COLUMN = "expected_decision"
ACTION_COLUMN = "action_command"
TIMESTAMP_COLUMN = "timestamp_utc"
So, let's start with the dataset, where for each signal timetick, we look back over 20 previous states. Continuous channels are standardised with statistics fitted on the training period only (like scaling, etc.). Binary status signals remain 0 or 1. The simplest feature vector preserves three views of each channel: window mean, latest value, and the change between the first and last timetick, so with 23 variables, that produces only 69 features. Such alignment is useful for retraining purposes and makes the experiment reproducible (does not force every future machine, camera, and safety channel to adopt the same physical sampling rate, etc.), but for the feedforward usage (signals come at different times and intervals, the same as signals in bioorganisms), each variable should be processed in a different way.
How did we turn a connectome into a compact computation?
We did not need the whole map. From the public male-cns:v1.0 dataset on neuPrint, we selected 10,000 highly connected neurons set and the 180,000 strongest directed connections among them. Each neuron has a body ID, type, instance, and degree (but we haven’t used neuron skeleton for ID mapping, so the visualisations are made only as illustrative artifact); each retained edge has a source, target, and weight.
Even such a distilled graph brings us an architectural prior: signals enter at many nodes, move along directed connections, and mix before a decision is read out. Its direction and sparseness come from measured biological connectivity rather than a stack of dense learned layers (ANN), and what is important: training does not construct or reshape that topology (no artificial neuroplasticity). The edge weights are synaptic counts from the public graph, and they are not coefficients estimated from factory data. This is a biophysical inspiration for computation, not evidence that a fly has learned manufacturing physics.
So, in case we have inputs/signals with the same nature that can be processed as the typical matrix input to the encoder, it will be an easier problem: feature matrix multiplied by encoder (similar to typical DL practices). But given that each signal/modality should have its own encoder and each encoder should process its inputs in parallel, we should have another approach: camera features, acoustic or vibration signals, continuous process readings, equipment states, and past machine actions keep their own formats and timestamps. Each encoder produces a compact embedding plus validity and freshness information. The embeddings are routed into a fixed-size 10К neuron state, so different sampling rates do not require forcing every signal into one shared time grid (which is a great benefit of the overall approach with the twin). This takes inspiration from fly circuits, where sensory pathways can be distinct and later converge, but it also does not mean our factory signals are biologically equivalent to fly senses.
So, the signal inputs (xs) are processed like:
z_s(t) = f_{\theta_{m(s)}}(x_s, e_{\mathrm{id}(s)}, q_s, a_s), \qquad I(t) = \sum_{s \in \mathcal{A}(t)} g_s(t)\, P_{m(s),\mathrm{id}(s)}\, z_s(t)
Where eid(s) – embedding, qs – quality indicators, as – age of the signal, zs – encoder output, P (sparse projection) routes a signal embedding to a small, stable set of graph input neurons and gs gates out missing or stale readings.
def inject_inputs(streams, n_neurons):
batch = next(iter(streams.values()))["x"].shape[0]
drive = np.zeros((batch, n_neurons), dtype=np.float32)
rows = None
for stream in streams.values(): ### modality types, not signals
x = stream["x"]
valid = stream["valid"].astype(np.float32)
age = stream["age"].astype(np.float32)
### missing observations -> validity mask
safe_id = np.where(valid > 0, stream["signal_id"], 0)
id_features = stream["id_embedding"][safe_id]
features = np.concatenate(
[x, id_features, valid[..., None], age[..., None]], axis=-1)
z = np.maximum(0, features @ stream["encoder"] + stream["bias"])
### project to our set of neurons assigned to each signal ID
routed_drive = z @ stream["projection"]
gate = valid * np.exp(-age / stream["age_tau"])
routed_drive *= gate[..., None]
neuron_ids = stream["route_neurons"][safe_id]
if rows is None:
rows = np.broadcast_to(
np.arange(batch, dtype=np.intp)[:, None, None],
neuron_ids.shape,)
### sum simultaneous contributions
np.add.at(drive, (rows, neuron_ids), routed_drive)
return drive
The connectome (our graph or model) then updates its shared state using elapsed time (r(t) – activity rates vector):
r(t + \Delta t) = e^{-\Delta t/\tau}\, r(t) + \left(1 - e^{-\Delta t/\tau}\right) \mathrm{ReLU}\!\left(W^{\top} r(t) + I(t)\right)
def connectome_step(rates, drive, source, target, weight, delta_t, tau):
incoming = np.zeros_like(rates)
### source/target are integer node indices from the twin
edge_drive = (rates[:, source] * weight[None, :]).T
np.add.at(incoming.T, target, edge_drive)
dt = np.broadcast_to(np.asarray(delta_t, dtype=np.float32), (rates.shape[0],))[:, None]
alpha = np.exp(-dt / tau)
return alpha * rates + (1.0 - alpha) * np.maximum(0.0, incoming + drive)
Our current distilled connectome was selected by reduction degree (10K neurons), so it doesn’t have brain-region annotations, but it is possible to map inputs to more suitable neurons. Thus, camera features could be tested against visual pathways, and sound or vibration against auditory/mechanosensory pathways. Also, for example, temperature, pressure, or other industrial measurements have no automatic one-to-one fly equivalent, so it is possible to give them their own input pool and let SFT/RL learn useful routes. The final routing adapter can learn which candidates (pathways/neural chains) help, while keeping the connectome weights fixed.
Why did we avoid reinforcement learning?
Reinforcement learning here is possible in principle, but we did not use it because exploring directly on a customer’s line would mean repeated trial-error actions, with risks of downtime, product loss, equipment damage and safety incidents. Building the efficient simulator would also require modelling the process physics, controls, sensor timing and faults, then checking that the simulation matches the real plant (the same using some limited dataset to ingest into the sim the dependencies-elasticity). Imitation learning is another option when expert action demonstrations are available: here, the model learns decision labels, and the recommended action is derived separately.
We train offline from timestamped historical records, so in this run, “replay” means making repeated passes over labelled training windows. The approach uses full-batch gradient descent, not a dedicated RL experience-replay buffer. Graph activity updates are forward state propagation:
r^{(k+1)} = \mathrm{ReLU}\left(0.72\, r^{(k)} + 0.015\, W_{\mathrm{conn}}^{\top} r^{(k)}\right)
While the neuron retention factor 0.72 (for easier understanding, can be treated as the forget gate in LSTMs) and the weighted activity 0.015, which is the scale factor to normalise the incoming activity from previous neurons, can be validated via hyperparameter selection (we haven’t done this, because this is an internal connectome mechanism, and should be reviewed after the primary benchmarking, in case additional improvements are needed). The model applies this update using the fixed connectome weights and then selects 512 rates for the readout. As stated above, the proposed approach gives each modality its own encoder. A stable signal ID routes each encoded observation to a small subset of our 10K input neurons, while validity and age gates suppress missing or stale readings (described in the previous section). The modality encoders can process batches independently, and their sparse contributions are accumulated into the same fixed-size graph input, but it can accept a variable number of signal observations at each time, which contributes only to its assigned neurons (it doesn’t mean you must wait for every sensor to report before doing any feedforward/creation samples/feature batch as in DL).
# Each modality batch contains features, IDs, validity/age gates, and row indices.
current = np.zeros((batch_size, 10000))
for modality, batch in events_by_modality.items():
z = np.maximum(0, batch.features @ encoder[modality] + bias[modality])
neurons = routes[modality][batch.signal_id]
values = (z @ projection[modality]) * batch.gate[:, None]
np.add.at(current, (batch.row[:, None], neurons), values)
incoming = np.zeros_like(rates)
np.add.at(incoming.T, target, (rates[:, source] * edge_weight[None, :]).T)
alpha = np.exp(-elapsed_seconds[:, None] / neuron_tau)
rates = alpha * rates + (1.0 - alpha) * np.maximum(0.0, incoming + current)
Here, source, target, and edge_weight come from our connectome (distilled part of the twin); routes maps each registered signal ID to its fixed neuron subset. Supervised loss backpropagates through the time-dependent rate updates while the connectome remains fixed initially (simply speaking, because this is just the topology/skeleton).
What did the results of our experiment show?
The results showed a few useful numbers: training loss from 1.356 to 0.0059 over 400 epochs; a 3.81 MB model archive; 136.7 seconds to compute graph features for the historical windows and signals; and 0.021 seconds at the 95th percentile for one complete prediction (CPU only, 10-20 TOPS). We’ve reached 98.9% training accuracy, 88.7% validation accuracy over 432 samples, and 0.357 validation loss. But as noted after the dataset EDA, it is quite imbalanced, so accuracy alone isn't the right metric: on these validation observations, predicting NORMAL every time (average last-value prediction test) would score ~80.7%. And this is the first question, so let’s benchmark the solution against other metrics (and splits) and models. First of all, let's remove the chronological split; thus, it brings a different target distribution from what was seen in the training set (based on the timestamp, we have more or less abnormal behaviour which needed to be resolved). So, randomly stratified 20-minute windows overlap heavily, and future timestamps can now appear in training. We choose additional estimators and a frozen connectome (just readout (~Softmax) tuning, w/o encoders) for benchmarking. XGBoost and LSTM were trained using GridSearch (typically not the best option in terms of overfitting, but here we want to reach our goals with min efforts). BTW, we also limited the searched hyperparameters to smaller capacities (to be comparable with the connectome size).
| Model | Validation accuracy | Validation macro-F1 | Fit time (cold start for the first feed) | Inference p50 / p95 |
|---|---|---|---|---|
| Distilled connectome | 99.07% | 0.757 | 136.7 s | 19.0 / 21.2 ms |
| XGBoost | 99.07% | 0.783 | 4.39 s | 60.21 / 69.12 ms |
| LSTM | 96.05% | 0.360 | 20.16 s | 51.07 / 61.34 ms |
As we can see, the trainable twin performance (encoders+Softmax, w/o internal neuron activations, retentions, etc. tuning) is close to the ensemble benchmark, while the DL approach is less efficient (probably due to the sequential approach (similar to our signals' nature) instead of window summaries). Also, for both XGBoosting and LSTM, we need to form the input matrix (containing a signal window), while the connectome can process each signal separately without waiting for other signals, as explained previously.
Finally, talking about the training, there is also the second question. Since only the readout and encoder are trainable, the encoder may send important process signals to unhelpful parts of the graph (especially if it is distilled); neuron activation also wasn’t tuned the edge gain (to choose the right chain) can be less useful or even misleading. And this is precisely what makes the biological prior probability improvable rather than partially decorative.
What are the benefits of our experiment?
Compact bio-inspired models can make line-level decisions locally and quickly.
- A model under 4 MB that runs on a CPU can fit modest edge hardware on every line. That allows one design to be used across many installations (which controls unit cost).
- Decisions in tens of milliseconds made on the line reduce dependence on the network. We have to prove these benefits on your actual device and line yet.
- Per-signal encoders mean each sensor reports on its own clock. You don’t need a shared input matrix or common time grid.
- Equipment makers can treat line monitoring as a product feature (ship with machine, not bolted on later).
Getting from prototype to production requires more than a model. A real edge product has data acquisition modules, timestamp alignment, device health checks, secure updates and explicit missing-sensor handling; it also needs an MLOps loop for retraining as lines change, recipes change, and sensors change.
From fast computation to a credible edge product
For one complete 20-minute sensor window, a 50-run benchmark on the computing device (which will be installed on the pasteurisation line, approximately 10-20 TOPS) measured 0.014 seconds mean prediction time, 0.013 seconds median, and 0.021 seconds at the 95th percentile. On the other hand, connectome performance (f1) is quite acceptable in comparison to other models (even the readout training above our twin, which was similar to LSTM performance) on the validation data (data was not used in SFT tuning).
The main benefit is that on the live line, the sparse input design would let a temperature inputs update frequently while a camera or any sensor with accumulation contributes only when its analytics/outputs are ready. Our connectome would receive both through stable input channels. What can be improved there are the missing measurements tests (e.g., a zero value alone is ambiguous and may mean a valid normalised reading), stale values, new sensor variants, and different line layouts.
Also, in general, the edge architecture offers a way to reduce local decision latency and reduce dependence on a cloud connection, and those are engineering advantages to validate on the actual device and specific line. Such a local device would also need data acquisition modules, timestamp alignment, health checks, secure updates, and explicit handling of missing sensors (which are typical background activities for any applied edge computing).
The described wiring provided a compact way to mix different kinds of industrial signals, and the implementation ran quickly as a small topology (encoders-graph-readout). There are some harder findings about learning, input mapping, etc., but these are still the first steps, and the described approach will improve, especially after “in situ” tests. That is how an intriguing biological architecture could become a dependable edge decision tool.
FAQs
Physical AI is artificial intelligence that perceives the physical world through sensors, reasons about it and acts through machines or people (robots, autonomous vehicles, factory systems, etc.), from sensor data to real-time decisions.
Physical AI describes what the system does (sense, decide and act in the real world). Edge AI describes where the model runs (on or near the device, not in a cloud far away). On a factory floor, most physical AI decisions run at the edge.
No. An industrial digital twin simulates plant assets. The connectome model has a slice of fruit fly neural wiring as its computation structure. It does not simulate the factory.
Related Insights
Inconsistencies may occur.
The breadth of knowledge and understanding that ELEKS has within its walls allows us to leverage that expertise to make superior deliverables for our customers. When you work with ELEKS, you are working with the top 1% of the aptitude and engineering excellence of the whole country.
Right from the start, we really liked ELEKS’ commitment and engagement. They came to us with their best people to try to understand our context, our business idea, and developed the first prototype with us. They were very professional and very customer oriented. I think, without ELEKS it probably would not have been possible to have such a successful product in such a short period of time.
ELEKS has been involved in the development of a number of our consumer-facing websites and mobile applications that allow our customers to easily track their shipments, get the information they need as well as stay in touch with us. We’ve appreciated the level of ELEKS’ expertise, responsiveness and attention to details.