1/75
Looks like no tags are added yet.
IoT Data Analytics, AI, and Intelligent Systems
Collecting and processing data from connected devices, analyzing it with computational techniques, and building systems that can make predictions or support automated decisions.
Stages of an IoT data application
1) Data collection from sensors 2) Data storage in files or databases 3) Data preprocessing 4) Data analysis using algorithms and statistics 5) Intelligent decision-making using AI models 6) Displaying results or sending commands to devices.
Volume, Velocity, Variety, Veracity, Variability.
Characteristics of IoT data (5 Vs)
Characteristics of IoT data
Properties that describe the amount, speed, format, quality, and behavior of data generated by connected devices.
Volume
The amount of data generated by IoT devices.
Velocity
The speed at which data is generated and received.
Variety
The different data formats, such as numerical readings, text, images, and audio.
Veracity
The accuracy and reliability of the data.
Variability
Changes in data values, frequency, or patterns over time.
Why IoT data characteristics matter
They influence program performance, database design, memory usage, and processing speed. Developers use them to choose algorithms, storage systems, and processing architectures.
Data cleaning and preprocessing
Procedures that identify data errors, handle missing values, remove unwanted information, and prepare datasets for analysis or machine learning.
Common problems in raw IoT data
Missing readings, duplicate records, sensor noise, inconsistent timestamps, and incorrect values.
Common data cleaning techniques
Remove duplicates, handle missing values (removal or imputation), detect invalid measurements, filter noisy readings, standardize timestamps and formats, split data into training, validation, and testing sets for ML.
Python libraries for cleaning data
Pandas and NumPy.
Data cleaning example (ESP32 temperature CSV)
The program finds the missing reading at 8:10 AM and flags 300°C at 8:20 AM for investigation because it is inconsistent with the other readings and may be a sensor error.
Data transformation
Converting data into a different representation, format, or numerical scale so algorithms can process it consistently.
Normalization
Rescaling numerical values to a specified range.
Standardization
Transforming values using their mean and standard deviation.
Aggregation
Combining multiple readings into summaries.
Encoding
Converting categorical data into numerical representations.
Feature extraction
Deriving useful variables from raw measurements. Especially useful when raw readings are too detailed or complex for a model to use directly.
IoT data visualization
Representing sensor data through charts, graphs, maps, and dashboards to make it easier to interpret.
Line chart
Displays changes in sensor readings over time (example: temperature over 24 hours).
Bar chart
Compares measurements from different devices (example: power usage of 3 devices).
Histogram
Shows the distribution of sensor values (example: frequency of readings).
Scatter plot
Shows the relationship between two variables (example: humidity and sensor reliability).
Heat map
Represents the intensity of measurements using colors (example: data intensity on a floor plan).
Interactive dashboard
Combines several visualizations in one interface (summaries and live feeds).
Python libraries for visualization
Matplotlib, Seaborn, and Plotly.
Descriptive analytics
Analyzing historical data using statistical calculations to summarize what has happened.
Techniques of descriptive analytics
Mean, median, mode, minimum and maximum, frequency counts, percentages and totals, variance and standard deviation, grouping and aggregation by time or device.
Languages used for descriptive analytics
Python, Java, or SQL.
Predictive analytics
Using historical data, statistical methods, and computational models to estimate future events or values.
Techniques of predictive analytics
Linear and logistic regression, time-series forecasting, decision trees, random forests, neural networks, and other machine learning algorithms.
What determines the quality of a prediction?
The quality of the data, the suitability of the model, and how well the model generalizes to new data.
Descriptive vs predictive analytics
Descriptive summarizes existing data (what happened). Predictive estimates what may happen next.
Machine learning (ML)
A branch of AI that lets computers learn patterns from data and use them to make predictions, classifications, or decisions.
Traditional programming vs machine learning
In traditional programming, developers define the rules. In ML, developers provide data and pick a learning algorithm so the model learns patterns from examples.
Three types of machine learning
Supervised, unsupervised, and reinforcement learning.
Supervised learning
Learns from labeled data. Example: classifying sensor readings as normal or faulty.
Unsupervised learning
Finds groups or structures in unlabeled data. Example: grouping devices with similar operating patterns.
Reinforcement learning
Learns actions through interaction with an environment and feedback in the form of rewards or penalties.
Typical machine learning workflow
Collect data, preprocess it, select features, train a model, evaluate its performance, deploy it.
Anomaly detection
Identifying observations or behaviors that differ significantly from expected patterns in a dataset.
Causes of unusual IoT readings
Equipment failures, sensor errors, unexpected environmental changes, or security incidents.
An anomaly is not automatically a fault
The system should consider context and, when necessary, verify the result.
Threshold-based detection
Flags readings outside predefined limits.
Statistical detection
Identifies values that are unusually far from the mean or expected distribution.
Clustering-based detection
Identifies observations that do not fit well into normal data groups.
Machine learning-based detection
Uses models such as Isolation Forest or suitable neural networks to find unusual patterns.
Pattern recognition
The computational process of identifying recurring structures, relationships, or meaningful features in data. Can use statistics, signal processing, rule-based algorithms, or ML.
Applications of pattern recognition
Recognizing human activities from motion sensors, identifying repeated electricity consumption patterns, classifying machine operating conditions, recognizing objects in camera images, identifying recurring environmental changes.
Pattern recognition vs anomaly detection
Pattern recognition identifies meaningful patterns or classifies observations. Anomaly detection specifically looks for unusual behavior.
Predictive maintenance
Using sensor data and analytical models to estimate equipment deterioration or possible failure so maintenance can be planned before a breakdown.
Data used in predictive maintenance
Vibration measurements, temperature readings, operating hours, pressure measurements, historical maintenance records, and ML models trained on equipment condition data.
What can predictive maintenance software do?
Classify equipment conditions, estimate failure risk, or predict the remaining useful life of a component (when there is enough training data).
Artificial Intelligence of Things (AIoT)
Integration of AI with IoT devices and systems to analyze connected-device data and support intelligent decisions or actions. IoT provides the data, AI provides the algorithms and models.
Parts of an AIoT application
1) Sensors that collect data 2) Communication protocols that transmit it 3) Software that processes and stores readings 4) AI models that analyze the data 5) Application logic that decides the response.
Where can an AI model in AIoT run?
On a local device, an edge computer, or a cloud server.
Edge AI
Running AI models on or near the devices that generate data, instead of depending entirely on remote cloud servers.
Advantages of Edge AI
Low latency, reduced network traffic, privacy (sensitive data can stay local), and offline operation (if the model and software are already available).
Limitations of edge devices
Limited memory, processing power, and battery capacity. Models may need optimization such as quantization or pruning.
Intelligent IoT system
A software and hardware system that collects sensor data, processes it using computational techniques, and uses the results to support decisions or trigger actions.
Five steps of how IoT analytics concepts work together
1) Data acquisition 2) Data processing (validate, clean, transform, store) 3) Analytics and machine learning 4) Decision-making (application logic) 5) Output or automated action (display result, send alert, or command a device).
Which concept: Select a data structure for incoming sensor streams
IoT data characteristics.
Which concept: Remove duplicates and handle missing sensor readings using Python
Data cleaning and preprocessing.
Which concept: Normalize sensor values before training a model
Data transformation.
Which concept: Develop a dashboard using Plotly
IoT data visualization.
Which concept: Calculate the average temperature using Python
Descriptive analytics.
Which concept: Forecast electricity demand using regression
Predictive analytics.
Which concept: Train a decision tree to classify machine conditions
Machine learning.
Which concept: Detect abnormal server temperatures
Anomaly detection.
Which concept: Classify occupancy patterns using motion data
Pattern recognition.
Which concept: Predict motor deterioration from vibration readings
Predictive maintenance.
Which concept: Integrate traffic sensors with a vehicle-detection model
AIoT.
Which concept: Detect people using an edge computer
Edge AI.