Inductive Learning

What is an example of how AI models use data from sensors?

A phone that recognizes walking, running, or sitting from motion data is one example. Here is how an AI model turns raw sensor readings into a prediction.

On this page
  1. The short answer
  2. Example 1: a phone that recognizes activity
  3. Example 2: a motor monitored for faults
  4. Preparing sensor data
  5. What can go wrong
  6. Using the trained model
  7. Key takeaways

The short answer

A common example is a smartphone that recognizes what its owner is doing from motion sensors. The phone’s accelerometer records movement along three directions, many times a second. An AI model reads short windows of those readings and predicts an activity, such as walking, running, or sitting.

Another example comes from industry. A vibration sensor on a motor produces readings that a model can use to flag patterns similar to those seen before past failures. Both cases follow the same basic path: the readings are cleaned, a model learns from labeled history, and the trained model then makes predictions on new readings.

Example 1: a phone that recognizes activity

To build an activity model, developers record people walking, running, and sitting while the phone collects readings. Each recording is labeled with its activity. A learner then finds patterns in those labeled readings. Walking, for instance, produces a repeated up-and-down motion that looks different from the steadier readings of sitting.

After training, the model reads a new window of readings and predicts the activity. This is inductive learning: the rule comes from labeled examples, not from a person writing out what walking looks like. The idea is explained further in what is inductive learning. The prediction is a guess based on patterns in past data, so it can be wrong when someone moves in an unusual way.

Example 2: a motor monitored for faults

A vibration sensor on a motor produces a steady stream of readings. Suppose a plant keeps logs of readings from normal running and from the stretch before past failures. A model trained on that history can flag new readings that resemble the patterns that came before those failures.

Failures are rare, so there may be few examples to learn from. The model can only recognize patterns that look like past failures. If a new kind of fault appears, it may not be flagged at all.

Preparing sensor data

Raw sensor readings are rarely ready for a model. Common preparation steps include:

  • Filling or removing gaps where readings were lost.
  • Smoothing out random noise.
  • Splitting the stream into fixed-length windows.
  • Computing summary features for each window, such as averages or peak values.
  • Scaling values to a common range, so that no single sensor dominates.

Steps like these belong to data preprocessing, covered in need of data preprocessing in machine learning. Poor sensor data produces poor predictions, a point covered in why is data important for machine learning.

What can go wrong

  • Sensor drift. Sensors can change over time, so readings from last year may not match readings from today.
  • Different placement. A phone carried in a pocket produces different readings than one held in a hand.
  • Changing conditions. A model trained on one machine, or one group of people, may not work well on another.
  • Rare events. Failures are uncommon, so the model may see only a few examples of them.

Using the trained model

Once a model is trained, using it on new sensor readings is called inference. Each time the phone’s model labels a new window of motion data, or the motor model flags a new reading, it is making an inference. What is inference in the context of AI models explains the term in more detail.

Key takeaways

  • Sensors record numbers over time, and AI models learn patterns from labeled recordings of those numbers.
  • Phone activity recognition and motor fault monitoring are two common examples.
  • Readings need cleaning first, and a model can only recognize patterns that resemble its training data.

The complete guide to inductive learning

Inductive Learning in Artificial Intelligence, With an Example
Read the guide

Keep exploring

Guides from other topics

All topics →