Activity Recognition in MATLAB Using KNN

Activity recognition is a crucial task in machine learning, widely used in healthcare, sports analytics, and human-computer interaction. This study explores the implementation of K-Nearest Neighbors (KNN), a simple yet effective machine learning algorithm, to classify different human activities based on sensor data. The classification is performed using features extracted from accelerometer and gyroscope readings, which capture motion patterns associated with various activities. MATLAB is utilized as the development platform due to its powerful built-in functions for data preprocessing, feature extraction, model training, and evaluation. The workflow includes data normalization, feature selection, and applying the KNN algorithm to recognize activities such as walking, running, sitting, and standing. Performance evaluation is conducted using accuracy metrics and confusion matrices to assess the effectiveness of the model. The results demonstrate that KNN provides reliable classification performance with minimal computational complexity, making it suitable for real-time applications. Furthermore, tuning KNN parameters such as the number of neighbors and distance metrics enhances classification accuracy.

Authors

Publication Details

Journal
Journal of Information Systems Engineering & Management
Published
2025-04-01
DOI
https://doi.org/10.52783/jisem.v10i31s.5150
Primary Topic
Context-Aware Activity Recognition Systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Activity Recognition in MATLAB Using KNN

Sneha B. Paymal
Journal of Information Systems Engineering & Management
Context-Aware Activity Recognition Systems
article

Activity Recognition in MATLAB Using KNN

Sneha B. Paymal
article en

Abstract

Activity recognition is a crucial task in machine learning, widely used in healthcare, sports analytics, and human-computer interaction. This study explores the implementation of K-Nearest Neighbors (KNN), a simple yet effective machine learning algorithm, to classify different human activities based on sensor data. The classification is performed using features extracted from accelerometer and gyroscope readings, which capture motion patterns associated with various activities. MATLAB is utilized as the development platform due to its powerful built-in functions for data preprocessing, feature extraction, model training, and evaluation. The workflow includes data normalization, feature selection, and applying the KNN algorithm to recognize activities such as walking, running, sitting, and standing. Performance evaluation is conducted using accuracy metrics and confusion matrices to assess the effectiveness of the model. The results demonstrate that KNN provides reliable classification performance with minimal computational complexity, making it suitable for real-time applications. Furthermore, tuning KNN parameters such as the number of neighbors and distance metrics enhances classification accuracy.

Journal of Information Systems Engineering & ManagementVol. 10(31s)
Openalex Percentile: Top 94%
Context-Aware Activity Recognition Systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Activity Recognition in MATLAB Using KNN — Sneha B. Paymal · Journal of Information Systems Engineering & Management (2025) | TGRS Research Map | TGRS