Signal
Name the physical or operational phenomenon the feature represents, including sensor source, units, sampling behavior, and expected noise.
Picture an IoT team using the ideas in Feature Engineering for ML during a live operations review. A device has produced messy evidence, an analytic step is about to change an alert or control decision, and someone has to explain why the result should be trusted.
Read this page as that path from sensor evidence to accountable action. Start with what the system observes, keep the model or data treatment visible, and finish with the check that would convince an operator, maintainer, or auditor to act.
Feature engineering turns raw IoT observations into model inputs that preserve the meaning needed for a decision. The useful feature is not simply a statistic or embedding. It is a repeatable measurement of the signal, context, label boundary, and time window that the model will see again in deployment.
For a vibration classifier, a feature may describe energy in a frequency band, peak behavior, or a change from normal baseline. For an occupancy model, a feature may combine motion events, door state, time of day, and recent absence. For a battery-risk model, a feature may tie voltage, temperature, current draw, firmware state, and communication retries to a service decision.
If you only need the intuition, this layer is enough: a feature is acceptable when its source, window, units, label timing, missing-data behavior, transformation code, and deployment availability are all reviewable.
Worked example: a temperature-alert model might turn one-second sensor samples into a 60-second window with mean, maximum, slope, missing-sample count, and last-calibration age. Those features are only trustworthy if the same window boundary, unit conversion, calibration state, and missing-data rule are used during training, validation, and deployment. If the edge device later reports every 10 seconds, the feature recipe has changed even when the feature names stay the same.
Name the physical or operational phenomenon the feature represents, including sensor source, units, sampling behavior, and expected noise.
Define the time span, event boundary, aggregation rule, freshness, and whether the window is allowed to look before or after the prediction time.
Connect the feature to the target label without leaking future outcomes, maintenance notes, post-event states, or operator decisions.
Prove the same feature can be computed online or at the edge with the available latency, power, storage, privacy, and fallback behavior.
A feature set is useful when the chosen dimensions make the groups easier to distinguish together than they would be alone. Color by itself may overlap, weight by itself may overlap, but color plus weight may separate the examples well enough for a simple model. Even a simple image question such as whether a fruit is more red or orange needs a recipe: maximum channel value, mean channel value, channel ratio, and histogram shape can support different decisions. A weak feature is not "wrong" because it is ugly. It is weak when it is irrelevant, unstable, too expensive to compute, unavailable at inference time, or unable to separate the decision groups it is supposed to support.
Use physical quantities directly when the units and calibration are trustworthy: weight, temperature, pressure, vibration energy, battery voltage, or signal strength.
Represent objects as numbers only when the encoding preserves the useful difference. A color may become an RGB tuple; an image may become an ordered grid of pixel values.
Represent audio, motion, or other time-varying signals as fixed windows, sampled sequences, frequency features, or summary values such as mean, slope, variance, peaks, zero crossings, event counts, and energy.
Histograms, skewness, and kurtosis can preserve distribution shape, but bin choices and window boundaries matter: too few bins hide detail, while too many bins become sparse and sensitive to noise.
Real sensor preprocessing is application-dependent. Filtering, denoising, normalization, clipping, and windowing should be chosen because they preserve the decision signal, not because they are standard notebook steps. For a gesture classifier on a Particle-class device, the pipeline might collect IMU motion on the device, compute compact window features locally, train or configure the model from a phone workflow, display the predicted character on the phone, and keep raw logs for Python plots so the team can see whether four in-air gestures are actually separable.
A feature recipe is the contract between training and inference. It states exactly how a feature is computed, what assumptions it uses, how missing and out-of-range values are handled, and what evidence proves it still means the same thing when deployed.
Keep feature selection reviewable. Removing redundant features can make a model cheaper and easier to monitor, but the retained features should still explain the operational claim. If a selected feature is a proxy for user identity, protected status, site ID, maintenance shift, or a post-decision workflow, the review should check whether it is meaningful, fair, legal, and available at inference.
Common selection methods ask different questions. A variance threshold keeps features that actually spread out across examples, so a nearly constant column does not pretend to add evidence. Univariate tests score one feature at a time against the label and can reveal a single strong separator, but they can miss combinations that only work together. Principal component analysis (PCA) transforms the feature space toward directions with high variation and can reduce dimensionality, but the projected components still need scaling, provenance, and deployment-time reproducibility.
Feature engineering often fails because a model learns a shortcut that will not hold after deployment. The shortcut may be explicit leakage, such as a post-event field inside the feature table. It may also be a quiet proxy, such as a device ID that stands in for a site, a timestamp that stands in for maintenance schedule, or a missing-value pattern that stands in for a broken collection process.
A practical leakage test asks whether the value would exist, with the same precision and delay, at the moment the model must act. If the answer depends on a future repair ticket, a later human label, a batch backfill, or a post-alarm state, the feature contract is invalid for real-time inference.
The feature uses values, labels, repairs, alarms, or operator actions that happen after the prediction time.
The split lets the same device, user, room, asset, or site appear in both training and validation when deployment needs generalization.
The deployed code changes sampling, normalization, clipping, imputation, encoding, or missing-data labels compared with training.
The same feature name remains in the table after sensors, firmware, labels, usage, environment, or operating policy changes its meaning.
The strongest defense is a feature contract: a versioned recipe, an availability check at prediction time, a leakage audit, a held-out validation split that matches deployment, and monitors for input range, missingness, drift, and feature calculation failures. Feature stores can help when they preserve this contract, but they do not remove the need to review feature meaning.
Under the hood, feature selection should also be treated as a reliability decision. Dropping a feature can reduce cost, but it may remove the only signal that catches a rare failure mode. Adding a feature can improve a metric, but it may increase latency, power, privacy risk, or false confidence. The accepted feature set should state what it optimizes and what it no longer claims to detect.
Feature engineering is trustworthy when training and deployment share the same feature meaning: source, window, transform, label boundary, quality behavior, leakage controls, and retest triggers all stay reviewable.
Review the basic supervised-learning terms that feature recipes support.
Place features inside the full path from decision target to deployed model, monitoring, and retraining evidence.
Connect feature quality to schema checks, outlier handling, provenance, drift, and exception review.
Check whether feature computation fits edge latency, memory, power, update, telemetry, and fallback constraints.