Human activity recognition (HAR) using machine learning

Device sensors provide insights into what persons are doing in real-time (walking, running, driving, etc.).

Knowing the activity of users allows, for instance, to interact with them through an app.

Machine learning can be used to detect activities by reading and processing sensor data automatically.

Contents:

  1. Objectives.
  2. Benefits.
  3. Approach.
  4. Conclusions.

Objectives

Human activity recognition (HAR) aims to classify a person's actions from a series of measurements captured by sensors.

Nowadays, collecting this type of data is not a complex task. However, with the growth of the Internet of Things, almost everyone has some gadget that monitors their movements. It can be a smartwatch, a pulsometer, or even a smartphone.

Usually, this is performed by following a fixed-length sliding window approach for the features extraction where two parameters have to be fixed: the size of the window and the shift.

These are some of the data you could use:

The machine learning model used for activity recognition is built on top of the devices' available sensors.

However, analyzing this data can be a big challenge due to the complexity of human activities and the existing differences between individuals.

Benefits

Activity recognition is the basis for the development of many potential applications in health, wellness, or sports:

MONITOR HEALTH

Analyze the activity of a person from the information collected by different devices.

DISCOVER ACTIVITY PATTERNS

Discover which are the variables that determine which activity is doing a person.

DETECT ACTIVITY

Calculate a predictive model that can recognize a person's activity from the signals received by the sensors.

IMPROVE WELLBEING

Design individualized exercise tables to improve the health of a person.

Approach

Neural networks, due to their ability to generalize the knowledge that an individual provides and learning about particularities, are the perfect tools to determine a person's physical activity.

The following graph illustrates a neural network that classifies among different activities using smartphone data.

Activity recognition neural network by Neural Designer

Conclusions

Human activity recognition has a wide range of uses because of its impact on wellbeing.

Nowadays, it is becoming a fundamental tool in preventing obesity or the care of elderly persons.

Related solutions:

Related examples:

Data sets:

Further reading: