{"id":22706,"date":"2025-09-03T11:12:59","date_gmt":"2025-09-03T09:12:59","guid":{"rendered":"https:\/\/www.neuraldesigner.com\/?post_type=learning&#038;p=22706"},"modified":"2026-08-28T11:24:25","modified_gmt":"2026-08-28T09:24:25","slug":"human-activity-recognition-machine-learning","status":"publish","type":"learning","link":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/","title":{"rendered":"Human activity recognition using smartphones"},"content":{"rendered":"<style>.ndb{width:100vw;margin-left:calc(50% - 50vw);background:#eeeeee;padding:22px 24px 14px;font-family:\"Outfit\",\"Roboto\",Arial,sans-serif;color:#1b2635}.ndb *{box-sizing:border-box}.ndb a{text-decoration:none}.ndb-wrap{width:min(100%,1200px);margin:0 auto}.ndb-lead{font-size:18px;line-height:1.6;color:#3a4a5a;font-weight:300;margin:0 0 22px}.ndb-lead a{color:#2d799f;font-weight:600}.ndb-highlight{margin:0 0 36px;padding:28px 34px;border-radius:18px;background:linear-gradient(135deg,#56a1c8 0%,#245e80 100%);color:#fff;box-shadow:0 16px 34px rgba(30,83,116,.22)}.ndb-highlight p{margin:0;color:#fff;font-size:20px;line-height:1.5;font-weight:400}.ndb-highlight b{font-weight:800}.ndb-toc{list-style:none;display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 0 42px;padding:0}.ndb-toc a{padding:10px 18px;background:#f2f2f2;border-radius:22px;color:#12354b!important;font-size:14px;font-weight:600;box-shadow:-6px -6px 12px rgba(255,255,255,.9),6px 6px 12px rgba(30,83,116,.10)}.ndb-toc a:hover{color:#2d799f!important}.ndb-card{margin:0 0 54px;padding:0;background:transparent;border-radius:0;box-shadow:none;scroll-margin-top:90px}.ndb-card h2{margin:0 0 20px;padding-bottom:12px;color:#001233;font-size:24px;font-weight:700;position:relative;border-bottom:1px solid #dbe5ec}.ndb-card h2:after{content:\"\";position:absolute;left:0;bottom:-1px;width:62px;height:3px;background:#56a1c8;border-radius:2px}.ndb-card p{margin:0 0 14px;font-size:16.5px;line-height:1.62;color:#33424f}.ndb-card a{color:#2d799f;font-weight:500}.ndb-card ul{margin:0 0 14px;padding-left:22px}.ndb-card li{margin:5px 0;font-size:16px;line-height:1.5;color:#33424f}.ndb-card img:not([src$=\".svg\"]):not([data-src$=\".svg\"]){display:block;width:auto;max-width:min(560px,100%);height:auto;margin:22px auto;border-radius:12px;box-shadow:0 12px 28px rgba(0,18,51,.12)}.ndb-card th img[src$=\".svg\"],.ndb-card th img[data-src$=\".svg\"],.ndb-card img[src$=\".svg\"],.ndb-card img[data-src$=\".svg\"]{display:inline-block;max-width:24px;height:auto;margin:0 6px -4px 0;box-shadow:none}.ndb-card table{border-collapse:separate;border-spacing:0;width:100%;max-width:100%;margin:22px 0;font-size:15px;background:#fbfcfd;border-radius:12px;overflow:hidden;box-shadow:0 10px 24px rgba(0,18,51,.08)}.ndb-card th,.ndb-card td{padding:11px 16px;border-bottom:1px solid #e6ecf0;text-align:left;vertical-align:top}.ndb-card thead th{background:#12354b;color:#fff;font-weight:600;text-align:center}.ndb-card tbody th{background:#e9f1f6;color:#12354b;font-weight:600}.ndb-card td{color:#33424f}.ndb-card table ul{margin:0;padding-left:18px}.ndb-card table li{font-size:14px}.ndb-card pre{margin:22px 0;padding:22px 24px;background:#0b1830!important;color:#e6eef5!important;border-radius:14px;overflow-x:auto;font-family:Consolas,Menlo,monospace;font-size:12.5px;line-height:1.5;white-space:pre}@media(max-width:820px){.ndb-card{padding:0}.ndb-card h2{font-size:21px}.ndb-toc{gap:8px}}@media(max-width:640px){.ndb{padding:12px 14px}}.ndb-card thead th{background:#12354b!important;color:#fff!important}.ndb-card tbody th{background:#e9f1f6!important;color:#12354b!important}.ndb-card td{background:#fbfcfd!important;color:#33424f!important}.ndb-card .mjx-chtml.MJXc-display{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:2px 0 8px}.ndb-card .mjx-chtml.MathJax_CHTML{font-size:18px!important}.ndb-card pre{background:#eceff2!important;color:#1b2635!important;border:1px solid #dfe4e9!important}.ndb-card pre *{color:#1b2635!important;background:transparent!important}.ndb-eq{margin:22px 0;padding:20px 24px;background:#fbfcfd;border-radius:12px;box-shadow:0 10px 24px rgba(0,18,51,.08);text-align:center;overflow-x:auto;font-size:17px;color:#12354b}.ndb-video{position:relative;width:100%;max-width:720px;margin:20px auto;aspect-ratio:16\/9}.ndb-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:12px;box-shadow:0 12px 28px rgba(0,18,51,.14)}.ndb #download{display:inline-flex;align-items:center;gap:10px;padding:13px 28px;margin:10px 0 4px;background:linear-gradient(135deg,#56a1c8 0%,#245e80 100%);color:#fff!important;border-radius:26px;font-weight:600;font-size:16px;box-shadow:0 12px 26px rgba(30,83,116,.25);text-decoration:none}.ndb #download:hover{filter:brightness(1.06)}.ndb #download br{display:none}.ndb #download svg{width:20px;height:20px;fill:currentColor;flex:0 0 auto}.ndb #download::after{content:\"Download Neural Designer\"}.ndb a[href*=\"\/downloads\"]:has(svg){display:inline-flex;align-items:center;gap:10px;padding:13px 28px;margin:10px 0 4px;background:linear-gradient(135deg,#56a1c8 0%,#245e80 100%);color:#fff!important;border-radius:26px;font-weight:600;font-size:16px;box-shadow:0 12px 26px rgba(30,83,116,.25);text-decoration:none;line-height:1}.ndb a[href*=\"\/downloads\"]:has(svg):hover{filter:brightness(1.06)}.ndb a[href*=\"\/downloads\"]:has(svg) br{display:none}.ndb a[href*=\"\/downloads\"]:has(svg) svg{width:20px;height:20px;fill:currentColor;flex:0 0 auto}.ndb a[href*=\"\/downloads\"]:has(svg)::after{content:\"Download Neural Designer\"}.ndb-confusion-wrap{width:100%;overflow-x:auto;margin:22px 0}.ndb-confusion{min-width:860px;margin:0!important;font-size:13.5px!important}.ndb-confusion th,.ndb-confusion td{padding:9px 10px!important;text-align:right!important;white-space:nowrap}.ndb-confusion th:first-child,.ndb-confusion td:first-child{text-align:left!important}.ndb-confusion td.ndb-hit{font-weight:700;color:#12354b!important;background:#e9f1f6!important}.ndb-confusion tfoot td{font-weight:700;background:#e9f1f6!important}.ndb-card table:not(.ndb-confusion){width:auto!important;max-width:100%;margin-left:auto;margin-right:auto;table-layout:auto}.ndb-card table:not(.ndb-confusion) th:last-child,.ndb-card table:not(.ndb-confusion) td:last-child{max-width:65ch;white-space:normal}<\/style><div class=\"ndb\"><div class=\"ndb-wrap\"><div class=\"ndb-lead\"><p>This example uses machine learning to recognize human activities from smartphone sensor data.<\/p>\n<p>Human activity recognition classifies a person&#8217;s movement from accelerometer and gyroscope measurements. In this example, the model distinguishes six daily activities: laying, sitting, standing, walking, walking downstairs, and walking upstairs.<\/p>\n<p>The original UCI data set contains 561 engineered sensor features. We use the complete data set and let Neural Designer select a compact subset of relevant inputs before training the classifier.<\/p>\n<p>We have built this model using the data science and machine learning platform <a href=\"https:\/\/www.neuraldesigner.com\/\">Neural Designer<\/a>. Download <a href=\"https:\/\/www.neuraldesigner.com\/downloads\/\">Neural Designer<\/a> to explore the workflow.<\/p>\n<\/div><ul class=\"ndb-toc\"><li><a href=\"#1-application-type\">Application type<\/a><\/li><li><a href=\"#2-data-set\">Data set<\/a><\/li><li><a href=\"#3-input-selection\">Input selection<\/a><\/li><li><a href=\"#4-neural-network\">Neural network<\/a><\/li><li><a href=\"#5-training-strategy\">Training strategy<\/a><\/li><li><a href=\"#6-testing-analysis\">Testing analysis<\/a><\/li><li><a href=\"#7-model-deployment\">Model deployment<\/a><\/li><li><a href=\"#references\">References<\/a><\/li><\/ul>\n<div class=\"ndb-card\" id=\"1-application-type\"><h2>1. Application type<\/h2><p>This is a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-networks-applications\/#Classification\">classification<\/a> project: the model maps smartphone movement features to the activity performed by the user.<\/p>\n<p>The target variable is <strong>activity<\/strong>. It has six possible classes, so the neural network outputs the probability of each activity and assigns the sample to the most probable one.<\/p><\/div>\n<div class=\"ndb-card\" id=\"2-data-set\"><h2>2. Data set<\/h2><p>The first step is to prepare the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/\">data set<\/a>, which is the source of information for the classification problem. It is composed of:<\/p>\n<ul><li>Data source.<\/li><li>Variables.<\/li><li>Instances.<\/li><\/ul>\n<h3>Data source<\/h3><p>The file <a href=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2026\/07\/UCI_HAR.csv\">UCI_HAR.csv<\/a> contains the data for this example.<\/p>\n<p>The original data set was recorded with a smartphone worn on the waist by 30 volunteers. The phone measured acceleration and angular velocity while each person performed daily activities.<\/p>\n<p>The raw signals were divided into fixed-width time windows and transformed into time- and frequency-domain features. The resulting file contains 10,299 samples, 561 input variables, and one categorical target.<\/p>\n<h3>Variables<\/h3><p>This problem has the following <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/#Variables\">variable groups<\/a>:<\/p>\n<table><thead><tr><th>Variable group<\/th><th>Role<\/th><th>Description<\/th><\/tr><\/thead><tbody>\n<tr><td>time-domain signals<\/td><td>Input<\/td><td>Statistics calculated from body acceleration, gravity acceleration, gyroscope, jerk, and magnitude signals over each time window.<\/td><\/tr>\n<tr><td>frequency-domain signals<\/td><td>Input<\/td><td>Frequency features obtained with a Fast Fourier Transform, including energy and frequency-band measurements.<\/td><\/tr>\n<tr><td>angle signals<\/td><td>Input<\/td><td>Angles between averaged body or jerk vectors and the gravity direction.<\/td><\/tr>\n<tr><td>activity<\/td><td>Target<\/td><td>Observed activity: laying, sitting, standing, walking, walking downstairs, or walking upstairs.<\/td><\/tr>\n<\/tbody><\/table>\n<p>The input values are normalized, as provided by the UCI data set. Metadata columns such as subject and original partition have been removed, so Neural Designer reads only the 561 candidate inputs and the target.<\/p>\n<h3>Instances<\/h3><p>They are divided randomly into <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/#TrainingInstances\">training<\/a>, <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/#SelectionInstances\">selection<\/a>, and <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/#TestingInstances\">testing<\/a> subsets, containing 60%, 20%, and 20% of the instances, respectively. More specifically, 6,181 samples are used here for training, 2,059 for validation, and 2,059 for testing.<\/p>\n<h3>Variables distribution<\/h3><p>Once we establish the data set information, we perform analytics to check the data quality.<\/p><p>The next figure depicts the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/#Distributions\">distribution<\/a> of the target classes.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2026\/07\/activity-distribution-pie-chart-1.png\" alt=\"Activity label distribution\" width=\"665\" height=\"380\" \/><\/p><p>The six activities are represented with similar frequencies. Laying is the most frequent class with 1,944 samples, while walking downstairs is the least frequent with 1,406 samples.<\/p>\n<h3>Inputs-targets correlations<\/h3><p>The next figure depicts the ten greatest <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/data-set\/#InputsTargetsCorrelations\">inputs-targets correlations<\/a> calculated by Neural Designer from the complete data set.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2026\/07\/activity-Pearson-correlations-chart-1.png\" alt=\"Activity Pearson correlations chart\" width=\"764\" height=\"682\" \/><\/p><p>Acceleration statistics and frequency-domain energy measurements show the strongest individual relationships with activity. However, the target depends on several sensor features simultaneously, so correlation alone does not determine the best subset.<\/p><\/div>\n<div class=\"ndb-card\" id=\"3-input-selection\"><h2>3. Input selection<\/h2><p>Working with all 561 inputs would make the model unnecessarily complex because many sensor features carry overlapping information. <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-selection\/\">Input selection<\/a> searches for a smaller subset that preserves predictive performance.<\/p>\n<p>We use the <strong>growing inputs<\/strong> algorithm. It starts from a small set and progressively adds the variables that most improve the selection error. The model is retrained for each candidate subset, so the decision is based on its ability to generalize rather than on correlation alone.<\/p>\n<p>For this example, the search uses three trials, warm starts, and a maximum of 50 inputs. The minimum selection error is obtained with the 50-input subset:<\/p>\n<table><thead><tr><th>Growing inputs result<\/th><th>Value<\/th><\/tr><\/thead><tbody>\n<tr><td>Selected inputs<\/td><td>50 of 561<\/td><\/tr>\n<tr><td>Training error<\/td><td>0.1047 cross entropy<\/td><\/tr>\n<tr><td>Selection error<\/td><td>0.1171 cross entropy<\/td><\/tr>\n<tr><td>Trials per subset<\/td><td>3<\/td><\/tr>\n<tr><td>Stopping criterion<\/td><td>Maximum inputs reached<\/td><\/tr>\n<tr><td>Elapsed time<\/td><td>3 minutes 41 seconds<\/td><\/tr>\n<\/tbody><\/table>\n<p>The procedure reduces the number of model inputs by about 91%. Since the stopping criterion is the configured 50-input limit, this result should be interpreted as the best subset found within that search range.<\/p><\/div>\n<div class=\"ndb-card\" id=\"4-neural-network\"><h2>4. Neural network<\/h2><p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/neural-network\/\">neural network<\/a> outputs the activity class as a function of the selected smartphone sensor features.<\/p>\n<p>The final classification model contains:<\/p><ul><li>A scaling layer for the 50 selected inputs.<\/li><li>A classification layer with six softmax neurons, one for each activity.<\/li><\/ul>\n<p>The softmax layer returns six probabilities whose sum is one. The activity with the greatest probability is taken as the model prediction.<\/p><\/div>\n<div class=\"ndb-card\" id=\"5-training-strategy\"><h2>5. Training strategy<\/h2><p>The next step is selecting an appropriate <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\/\">training strategy<\/a> to define what the neural network will learn. A general training strategy is composed of two concepts:<\/p>\n<ul><li>A loss index.<\/li><li>An optimization algorithm.<\/li><\/ul>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\/#LossIndex\">loss index<\/a> chosen is the <strong>cross entropy<\/strong>, which is the standard loss for classification problems.<\/p>\n<p>The <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\/#OptimizationAlgorithm\">optimization algorithm<\/a> chosen is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/training-strategy\/#QuasiNewtonMethod\">quasi-Newton method<\/a>.<\/p>\n<p>Once the strategy has been set, we can train the neural network. The following chart shows how the training and selection errors decrease during the training process.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2026\/07\/Quasi-Newton-method-error-history-2.png\" alt=\"Quasi-Newton method error history\" width=\"780\" height=\"520\" \/><\/p>\n<p>The final training error is <b>0.109 cross entropy<\/b>, and the final selection error is <b>0.124 cross entropy<\/b>. Training stopped after 248 epochs because the minimum loss decrease criterion was reached.<\/p><\/div>\n<div class=\"ndb-card\" id=\"6-testing-analysis\"><h2>6. Testing analysis<\/h2><p>The objective of the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis\/\">testing analysis<\/a> is to validate the generalization performance of the trained neural network. The testing compares the predicted activities to the observed activities using an independent testing set.<\/p>\n<p>For classification problems, a standard testing technique is the <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/testing-analysis\/#ConfusionMatrix\">confusion matrix<\/a>. Rows represent the real activity, and columns represent the predicted activity.<\/p>\n<div class=\"ndb-confusion-wrap\"><table class=\"ndb-confusion\"><thead><tr><th>Real \/ predicted<\/th><th>laying<\/th><th>sitting<\/th><th>standing<\/th><th>walking<\/th><th>walking downstairs<\/th><th>walking upstairs<\/th><th>Total<\/th><\/tr><\/thead><tbody>\n<tr><td>laying<\/td><td class=\"ndb-hit\">375<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>375<\/td><\/tr>\n<tr><td>sitting<\/td><td>0<\/td><td class=\"ndb-hit\">345<\/td><td>53<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>398<\/td><\/tr>\n<tr><td>standing<\/td><td>0<\/td><td>39<\/td><td class=\"ndb-hit\">325<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>364<\/td><\/tr>\n<tr><td>walking<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td class=\"ndb-hit\">323<\/td><td>0<\/td><td>6<\/td><td>329<\/td><\/tr>\n<tr><td>walking downstairs<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td class=\"ndb-hit\">283<\/td><td>11<\/td><td>294<\/td><\/tr>\n<tr><td>walking upstairs<\/td><td>0<\/td><td>0<\/td><td>0<\/td><td>7<\/td><td>3<\/td><td class=\"ndb-hit\">289<\/td><td>299<\/td><\/tr>\n<\/tbody><tfoot><tr><td>Total<\/td><td>375<\/td><td>384<\/td><td>378<\/td><td>330<\/td><td>286<\/td><td>306<\/td><td>2059<\/td><\/tr><\/tfoot><\/table><\/div>\n<p>The model correctly classifies 1,940 of 2,059 testing samples, which is an accuracy of <b>94.2%<\/b>. Most errors occur between sitting and standing, two static activities with very similar movement patterns.<\/p><\/div>\n<div class=\"ndb-card\" id=\"7-model-deployment\"><h2>7. Model deployment<\/h2><p>We can plot a <a href=\"https:\/\/www.neuraldesigner.com\/learning\/tutorials\/model-deployment\/#DirectionalOutputs\">directional output<\/a> of the neural network to see how the output probabilities vary with a given input while all other inputs remain fixed.<\/p>\n<p>The next plots show how the laying and sitting probabilities change with <strong>tGravityAcc-mean()-X<\/strong>, one of the inputs retained by the growing inputs algorithm.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2026\/07\/LAYING-tGravityAcc-mean-X-directional-output.png\" alt=\"Laying directional output for tGravityAcc-mean()-X\" width=\"590\" height=\"390\" \/> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2026\/07\/SITTING-tGravityAcc-mean-X-directional-output.png\" alt=\"Sitting directional output for tGravityAcc-mean()-X\" width=\"590\" height=\"390\" \/><\/p>\n<p>The exported model can then be used to classify new smartphone windows after calculating the same sensor features selected during model development.<\/p><\/div>\n<div class=\"ndb-card\" id=\"references\"><h2>References<\/h2><ul>\n<li>UCI Machine Learning Repository. <a href=\"https:\/\/archive.ics.uci.edu\/dataset\/240\/human+activity+recognition+using+smartphones\">Human Activity Recognition Using Smartphones Data Set<\/a>.<\/li>\n<li>Anguita, D., Ghio, A., Oneto, L., Parra, X., and Reyes-Ortiz, J. L. A Public Domain Dataset for Human Activity Recognition Using Smartphones. ESANN 2013.<\/li>\n<\/ul><\/div><\/div><\/div>","protected":false},"author":152,"featured_media":2709,"template":"","categories":[29],"tags":[38],"class_list":["post-22706","learning","type-learning","status-publish","has-post-thumbnail","hentry","category-examples","tag-healthcare"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Human activity recognition using smartphones - Neural Designer<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Human activity recognition using smartphones - Neural Designer\" \/>\n<meta property=\"og:description\" content=\"This example uses machine learning to recognize human activities from smartphone sensor data. Human activity recognition classifies a person&#8217;s movement from accelerometer and gyroscope measurements. In this example, the model distinguishes six daily activities: laying, sitting, standing, walking, walking downstairs, and walking upstairs. The original UCI data set contains 561 engineered sensor features. We use [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/\" \/>\n<meta property=\"og:site_name\" content=\"Neural Designer\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-28T09:24:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@NeuralDesigner\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/\",\"name\":\"Human activity recognition using smartphones - Neural Designer\",\"isPartOf\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp\",\"datePublished\":\"2025-09-03T09:12:59+00:00\",\"dateModified\":\"2026-08-28T09:24:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#primaryimage\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp\",\"width\":1200,\"height\":628,\"caption\":\"Smartphone showing a fitness activity tracker\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.neuraldesigner.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learning\",\"item\":\"https:\/\/www.neuraldesigner.com\/learning\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Human activity recognition using smartphones\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#website\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"name\":\"Neural Designer\",\"description\":\"Explainable AI Platform\",\"publisher\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.neuraldesigner.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#organization\",\"name\":\"Neural Designer\",\"url\":\"https:\/\/www.neuraldesigner.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"contentUrl\":\"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png\",\"width\":1024,\"height\":223,\"caption\":\"Neural Designer\"},\"image\":{\"@id\":\"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/NeuralDesigner\",\"https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Human activity recognition using smartphones - Neural Designer","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/","og_locale":"en_US","og_type":"article","og_title":"Human activity recognition using smartphones - Neural Designer","og_description":"This example uses machine learning to recognize human activities from smartphone sensor data. Human activity recognition classifies a person&#8217;s movement from accelerometer and gyroscope measurements. In this example, the model distinguishes six daily activities: laying, sitting, standing, walking, walking downstairs, and walking upstairs. The original UCI data set contains 561 engineered sensor features. We use [&hellip;]","og_url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/","og_site_name":"Neural Designer","article_modified_time":"2026-08-28T09:24:25+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@NeuralDesigner","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/","url":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/","name":"Human activity recognition using smartphones - Neural Designer","isPartOf":{"@id":"https:\/\/www.neuraldesigner.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#primaryimage"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#primaryimage"},"thumbnailUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp","datePublished":"2025-09-03T09:12:59+00:00","dateModified":"2026-08-28T09:24:25+00:00","breadcrumb":{"@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#primaryimage","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/06\/activity.webp","width":1200,"height":628,"caption":"Smartphone showing a fitness activity tracker"},{"@type":"BreadcrumbList","@id":"https:\/\/www.neuraldesigner.com\/learning\/examples\/human-activity-recognition-machine-learning\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.neuraldesigner.com\/"},{"@type":"ListItem","position":2,"name":"Learning","item":"https:\/\/www.neuraldesigner.com\/learning\/"},{"@type":"ListItem","position":3,"name":"Human activity recognition using smartphones"}]},{"@type":"WebSite","@id":"https:\/\/www.neuraldesigner.com\/#website","url":"https:\/\/www.neuraldesigner.com\/","name":"Neural Designer","description":"Explainable AI Platform","publisher":{"@id":"https:\/\/www.neuraldesigner.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.neuraldesigner.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.neuraldesigner.com\/#organization","name":"Neural Designer","url":"https:\/\/www.neuraldesigner.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","contentUrl":"https:\/\/www.neuraldesigner.com\/wp-content\/uploads\/2023\/05\/logo-neural-1.png","width":1024,"height":223,"caption":"Neural Designer"},"image":{"@id":"https:\/\/www.neuraldesigner.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/NeuralDesigner","https:\/\/es.linkedin.com\/showcase\/neuraldesigner\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/22706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning"}],"about":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/types\/learning"}],"author":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/users\/152"}],"version-history":[{"count":12,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/22706\/revisions"}],"predecessor-version":[{"id":23821,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/learning\/22706\/revisions\/23821"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media\/2709"}],"wp:attachment":[{"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/media?parent=22706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/categories?post=22706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.neuraldesigner.com\/api\/wp\/v2\/tags?post=22706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}