Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.
Neural networks are not limited to working with one type of data at a time. One of their biggest advantages is that they are incredibly flexible with the type of input data, so long as the format and ordering of that data stays the same from training to inference. As a result, we can use them to perform sensor fusion for a variety of tasks.Sensor fusion is the process of combining data from different types of sensors or similar sensors mounted in different locations, which gives us more information to make decisions and classifications. For example, you could use temperature data with accelerometer data to get a better idea of a potential anomaly!In this tutorial, you will learn how to use Edge Impulse to perform sensor fusion on the Arduino Nano 33 BLE Sense.
Skip straight to the project
Skip the setup: clone a ready-to-use Edge Impulse project with the dataset, impulse, and trained model.
Multi-impulse vs multi-model vs sensor fusionRunning multi-impulse refers to running two separate projects (different data, different DSP blocks and different models) on the same target. It will require modifying some files in the EI-generated SDKs. See the multi-impulse tutorialRunning multi-model refers to running two different models (same data, same DSP block but different tflite models) on the same target. See how to run a motion classifier model and an anomaly detection model on the same device in this tutorial.Sensor fusion refers to the process of combining data from different types of sensors to give more information to the neural network. To extract meaningful information from this data, you can use the same DSP block (like in this tutorial), multiples DSP blocks, or use neural networks embeddings like this sensor fusion using Embeddings tutorial.
For this demo, we’ll show you how to identify different environments by using a fusion of temperature, humidity, pressure, and light data. In particular, I’ll have the Arduino board identify different rooms in my house as well as outside. Note that the we assume that the environment is static—if I turn out lights or the outside temperature changes, the model will not work. However, it demonstrates how we can combine different sensor data with machine learning to do classification!As we will be collecting data from our Arduino board connected to a computer, it helps to have a laptop that you can move to different rooms.Create a new project on the Edge Impulse studio.Connect the Arduino Nano 33 BLE to your computer. Follow the Arduino Nano 33 BLE Sense tutorial to upload the Edge Impulse firmware to the board and connect it to your project.
Arduino board connected to Edge Impulse project
Go to Data acquisition. Under Record new data, select your device and set the label to bedroom. Change Sensor to Environmental + Interactional, set the Sample length to 10000 ms and Frequency to 12.5Hz.
Record data from multiple sensors
Stand in one of your rooms with your Arduino board (and laptop). Click Start sampling and slowly move the board around while data is collected. After sampling is complete, you should see a new data plot with a different line for each sensor.
Raw sensor readings
VariationsTry to stand in different parts of each room while collecting data.
Repeat this process to record about 3 minutes of data for the bedroom class. Try to stand in a different spot in the room while collecting data—we want a robust dataset that represents the features of each room. Head to another room and repeat data collection. Continue doing this until you have around 3 minutes of data for each of the following classes:
Bedroom
Hallway
Outside
You are welcome to try other rooms or locations. For this demo, I found that my bedroom, kitchen, and living room all exhibited similar environmental and lighting properties, so the model struggled to tell them apart.Head to Dashboard and scroll down to Danger zone. Click Perform train/test split and follow the instructions in the pop-up window to split your dataset into training and testing groups. When you’re done, you can head back to Data acquisition to see that your dataset has been split. You should see about 80% of your samples in Training data and about 20% in Test data.
An impulse is a combination of preprocessing (DSP) blocks followed by machine learning blocks. It will slice up our data into smaller windows, use signal processing to extract features, and then train a machine learning model. Because we are using environmental and light data, which are slow-moving averages, we will use the Flatten block for preprocessing.Head to Create impulse. Change the Window increase to 500 ms. Add a Flatten block. Notice that you can choose which environmental and interactional sensor data to include. Deselect proximity and gesture, as we won’t need those to detect rooms. Add a Classification (Keras) learning block
Head to Flatten. You can select different samples and move the window around to see what the DSP result will look like for each set of features to be sent to the learning block.
View processed features from one sample
The Flatten block will compute the average, minimum, maximum, root-mean square, standard deviation, skewness, and kurtosis of each axis (e.g. temperature, humidity, brightness, etc.). With 7 axes and 7 features computed for each axis, that gives us 49 features for each window being sent to the learning block. You can see these computed features under Processed features.Click Save parameters. On the next screen, select Calculate feature importance and click Generate features.After a few moments, you should be able to explore the features of your dataset to see if your classes are easily separated into categories.
View groupings of the most prominent features
You can also look at the Feature importance section to get an idea of which features are the most important in determining class membership. You can read more about feature importance here.
View the most important features
Interestingly enough, it looks like temperature and red light values were the most important features in determining the location of the Arduino board.
With our dataset collected and features processed, we can train our machine learning model. Click on NN Classifier. Change the Number of training cycles to 300 and click Start training. We will leave the neural network architecture as the default for this demo.
Neural network architecture
During training, parameters in the neural network’s neurons are gradually updated so that the model will try to guess the class of each set of data as accurately as possible. When training is complete, you should see a Model panel appear on the right side of the page.
Confusion matrix of the validation set
The Confusion matrix gives you an idea of how well the model performed at classifying the different sets of data. The top row gives the predicted label and the column on the left side gives the actual (ground-truth) label. Ideally, the model should predict the classes correctly, but that’s not always the case. You want the diagonal cells from the top-left to the bottom-right to be as close to 100% as possible.If you see a lot of confusion between classes, it means you need to gather more data, try different features, use a different model architecture, or train for a longer period of time (more epochs). See this guide to learn about ways to increase model performance.The On-device performance provides some statistics about how the model will likely run on a particular device. By default, an Arm Cortex-M4F running at 80 MHz is assumed to be your target device. The actual memory requirements and run time may vary on different platforms.
Rather than simply assume that our model will work when deployed, we can run inference on our test dataset as well as on live data.First, head to Model testing, and click Classify all. After a few moments, you should see results from your test set.
Results from running inference on the test set
You can click on the three dots next to an item and select Show classification. This will give you a classification result screen where you can see results information in more detail.
View detailed classification results from a test sample
Additionally, we can test the impulse in a real-world environment to make sure the model has not overfit the training data. To do that, head to Live classification. Make sure your device is connected to the Studio and that the Sensor, Sample length, and Frequency match what we used to initially capture data.
Classify live data
Click Start sampling. A new sample will be captured from your board, uploaded, and classified. Once complete, you should see the classification results.
Live classification results
In the example above, we sampled 10 seconds of data from the Arduino. This data is split into 1-second windows (the window moves over 0.5 seconds each time), and the data in that window is sent to the DSP block. The DSP block computes the 49 features that are then sent to the trained machine learning model, which performs a forward pass to give us our inference results.As you can see, the inference results from all of the windows claimed that the Arduino board was in the bedroom, which was true! This is great news for our model—it seems to work even on unseen data.
Now that we have an impulse with a trained model and we’ve tested its functionality, we can deploy the model back to our device. This means the impulse can run locally without an internet connection to perform inference!Edge Impulse can package up the entire impulse (preprocessing block, neural network, and classification code) into a single library that you can include in your embedded software.Click on Deployment in the menu. Select the library that you would like to create, and click Build at the bottom of the page.
Deploy a trained machine learning model to any number of devices
Running your impulse locallySee the Deployments tutorials to learn how to deploy your impulse to a variety of platforms.
Well done! You’ve trained a neural network to determine the location of a development board based on a fusion of several sensors working in tandem. Note that this demo is fairly limited—as the daylight or temperature changes, the model will no longer be valid. However, it hopefully gives you some ideas about how you can mix and match sensors to achieve your machine learning goals.If you’re interested in more, see our tutorials on Sound recognition or Image classification. If you have a great idea for a different project, that’s fine too. Edge Impulse lets you capture data from any sensor, build custom processing blocks to extract features, and you have full flexibility in your Machine Learning pipeline with the learning blocks.We can’t wait to see what you’ll build! 🚀
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Edge Impulse Documentation","description":"Where you can find all the Edge Impulse documentation, and more!","colors":{"primary":"#5f76db","light":"#5f76db","dark":"#182896"},"logo":{"light":"https://mintcdn.com/edgeimpulse/-Yjt9HB8VCOXQC8H/.assets/logos/ei-logo-light.svg?fit=max\u0026auto=format\u0026n=-Yjt9HB8VCOXQC8H\u0026q=85\u0026s=a26ac03680700105c38fa0507df4fee2","dark":"https://mintcdn.com/edgeimpulse/K7zNEaqi2bZnNjVz/.assets/logos/ei-logo-dark.svg?fit=max\u0026auto=format\u0026n=K7zNEaqi2bZnNjVz\u0026q=85\u0026s=6c5887f8e79896f1ca3c3a63d5477761"},"favicon":"https://mintcdn.com/edgeimpulse/HzwDHenmvHu0xumg/.assets/favicon.svg?fit=max\u0026auto=format\u0026n=HzwDHenmvHu0xumg\u0026q=85\u0026s=5d3672f264e068f096f0ccfeff030489","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://edgeimpulse.com/","label":"Website"},{"href":"https://studio.edgeimpulse.com","label":"Login"}],"primary":{"type":"button","label":"Sign up","href":"https://edgeimpulse.com/signup"}},"footer":{"socials":{"linkedin":"https://linkedin.com/company/edgeimpulse","youtube":"https://www.youtube.com/@EdgeImpulse","x":"https://x.com/edgeimpulse"},"links":[{"header":"Policies","items":[{"label":"Responsible AI","href":"https://www.qualcomm.com/site/responsible-ai-license"},{"label":"Privacy","href":"https://www.edgeimpulse.com/legal/privacy-policy"},{"label":"Cookies","href":"https://www.qualcomm.com/site/privacy/cookies"}]},{"header":"Legal","items":[{"label":"Terms of Use","href":"https://www.qualcomm.com/site/terms-of-use"},{"label":"Accessibility","href":"https://www.qualcomm.com/accessibility"}]}]},"seo":{"metatags":{"canonical":"https://docs.edgeimpulse.com"}},"icons":{"library":"fontawesome"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":true},"contextual":{"options":["copy","view","assistant"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Forum","icon":"discourse","href":"https://forum.edgeimpulse.com"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/edgeimpulse"},{"anchor":"GitHub","icon":"github","href":"https://github.com/edgeimpulse"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"edgeimpulse","hasAudioNarration":false,"actualSubdomain":"edgeimpulse","customDomains":["docs.edgeimpulse.com"],"gitSource":{"type":"github","owner":"edgeimpulse","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae2931d32d9b4ba8a7f5edf","collectionId":"0a3eb521-9a93-4591-9452-c58dcc143c16","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae2931d32d9b4ba8a7f5edf"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae2931d32d9b4ba8a7f5edf","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Tools","count":1305},{"language":"default","tag":"LIBRARIES","count":1279},{"language":"default","tag":"Studio Python API bindings","count":1245},{"language":"default","tag":"edgeimpulse-api","count":1244},{"language":"default","tag":"models","count":1211},{"language":"default","tag":"APIs","count":563},{"language":"default","tag":"STUDIO API ENDPOINTS","count":555},{"language":"default","tag":"Projects","count":272},{"language":"default","tag":"EXPERT NETWORK","count":211},{"language":"default","tag":"Hardware","count":123}]},"assistantConfig":{"enableStarterQuestions":true,"enableContextualStarterQuestions":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":".styles/styles.css","content":".cookie-settings-button{color:rgb(var(--gray-800))!important;background-color:rgb(var(--gray-950)/.03)!important;border-radius:var(--rounded-xl, .75rem);font-size:.875rem!important;line-height:1.25rem!important;width:fit-content!important;align-self:flex-end!important;margin-left:auto!important}.cookie-settings-button:hover{background-color:rgb(var(--gray-950)/.1)!important}"}],"page":{"pagePath":"tutorials/end-to-end/environmental-sensor-fusion","slug":"/tutorials/end-to-end/environmental-sensor-fusion","pageMetadata":{"title":"Environmental sensor fusion","description":"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.","href":"/tutorials/end-to-end/environmental-sensor-fusion"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const CardOpenStudioTutorial=({href})=>{const{Card}=_provideComponents()||{};if(!Card)_missingMdxReference(`Card`,true);return _jsx(Card,{title:`Skip straight to the project`,icon:`forward`,href,children:`Skip the setup: clone a ready-to-use Edge Impulse project with the dataset, impulse, and trained model.`})};function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Info,OptimizedImage,_MdxComponentBoundary}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Neural networks are not limited to working with one type of data at a time. One of their biggest advantages is that they are incredibly flexible with the type of input data, so long as the format and ordering of that data stays the same from training to inference. As a result, we can use them to perform `,_jsx(_components.em,{children:`sensor fusion`}),` for a variety of tasks.`]}),`\n`,_jsx(_components.p,{children:`Sensor fusion is the process of combining data from different types of sensors or similar sensors mounted in different locations, which gives us more information to make decisions and classifications. For example, you could use temperature data with accelerometer data to get a better idea of a potential anomaly!`}),`\n`,_jsx(_components.p,{children:`In this tutorial, you will learn how to use Edge Impulse to perform sensor fusion on the Arduino Nano 33 BLE Sense.`}),`\n`,_jsx(_MdxComponentBoundary,{name:`CardOpenStudioTutorial`,children:_jsx(CardOpenStudioTutorial,{href:`https://studio.edgeimpulse.com/public/79333/latest`})}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Multi-impulse vs multi-model vs sensor fusion`})}),_jsxs(_components.p,{children:[`Running `,_jsx(_components.strong,{children:`multi-impulse`}),` refers to running two separate projects (different data, different DSP blocks and different models) on the same target. It will require modifying some files in the EI-generated SDKs. See the `,_jsx(_components.a,{href:`/tutorials/topics/inference/run-multiple-impulses-cpp`,children:`multi-impulse tutorial`})]}),_jsxs(_components.p,{children:[`Running `,_jsx(_components.strong,{children:`multi-model`}),` refers to running two different models (same data, same DSP block but different tflite models) on the same target. See how to run a motion classifier model and an anomaly detection model on the same device in `,_jsx(_components.a,{href:`/tutorials/end-to-end/motion-recognition`,children:`this tutorial`}),`.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sensor fusion`}),` refers to the process of combining data from different types of sensors to give more information to the neural network. To extract meaningful information from this data, you can use the same DSP block (like in this tutorial), multiples DSP blocks, or use neural networks embeddings like this `,_jsx(_components.a,{href:`/tutorials/topics/feature-extraction/use-embeddings-sensor-fusion`,children:`sensor fusion using Embeddings`}),` tutorial.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`1-prerequisites`,children:`1. Prerequisites`}),`\n`,_jsxs(_components.p,{children:[`For this tutorial, you’ll need a `,_jsx(_components.a,{href:`/hardware`,children:`supported device`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`2-building-a-dataset`,children:`2. Building a dataset`}),`\n`,_jsx(_components.p,{children:`For this demo, we’ll show you how to identify different environments by using a fusion of temperature, humidity, pressure, and light data. In particular, I’ll have the Arduino board identify different rooms in my house as well as outside. Note that the we assume that the environment is static—if I turn out lights or the outside temperature changes, the model will not work. However, it demonstrates how we can combine different sensor data with machine learning to do classification!`}),`\n`,_jsx(_components.p,{children:`As we will be collecting data from our Arduino board connected to a computer, it helps to have a laptop that you can move to different rooms.`}),`\n`,_jsx(_components.p,{children:`Create a new project on the Edge Impulse studio.`}),`\n`,_jsxs(_components.p,{children:[`Connect the Arduino Nano 33 BLE to your computer. Follow the `,_jsx(_components.a,{href:`/hardware/boards/arduino-nano-33-ble-sense`,children:`Arduino Nano 33 BLE Sense tutorial`}),` to upload the Edge Impulse firmware to the board and connect it to your project.`]}),`\n`,_jsx(Frame,{caption:`Arduino board connected to Edge Impulse project`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=b4641cdbbd0c6df2b950049173b274c0`,alt:`The Devices page with an Arduino board connected to the project`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`349`,height:`349`,\"data-path\":`.assets/images/devices-page-with-an-arduino-board-connected-to-the.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?w=280\u0026fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=c23839b63467ab1e6ee91ff9cb8d9e16 280w, https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?w=560\u0026fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=a7fdacac39026438b748df4d901961b5 560w, https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?w=840\u0026fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=b72d6d471cd642304118c0a7787c2100 840w, https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?w=1100\u0026fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=3cf0cf00a140dbafa953eaeba1ac99ad 1100w, https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?w=1650\u0026fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=46e6f275c3482ff3e35003e85999312d 1650w, https://mintcdn.com/edgeimpulse/UpfKnXz6Rfn5wm4E/.assets/images/devices-page-with-an-arduino-board-connected-to-the.png?w=2500\u0026fit=max\u0026auto=format\u0026n=UpfKnXz6Rfn5wm4E\u0026q=85\u0026s=3496e65b29e7223dfea8cd0ac01ae89d 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Go to `,_jsx(_components.strong,{children:`Data acquisition`}),`. Under `,_jsx(_components.strong,{children:`Record new data`}),`, select your device and set the label to `,_jsx(_components.code,{children:`bedroom`}),`. Change `,_jsx(_components.strong,{children:`Sensor`}),` to `,_jsx(_components.code,{children:`Environmental + Interactional`}),`, set the `,_jsx(_components.strong,{children:`Sample length`}),` to `,_jsx(_components.code,{children:`10000`}),` ms and `,_jsx(_components.strong,{children:`Frequency`}),` to `,_jsx(_components.code,{children:`12.5Hz`}),`.`]}),`\n`,_jsx(Frame,{caption:`Record data from multiple sensors`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=c0caff0c50a306d2063c67f8c339ba2c`,alt:`The Record new data form configured for multiple environmental sensors`,\"data-og-width\":`1162`,width:`1162`,\"data-og-height\":`888`,height:`888`,\"data-path\":`.assets/images/record-new-data-form-configured-for-multiple.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?w=280\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=6f828c8b49c15efa7ce8df1e95936e41 280w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?w=560\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=a6154bceab7ade4687c5b5ed8cda0ee1 560w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?w=840\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=6a7cf67ad115fae8b0524dd66d93cf61 840w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?w=1100\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=1eeb200adc75c2fd81124615e3306959 1100w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?w=1650\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=6f5c8cc38ae19a0d004f275c46e39ab2 1650w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/record-new-data-form-configured-for-multiple.png?w=2500\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=274bd105dd3d56cc1c07470b8d4f3738 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Stand in one of your rooms with your Arduino board (and laptop). Click `,_jsx(_components.strong,{children:`Start sampling`}),` and slowly move the board around while data is collected. After sampling is complete, you should see a new data plot with a different line for each sensor.`]}),`\n`,_jsx(Frame,{caption:`Raw sensor readings`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=fea078cbdf3965e5060e9ca7be4dae83`,alt:`Raw environmental sensor readings plotted in the studio`,\"data-og-width\":`1148`,width:`1148`,\"data-og-height\":`760`,height:`760`,\"data-path\":`.assets/images/raw-environmental-sensor-readings-plotted-in-the.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?w=280\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=29a7210a0cd5afcecfc84d754f9c5560 280w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?w=560\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=c93358fa5ce9d801beb1fc39702f2798 560w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?w=840\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=7e4c887a2f0f7006d0b0d38c6abaf904 840w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?w=1100\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=c7fd4bf235291d0021ec76f06d66907d 1100w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?w=1650\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=3f2d6135ad650656028144a92638c2b7 1650w, https://mintcdn.com/edgeimpulse/-WgXP515XHSZ7nhZ/.assets/images/raw-environmental-sensor-readings-plotted-in-the.png?w=2500\u0026fit=max\u0026auto=format\u0026n=-WgXP515XHSZ7nhZ\u0026q=85\u0026s=8c6ef840988199cabc5cf4484c6c8b19 2500w`})}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Variations`})}),_jsx(_components.p,{children:`Try to stand in different parts of each room while collecting data.`})]}),`\n`,_jsxs(_components.p,{children:[`Repeat this process to record about 3 minutes of data for the `,_jsx(_components.em,{children:`bedroom`}),` class. Try to stand in a different spot in the room while collecting data—we want a robust dataset that represents the features of each room. Head to another room and repeat data collection. Continue doing this until you have around 3 minutes of data for each of the following classes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Bedroom`}),`\n`,_jsx(_components.li,{children:`Hallway`}),`\n`,_jsx(_components.li,{children:`Outside`}),`\n`]}),`\n`,_jsx(_components.p,{children:`You are welcome to try other rooms or locations. For this demo, I found that my bedroom, kitchen, and living room all exhibited similar environmental and lighting properties, so the model struggled to tell them apart.`}),`\n`,_jsxs(_components.p,{children:[`Head to `,_jsx(_components.strong,{children:`Dashboard`}),` and scroll down to `,_jsx(_components.strong,{children:`Danger zone`}),`. Click `,_jsx(_components.strong,{children:`Perform train/test split`}),` and follow the instructions in the pop-up window to split your dataset into training and testing groups. When you’re done, you can head back to `,_jsx(_components.strong,{children:`Data acquisition`}),` to see that your dataset has been split. You should see about 80% of your samples in `,_jsx(_components.strong,{children:`Training data`}),` and about 20% in `,_jsx(_components.strong,{children:`Test data`}),`.`]}),`\n`,_jsx(Frame,{caption:`Data split into training and testing sets`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=eaaad7366e4f94050a9f8ef8203ce4ac`,alt:`The Data acquisition page with training and testing datasets split automatically`,\"data-og-width\":`1227`,width:`1227`,\"data-og-height\":`160`,height:`160`,\"data-path\":`.assets/images/data-acquisition-page-with-training-and-testing.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?w=280\u0026fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=a0255a9b6e7ad2dd3644345c6470b4b7 280w, https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?w=560\u0026fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=a37744c2e1c8f3668c0cb26be30dcd2b 560w, https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?w=840\u0026fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=f5d0c57c2a596421b1f26eeedddbcdfb 840w, https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?w=1100\u0026fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=6900f7772b4f7e4ccd558ed473c05e8d 1100w, https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?w=1650\u0026fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=af0ce960a7c60882a4ba668fec5264f0 1650w, https://mintcdn.com/edgeimpulse/6fC4I05vo7YjCpKK/.assets/images/data-acquisition-page-with-training-and-testing.png?w=2500\u0026fit=max\u0026auto=format\u0026n=6fC4I05vo7YjCpKK\u0026q=85\u0026s=173f7c64b1666a1c88425c24bc6d8a9d 2500w`})}),`\n`,_jsx(Heading,{level:`3`,id:`4-design-an-impulse`,children:`4. Design an Impulse`}),`\n`,_jsxs(_components.p,{children:[`An impulse is a combination of preprocessing (DSP) blocks followed by machine learning blocks. It will slice up our data into smaller windows, use signal processing to extract features, and then train a machine learning model. Because we are using environmental and light data, which are slow-moving averages, we will use the `,_jsx(_components.a,{href:`/studio/projects/processing-blocks/blocks/flatten`,children:`Flatten block`}),` for preprocessing.`]}),`\n`,_jsxs(_components.p,{children:[`Head to `,_jsx(_components.strong,{children:`Create impulse`}),`. Change the `,_jsx(_components.strong,{children:`Window increase`}),` to `,_jsx(_components.code,{children:`500 ms`}),`. Add a `,_jsx(_components.strong,{children:`Flatten block`}),`. Notice that you can choose which environmental and interactional sensor data to include. Deselect `,_jsx(_components.strong,{children:`proximity`}),` and `,_jsx(_components.strong,{children:`gesture`}),`, as we won’t need those to detect rooms. Add a `,_jsx(_components.strong,{children:`Classification (Keras)`}),` learning block`]}),`\n`,_jsx(Frame,{caption:`Impulse designed to work with sensor fusion`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=7d332ecadb173b5ce9d871ca88ae8a62`,alt:`The Create impulse page with sensor fusion input, flatten, and classification blocks`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`717`,height:`717`,\"data-path\":`.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?w=280\u0026fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=db5eed0019009109a1a5220a4f005823 280w, https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?w=560\u0026fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=d600aa107023bfcfed0adcbcaffe94d1 560w, https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?w=840\u0026fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=660a2f3f727fffa1f616ec25435d6224 840w, https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?w=1100\u0026fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=cbf6a3a0670b8b8431d8d873def0b696 1100w, https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?w=1650\u0026fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=2fd59bc80975ad412c1bdcdb2cdde3b0 1650w, https://mintcdn.com/edgeimpulse/3StgJ7NkW4vSOuoq/.assets/images/create-impulse-page-with-sensor-fusion-input-flatten.png?w=2500\u0026fit=max\u0026auto=format\u0026n=3StgJ7NkW4vSOuoq\u0026q=85\u0026s=419c8b9cb9c62956adbc3e811e5eeb04 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save impulse`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`5-configure-the-flatten-block`,children:`5. Configure the Flatten block`}),`\n`,_jsxs(_components.p,{children:[`Head to `,_jsx(_components.strong,{children:`Flatten`}),`. You can select different samples and move the window around to see what the DSP result will look like for each set of features to be sent to the learning block.`]}),`\n`,_jsx(Frame,{caption:`View processed features from one sample`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=077de86a80da2820108b1ef4ae2d073e`,alt:`The Flatten block parameter page with processed sample features`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`746`,height:`746`,\"data-path\":`.assets/images/flatten-block-parameter-page-with-processed-sample.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?w=280\u0026fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=208f351eb590bb0833f162168b2744f1 280w, https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?w=560\u0026fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=3e3aac5f67dad86ca06c578c1ac52fe0 560w, https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?w=840\u0026fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=bc1d9c773721f90b81954531e294cf32 840w, https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?w=1100\u0026fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=f5a280eabab8763f681567ba3fc248cf 1100w, https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?w=1650\u0026fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=ad5d70292b1fc7d98328fed4cd00c813 1650w, https://mintcdn.com/edgeimpulse/KzEEIYjvTH8dX--U/.assets/images/flatten-block-parameter-page-with-processed-sample.png?w=2500\u0026fit=max\u0026auto=format\u0026n=KzEEIYjvTH8dX--U\u0026q=85\u0026s=c871363073c25d8e198df4a6db3c3f05 2500w`})}),`\n`,_jsxs(_components.p,{children:[`The Flatten block will compute the average, minimum, maximum, root-mean square, standard deviation, skewness, and kurtosis of each axis (e.g. temperature, humidity, brightness, etc.). With 7 axes and 7 features computed for each axis, that gives us 49 features for each window being sent to the learning block. You can see these computed features under `,_jsx(_components.strong,{children:`Processed features`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save parameters`}),`. On the next screen, select `,_jsx(_components.strong,{children:`Calculate feature importance`}),` and click `,_jsx(_components.strong,{children:`Generate features`}),`.`]}),`\n`,_jsx(_components.p,{children:`After a few moments, you should be able to explore the features of your dataset to see if your classes are easily separated into categories.`}),`\n`,_jsx(Frame,{caption:`View groupings of the most prominent features`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=3ddcdc32e49f99c707e5f05b2e31c12b`,alt:`The feature explorer showing grouped sensor features across the dataset`,\"data-og-width\":`968`,width:`968`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/feature-explorer-showing-grouped-sensor-features.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?w=280\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=8a3756c4205e9ce5ff904a1d636fd9cd 280w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?w=560\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=fc1b6db1de0e9f86d6c54171c12c4538 560w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?w=840\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=635f5d042c5240b90cb272d0c3609695 840w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?w=1100\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=89712c360df6ebc843898c40eb09d841 1100w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?w=1650\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=4eb6767b37abb0c988dfda7c67ff2780 1650w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-explorer-showing-grouped-sensor-features.png?w=2500\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=6745702b937f24d1e6278395a53f2da2 2500w`})}),`\n`,_jsxs(_components.p,{children:[`You can also look at the `,_jsx(_components.strong,{children:`Feature importance`}),` section to get an idea of which features are the most important in determining class membership. You can read more about feature importance `,_jsx(_components.a,{href:`https://edgeimpulse.com/blog/advanced-anomaly-detection-with-feature-importance`,children:`here`}),`.`]}),`\n`,_jsx(Frame,{caption:`View the most important features`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=0816cb291e68dfb9d5c555e7490a6be9`,alt:`The feature importance view ranking the strongest sensor fusion features`,\"data-og-width\":`1158`,width:`1158`,\"data-og-height\":`828`,height:`828`,\"data-path\":`.assets/images/feature-importance-view-ranking-the-strongest-sensor.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?w=280\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=ba2c030f0279208c026ab35ddbe40a78 280w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?w=560\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=7da8cbafcd967dc8822d9366f32816d5 560w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?w=840\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=831b05040227b5ecf09e03e6df70891f 840w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?w=1100\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=b841beff7bbb4fed91134be3bc1d4078 1100w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?w=1650\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=be990b80a595a8b524d25cad5483c93e 1650w, https://mintcdn.com/edgeimpulse/f3SBn6xE6_wUITpZ/.assets/images/feature-importance-view-ranking-the-strongest-sensor.png?w=2500\u0026fit=max\u0026auto=format\u0026n=f3SBn6xE6_wUITpZ\u0026q=85\u0026s=48048ed34b6aab51d515e2e4f68b9d79 2500w`})}),`\n`,_jsx(_components.p,{children:`Interestingly enough, it looks like temperature and red light values were the most important features in determining the location of the Arduino board.`}),`\n`,_jsx(Heading,{level:`3`,id:`6-configure-the-neural-network`,children:`6. Configure the neural network`}),`\n`,_jsxs(_components.p,{children:[`With our dataset collected and features processed, we can train our machine learning model. Click on `,_jsx(_components.strong,{children:`NN Classifier`}),`. Change the `,_jsx(_components.strong,{children:`Number of training cycles`}),` to `,_jsx(_components.code,{children:`300`}),` and click `,_jsx(_components.strong,{children:`Start training`}),`. We will leave the neural network architecture as the default for this demo.`]}),`\n`,_jsx(Frame,{caption:`Neural network architecture`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=b41c4d02bbb115d39bba296334b51252`,alt:`The neural network architecture panel for the classifier`,\"data-og-width\":`916`,width:`916`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/neural-network-architecture-panel-for-the-classifier.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?w=280\u0026fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=36ad323df9c8cf2a535f8c87c719df60 280w, https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?w=560\u0026fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=03725f4d216e5a4b9a3d8743f45a5d0b 560w, https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?w=840\u0026fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=48cf7202680b71b643e1265ee972ce39 840w, https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?w=1100\u0026fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=15aba105b882f5fde91504a821858703 1100w, https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?w=1650\u0026fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=896c5473a2fd3f16e1bf9b2164d5d03f 1650w, https://mintcdn.com/edgeimpulse/2OS7WYnQj9_83wCn/.assets/images/neural-network-architecture-panel-for-the-classifier.png?w=2500\u0026fit=max\u0026auto=format\u0026n=2OS7WYnQj9_83wCn\u0026q=85\u0026s=3d4d379ef08ef886ff70cc36ef575680 2500w`})}),`\n`,_jsxs(_components.p,{children:[`During training, parameters in the neural network’s neurons are gradually updated so that the model will try to guess the class of each set of data as accurately as possible. When training is complete, you should see a `,_jsx(_components.em,{children:`Model`}),` panel appear on the right side of the page.`]}),`\n`,_jsx(Frame,{caption:`Confusion matrix of the validation set`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=93c3ed2b1fd60ca55dd1178151898d89`,alt:`Validation confusion matrix for the environmental sensor fusion model`,\"data-og-width\":`891`,width:`891`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/validation-confusion-matrix-for-the-environmental.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?w=280\u0026fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=7dabb12b21b84ce725b75988c2deb8bf 280w, https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?w=560\u0026fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=01ce474392f50706303c851b4edf4c56 560w, https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?w=840\u0026fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=92c031ab059b702afa0d899ac21303f9 840w, https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?w=1100\u0026fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=95a288b8eee3b107497ed7fc5e256874 1100w, https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?w=1650\u0026fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=1857e1943aa6ab21dbe75633dc68f423 1650w, https://mintcdn.com/edgeimpulse/JgXbtJL76vIg-e6S/.assets/images/validation-confusion-matrix-for-the-environmental.png?w=2500\u0026fit=max\u0026auto=format\u0026n=JgXbtJL76vIg-e6S\u0026q=85\u0026s=2169596f479e1516ba699142c6e1c4af 2500w`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Confusion matrix`}),` gives you an idea of how well the model performed at classifying the different sets of data. The top row gives the predicted label and the column on the left side gives the actual (ground-truth) label. Ideally, the model should predict the classes correctly, but that’s not always the case. You want the diagonal cells from the top-left to the bottom-right to be as close to 100% as possible.`]}),`\n`,_jsxs(_components.p,{children:[`If you see a lot of confusion between classes, it means you need to gather more data, try different features, use a different model architecture, or train for a longer period of time (more epochs). See `,_jsx(_components.a,{href:`/knowledge/guides/increasing-model-performance`,children:`this guide`}),` to learn about ways to increase model performance.`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.em,{children:`On-device performance`}),` provides some statistics about how the model will likely run on a particular device. By default, an Arm Cortex-M4F running at 80 MHz is assumed to be your target device. The actual memory requirements and run time may vary on different platforms.`]}),`\n`,_jsx(Heading,{level:`3`,id:`7-model-testing`,children:`7. Model testing`}),`\n`,_jsx(_components.p,{children:`Rather than simply assume that our model will work when deployed, we can run inference on our test dataset as well as on live data.`}),`\n`,_jsxs(_components.p,{children:[`First, head to `,_jsx(_components.strong,{children:`Model testing`}),`, and click `,_jsx(_components.strong,{children:`Classify all`}),`. After a few moments, you should see results from your test set.`]}),`\n`,_jsx(Frame,{caption:`Results from running inference on the test set`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=bf2a60d6e6fdd6a374232e7be1d385d8`,alt:`Model testing results after classifying the held-out test set`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`681`,height:`681`,\"data-path\":`.assets/images/model-testing-results-after-classifying-the-held-out.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?w=280\u0026fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=c42382e16cc623e0b11a5dae667c404d 280w, https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?w=560\u0026fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=c363007e7a8f54366b7341215a15acbf 560w, https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?w=840\u0026fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=f344353b1681ae9ce1659ae3464c369f 840w, https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?w=1100\u0026fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=95e051ec0f96e6f7c88e26b479940552 1100w, https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?w=1650\u0026fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=deb6e1ee04bb9612c062d84d6c06cbf3 1650w, https://mintcdn.com/edgeimpulse/X7013OZmlLuzfpnk/.assets/images/model-testing-results-after-classifying-the-held-out.png?w=2500\u0026fit=max\u0026auto=format\u0026n=X7013OZmlLuzfpnk\u0026q=85\u0026s=b6910358b473a6f726eb4d879ccf34df 2500w`})}),`\n`,_jsxs(_components.p,{children:[`You can click on the three dots next to an item and select `,_jsx(_components.strong,{children:`Show classification`}),`. This will give you a classification result screen where you can see results information in more detail.`]}),`\n`,_jsx(Frame,{caption:`View detailed classification results from a test sample`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=c16367d2baf660e6235c9b453c85bf55`,alt:`Detailed classification view for one environmental sensor sample`,\"data-og-width\":`1185`,width:`1185`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/detailed-classification-view-for-one-environmental.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?w=280\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=5e0198643629e8135460f4384454c951 280w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?w=560\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=f1a028434520586033dec14730daf7ea 560w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?w=840\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=f73d7229822f164dfaaf86ddc26b8892 840w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=5b64011e84f297e1b0c2f35071bb6232 1100w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=3400c6917de7996cfe45950d8d4c7b02 1650w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/detailed-classification-view-for-one-environmental.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=b4d7157a74e3cf9c199897ecb20e711e 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Additionally, we can test the impulse in a real-world environment to make sure the model has not overfit the training data. To do that, head to `,_jsx(_components.strong,{children:`Live classification`}),`. Make sure your device is connected to the Studio and that the `,_jsx(_components.em,{children:`Sensor`}),`, `,_jsx(_components.em,{children:`Sample length`}),`, and `,_jsx(_components.em,{children:`Frequency`}),` match what we used to initially capture data.`]}),`\n`,_jsx(Frame,{caption:`Classify live data`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=fe77de5ad8f6e6f541b579e1337ec52b`,alt:`The Live classification page ready to classify streaming sensor data`,\"data-og-width\":`1232`,width:`1232`,\"data-og-height\":`646`,height:`646`,\"data-path\":`.assets/images/live-classification-page-ready-to-classify-streaming.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?w=280\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=419b21cb9696a869a9633112c7605f4b 280w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?w=560\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=ffd52fe9d19c4066097ee63f772bfcc6 560w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?w=840\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=2ff246ded339323b32f85e9162f385e7 840w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?w=1100\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=10ea9319bf7e562dfd959d0f34cb4490 1100w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?w=1650\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=caf84ea0cd5ba79887a85e3c50bd0863 1650w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-page-ready-to-classify-streaming.png?w=2500\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=ab03b79be610f5ca4c271246eccbab66 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Start sampling`}),`. A new sample will be captured from your board, uploaded, and classified. Once complete, you should see the classification results.`]}),`\n`,_jsx(Frame,{caption:`Live classification results`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=24813044d4b47f53ce5514849dc996ee`,alt:`Live classification results from the connected sensor device`,\"data-og-width\":`1600`,width:`1600`,\"data-og-height\":`855`,height:`855`,\"data-path\":`.assets/images/live-classification-results-from-the-connected.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?w=280\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=c9c7e5a8bf115fbcbfd0823f7809c9de 280w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?w=560\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=f25b74c50ed4c314a655f6074ee0e964 560w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?w=840\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=38ddbadc5c948a24de3fdca4ff7bc29f 840w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?w=1100\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=56fd2c927b1b1b06f40b92ad671fdcc3 1100w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?w=1650\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=b31fb3e586b57e2a6e52bf8a670725ee 1650w, https://mintcdn.com/edgeimpulse/YbjSoAtnpffgMk5V/.assets/images/live-classification-results-from-the-connected.png?w=2500\u0026fit=max\u0026auto=format\u0026n=YbjSoAtnpffgMk5V\u0026q=85\u0026s=cd4b72eef2b0d088fbf896f9d144692a 2500w`})}),`\n`,_jsx(_components.p,{children:`In the example above, we sampled 10 seconds of data from the Arduino. This data is split into 1-second windows (the window moves over 0.5 seconds each time), and the data in that window is sent to the DSP block. The DSP block computes the 49 features that are then sent to the trained machine learning model, which performs a forward pass to give us our inference results.`}),`\n`,_jsx(_components.p,{children:`As you can see, the inference results from all of the windows claimed that the Arduino board was in the bedroom, which was true! This is great news for our model—it seems to work even on unseen data.`}),`\n`,_jsx(Heading,{level:`3`,id:`8-running-the-impulse-on-your-device`,children:`8. Running the impulse on your device`}),`\n`,_jsx(_components.p,{children:`Now that we have an impulse with a trained model and we’ve tested its functionality, we can deploy the model back to our device. This means the impulse can run locally without an internet connection to perform inference!`}),`\n`,_jsx(_components.p,{children:`Edge Impulse can package up the entire impulse (preprocessing block, neural network, and classification code) into a single library that you can include in your embedded software.`}),`\n`,_jsxs(_components.p,{children:[`Click on `,_jsx(_components.strong,{children:`Deployment`}),` in the menu. Select the library that you would like to create, and click `,_jsx(_components.strong,{children:`Build`}),` at the bottom of the page.`]}),`\n`,_jsx(Frame,{caption:`Deploy a trained machine learning model to any number of devices`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=984dbf7c08776ccb27208239a2f749ca`,alt:`The Deployment page listing device and library options for the trained model`,\"data-og-width\":`1017`,width:`1017`,\"data-og-height\":`1000`,height:`1000`,\"data-path\":`.assets/images/deployment-page-listing-device-and-library-options.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?w=280\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=f5f13bc831a4e12d5b237c386f8c818b 280w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?w=560\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=aa1fd2f9647a78f114254ee39ce00548 560w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?w=840\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=86830c86dbf14212a5367b08faa05d82 840w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?w=1100\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=f51fd9e6928c6f5dac5a0d0a14d8f61e 1100w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?w=1650\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=08da88fcc4494ac663efd4fdacf2b6be 1650w, https://mintcdn.com/edgeimpulse/rn1tji7TQpNIpxxC/.assets/images/deployment-page-listing-device-and-library-options.png?w=2500\u0026fit=max\u0026auto=format\u0026n=rn1tji7TQpNIpxxC\u0026q=85\u0026s=9dedb6b2d0e732358a9872640d749a92 2500w`})}),`\n`,_jsxs(Info,{children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Running your impulse locally`})}),_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/hardware/deployments`,children:`Deployments`}),` tutorials to learn how to deploy your impulse to a variety of platforms.`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`9-conclusion`,children:`9. Conclusion`}),`\n`,_jsx(_components.p,{children:`Well done! You’ve trained a neural network to determine the location of a development board based on a fusion of several sensors working in tandem. Note that this demo is fairly limited—as the daylight or temperature changes, the model will no longer be valid. However, it hopefully gives you some ideas about how you can mix and match sensors to achieve your machine learning goals.`}),`\n`,_jsxs(_components.p,{children:[`If you’re interested in more, see our tutorials on `,_jsx(_components.a,{href:`/tutorials/end-to-end/sound-recognition`,children:`Sound recognition`}),` or `,_jsx(_components.a,{href:`/tutorials/end-to-end/image-classification`,children:`Image classification`}),`. If you have a great idea for a different project, that’s fine too. Edge Impulse lets you capture data from any sensor, build `,_jsx(_components.a,{href:`/studio/organizations/custom-blocks/custom-processing-blocks`,children:`custom processing blocks`}),` to extract features, and you have full flexibility in your Machine Learning pipeline with the learning blocks.`]}),`\n`,_jsx(_components.p,{children:`We can’t wait to see what you’ll build! 🚀`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{CardOpenStudioTutorial,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Environmental sensor fusion","description":"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.","href":"/tutorials/end-to-end/environmental-sensor-fusion"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"1. Prerequisites","slug":"1-prerequisites","depth":3,"children":[]},{"title":"2. Building a dataset","slug":"2-building-a-dataset","depth":3,"children":[]},{"title":"4. Design an Impulse","slug":"4-design-an-impulse","depth":3,"children":[]},{"title":"5. Configure the Flatten block","slug":"5-configure-the-flatten-block","depth":3,"children":[]},{"title":"6. Configure the neural network","slug":"6-configure-the-neural-network","depth":3,"children":[]},{"title":"7. Model testing","slug":"7-model-testing","depth":3,"children":[]},{"title":"8. Running the impulse on your device","slug":"8-running-the-impulse-on-your-device","depth":3,"children":[]},{"title":"9. Conclusion","slug":"9-conclusion","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/edgeimpulse/3a20e79a9abf6af7/.scripts/adobe-analytics.js"],"subdomain":"edgeimpulse","siteName":"Edge Impulse Documentation","title":"Environmental sensor fusion - Edge Impulse Documentation","contextualStarterQuestions":[{"_id":"6ac78de1407b2b5b5aa3bcb5","deploymentId":"6888ecea7bd5ed3e5d2f677d","questionText":"What is sensor fusion?","status":"active","generatedBy":"contextual","path":"tutorials/end-to-end/environmental-sensor-fusion","createdAt":"2026-10-08T12:34:41.439Z","updatedAt":"2026-10-08T12:34:41.439Z","__v":0},{"_id":"6ac78de1407b2b5b5aa3bcb7","deploymentId":"6888ecea7bd5ed3e5d2f677d","questionText":"Can I use multiple sensors?","status":"active","generatedBy":"contextual","path":"tutorials/end-to-end/environmental-sensor-fusion","createdAt":"2026-10-08T12:34:41.439Z","updatedAt":"2026-10-08T12:34:41.439Z","__v":0},{"_id":"6ac78de1407b2b5b5aa3bcb6","deploymentId":"6888ecea7bd5ed3e5d2f677d","questionText":"How do I fuse sensor data?","status":"active","generatedBy":"contextual","path":"tutorials/end-to-end/environmental-sensor-fusion","createdAt":"2026-10-08T12:34:41.439Z","updatedAt":"2026-10-08T12:34:41.439Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-13T14:39:20.080Z","originalFileLocation":"tutorials/end-to-end/environmental-sensor-fusion.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Edge Impulse Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Environmental sensor fusion - Edge Impulse Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Edge Impulse Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://edgeimpulse.mintlify.app/_mintlify/api/og/v2?division=Time-series\u0026amp;title=Environmental+sensor+fusion\u0026amp;description=Fuse+accelerometer+and+temperature+sensor+data+to+build+a+multi-sensor+classifier%2C+and+deploy+it+to+an+Arduino+Nano+33+BLE+Sense.\u0026amp;theme=c0871bc4d614d2e3b7bd2b2d\u0026amp;signature=41abb320076342e11083c4d0ab2102276e35dc752a0d0e7afff03def0cdf98b6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Environmental sensor fusion - Edge Impulse Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://edgeimpulse.mintlify.app/_mintlify/api/og/v2?division=Time-series\u0026amp;title=Environmental+sensor+fusion\u0026amp;description=Fuse+accelerometer+and+temperature+sensor+data+to+build+a+multi-sensor+classifier%2C+and+deploy+it+to+an+Arduino+Nano+33+BLE+Sense.\u0026amp;theme=c0871bc4d614d2e3b7bd2b2d\u0026amp;signature=41abb320076342e11083c4d0ab2102276e35dc752a0d0e7afff03def0cdf98b6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/edgeimpulse/ZmtueQz3qIhQbHQ2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Edge Impulse Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5f76db\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/tutorials/end-to-end/environmental-sensor-fusion.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.edgeimpulse.com/#organization\",\"name\":\"Edge Impulse Documentation\",\"url\":\"https://docs.edgeimpulse.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/edgeimpulse/-Yjt9HB8VCOXQC8H/.assets/logos/ei-logo-light.svg?fit=max\u0026auto=format\u0026n=-Yjt9HB8VCOXQC8H\u0026q=85\u0026s=a26ac03680700105c38fa0507df4fee2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.edgeimpulse.com#website\",\"name\":\"Edge Impulse Documentation\",\"url\":\"https://docs.edgeimpulse.com\",\"publisher\":{\"@id\":\"https://docs.edgeimpulse.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion#webpage\",\"url\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion\",\"name\":\"Environmental sensor fusion\",\"description\":\"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.\",\"dateModified\":\"2026-09-13T14:39:20.080Z\",\"isPartOf\":{\"@id\":\"https://docs.edgeimpulse.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"END-TO-END\",\"item\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time-series\",\"item\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/motion-recognition\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Environmental sensor fusion\",\"item\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion#article\",\"headline\":\"Environmental sensor fusion\",\"name\":\"Environmental sensor fusion\",\"description\":\"Fuse accelerometer and temperature sensor data to build a multi-sensor classifier, and deploy it to an Arduino Nano 33 BLE Sense.\",\"url\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion\",\"mainEntityOfPage\":{\"@id\":\"https://docs.edgeimpulse.com/tutorials/end-to-end/environmental-sensor-fusion#webpage\"},\"dateModified\":\"2026-09-13T14:39:20.080Z\",\"publisher\":{\"@id\":\"https://docs.edgeimpulse.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.edgeimpulse.com#website\"}}]}\u003c/script>","siteName":"Edge Impulse Documentation","nav":{"global":{"anchors":[{"anchor":"Forum","icon":"discourse","href":"https://forum.edgeimpulse.com"},{"anchor":"Discord","icon":"discord","href":"https://discord.gg/edgeimpulse"},{"anchor":"GitHub","icon":"github","href":"https://github.com/edgeimpulse"}]},"tabs":[{"tab":"Knowledge","pages":[{"title":"Knowledge","href":""}]},{"tab":"Studio","pages":[{"title":"Studio","href":"/studio"}]},{"tab":"Hardware","pages":[{"title":"Hardware","href":"/hardware"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools"}]},{"tab":"APIs","pages":[{"title":"APIs","href":"/apis"}]},{"tab":"Tutorials","groups":[{"group":"OVERVIEW","icon":"map","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"group":"END-TO-END","icon":"arrows-left-right","pages":[{"title":"End-to-end tutorials","href":"/tutorials/end-to-end/overview"},{"group":"Image","pages":[{"title":"Image classification","href":"/tutorials/end-to-end/image-classification"},{"title":"Object detection with bounding boxes","href":"/tutorials/end-to-end/object-detection-bounding-boxes"},{"title":"Object detection with centroids","href":"/tutorials/end-to-end/object-detection-centroids"},{"title":"Visual anomaly detection","sidebarTitle":"Visual anomaly detection","href":"/tutorials/end-to-end/visual-anomaly-detection"},{"title":"Visual regression","sidebarTitle":"Visual regression","href":"/tutorials/end-to-end/visual-regression"}]},{"group":"Audio","pages":[{"title":"Keyword spotting","href":"/tutorials/end-to-end/keyword-spotting"},{"title":"Sound recognition","href":"/tutorials/end-to-end/sound-recognition"}]},{"group":"Time-series","pages":[{"title":"Motion recognition with anomaly detection","description":"Recognize gestures from accelerometer data with a neural network classifier and anomaly detection, deployed to a microcontroller.","href":"/tutorials/end-to-end/motion-recognition"},{"title":"Environmental sensor fusion","href":"/tutorials/end-to-end/environmental-sensor-fusion"},{"title":"HR/HRV estimation","description":"Extract heart rate and heart rate variability (HRV) features from PPG data to power health-monitoring applications at the edge.","href":"/tutorials/end-to-end/hr-hrv-estimation"},{"title":"Temperature anomaly detection on Opta PLC","href":"/tutorials/end-to-end/temp-anomaly-detection-opta-plc"},{"title":"OBD Automotive data","href":"/tutorials/end-to-end/obd-automotive-data"}]},{"group":"Hardware specific","pages":[{"title":"Avnet RASynBoard - motion recognition","href":"/tutorials/hardware/avnet-rasyn-motion-recognition"},{"title":"Particle Photon 2 - audio event detection","href":"/tutorials/hardware/particle-photon2-audio-even-detection"},{"title":"Particle Photon 2 and Boron - motion recognition","href":"/tutorials/hardware/particle-photon2-motion-recognition"},{"title":"Renesas RA8D1 - NVIDIA TAO models","href":"/tutorials/hardware/renesas-ra8d1-nvidia-tao"},{"title":"Renesas RZ/V2L - object detection (x2)","href":"/tutorials/hardware/renesas-rzv2l-object-detection-x2"},{"title":"Sony Spresense - image classification","href":"/tutorials/hardware/sony-spresense-image-classification"},{"title":"SiLabs xG24 Dev Kit - object detection","href":"/tutorials/hardware/silabs-xg24-devkit-object-detection"},{"title":"Syntiant NDPs - keyword spotting","href":"/tutorials/hardware/syntiant-ndp-keyword-spotting"},{"title":"Syntiant NDPs - motion recognition","href":"/tutorials/hardware/syntiant-ndp-motion-recognition"},{"title":"TI LaunchXL - keyword spotting","href":"/tutorials/hardware/ti-launchxl-keyword-spotting"},{"title":"TI LaunchXL - sound recognition","href":"/tutorials/hardware/ti-launchxl-sound-recognition"}]},{"group":"AI agents","pages":[{"title":"Motion recognition using an agent","href":"/tutorials/end-to-end/motion-recognition-using-agent"}]}]},{"group":"TOPICS","icon":"list","pages":[{"group":"AI agents","pages":[{"title":"Install Agent Skills","href":"/tutorials/topics/ai-agents/create-edge-impulse-skill"},{"title":"Create a companion skill","href":"/tutorials/topics/ai-agents/create-a-companion-skill"},{"title":"Prompt library","href":"/tutorials/topics/ai-agents/prompt-library"}]},{"group":"Data","pages":[{"group":"Ingestion","pages":[{"title":"Collect image data using a mobile phone","href":"/tutorials/topics/data/collect-image-data-phone"},{"title":"Collect image data using Studio","href":"/tutorials/topics/data/collect-image-data-studio"},{"title":"Collect image data using OpenMV Cam H7 Plus","href":"/tutorials/topics/data/collect-image-data-openmv-h7-plus"}]},{"group":"Generation","pages":[{"title":"Generate image data using Dall-E","href":"/tutorials/topics/data/generate-image-data-dall-e"},{"title":"Generate image data using RealVisXL","href":"/tutorials/topics/data/generate-image-data-realvisxl"},{"title":"Generate keyword data using Google TTS","href":"/tutorials/topics/data/generate-keyword-data-google-tts"},{"title":"Generate time-series data using MATLAB","href":"/tutorials/topics/data/generate-time-series-data-matlab"},{"title":"Generate time-series data using PyBullet","href":"/tutorials/topics/data/generate-time-series-data-pybullet"}]},{"group":"Annotation","pages":[{"title":"Label audio data using your existing model","href":"/tutorials/topics/data/label-audio-data-existing-model"},{"title":"Label image data using GPT-4o","href":"/tutorials/topics/data/label-image-data-gpt-4o"}]}]},{"group":"Feature extraction","pages":[{"title":"Build a custom processing block","href":"/tutorials/topics/feature-extraction/build-custom-processing-blocks"},{"title":"Use embeddings for sensor fusion","href":"/tutorials/topics/feature-extraction/use-embeddings-sensor-fusion"}]},{"group":"Machine learning","pages":[{"title":"Classify multiple 2D input features","href":"/tutorials/topics/machine-learning/classify-multiple-2d-features"},{"title":"Deploy pretrained models with freeform outputs","href":"/tutorials/topics/machine-learning/deploy-freeform-model"},{"title":"Use the regression learning block","href":"/tutorials/topics/machine-learning/use-regression-learning-block"},{"title":"Visualize neural networks decisions with Grad-CAM","href":"/tutorials/topics/machine-learning/visualize-neural-netowrks-gradcam"}]},{"group":"Inference","pages":[{"title":"Run multiple impulses (C++)","href":"/tutorials/topics/inference/run-multiple-impulses-cpp"},{"title":"Run on Qualcomm Device Cloud","href":"/tutorials/topics/inference/run-qualcomm-device-cloud"},{"title":"Sample audio continuously","href":"/tutorials/topics/inference/sample-audio-continuously"}]},{"group":"Post-processing","pages":[{"title":"Count objects using FOMO","href":"/tutorials/topics/post-processing/count-objects-fomo"}]},{"group":"Model cascades","pages":[{"title":"Two-stage OCR on Linux devices","sidebarTitle":"Two-stage OCR","href":"/tutorials/topics/model-cascades/ocr"}]},{"group":"Lifecycle management","pages":[{"title":"Acquire and process data using Golioth on AI","href":"/tutorials/topics/lifecycle-management/acquire-process-golioth"},{"title":"Deploy using GitHub Actions","href":"/tutorials/topics/lifecycle-management/deploy-github-actions"},{"group":"Perform OTA model updates","pages":[{"title":"Allxon","href":"/tutorials/topics/lifecycle-management/ota-allxon"},{"title":"Arduino IDE (for ESP32)","href":"/tutorials/topics/lifecycle-management/ota-arduino"},{"title":"Arduino IoT Cloud","href":"/tutorials/topics/lifecycle-management/ota-arduino-iot-cloud"},{"title":"Balena","href":"/tutorials/topics/lifecycle-management/ota-balena"},{"title":"Blues Wireless","href":"/tutorials/topics/lifecycle-management/ota-blues-wireless"},{"title":"C++","href":"/tutorials/topics/lifecycle-management/ota-cpp"},{"title":"Espressif IDF","href":"/tutorials/topics/lifecycle-management/ota-espressif-idf"},{"title":"Nordic Thingy53","href":"/tutorials/topics/lifecycle-management/ota-thingy53"},{"title":"NVIDIA Jetson","href":"/tutorials/topics/lifecycle-management/ota-jetson-nano"},{"title":"Particle Workbench","href":"/tutorials/topics/lifecycle-management/ota-particle-workbench"},{"title":"Particle Webhook","href":"/tutorials/topics/lifecycle-management/ota-particle-webhook"},{"title":"Zephyr on Golioth","href":"/tutorials/topics/lifecycle-management/ota-zephyr-golioth"}]}]},{"group":"Android","pages":[{"title":"Android series overview","href":"/tutorials/topics/android/android-series"},{"title":"Static buffer inference on Android","href":"/tutorials/topics/android/static-buffer-inference"},{"title":"Keyword spotting on Android","href":"/tutorials/topics/android/keyword-spotting"},{"title":"Camera inference on Android","href":"/tutorials/topics/android/camera-inference"},{"title":"Motion inference on Wear OS","href":"/tutorials/topics/android/wearos-motion-inference"},{"title":"QNN hardware acceleration on Android","href":"/tutorials/topics/android/qnn-acceleration"},{"title":"Build a speech-to-image app with QNN on Android","href":"/tutorials/topics/android/qnn-speech-to-image"},{"title":"Android data collector","href":"/tutorials/topics/android/android-data-collector"},{"title":"AR/XR factory floor (Unity + Meta Quest 3)","href":"/tutorials/topics/android/ar-xr-factory-floor"}]},{"group":"Zephyr","pages":[{"title":"Zephyr series overview","href":"/tutorials/topics/zephyr/zephyr-module-series"},{"title":"Porting Zephyr Projects Between Boards","href":"/tutorials/topics/zephyr/porting-between-boards"},{"title":"IMU inference on Zephyr","href":"/tutorials/topics/zephyr/zephyr-module-imu"},{"title":"Microphone Keyword Spotting on Zephyr","href":"/tutorials/topics/zephyr/zephyr-module-microphone-kws"},{"title":"BLE GATT sensor bridge for Edge Impulse","href":"/tutorials/topics/zephyr/zephyr-ble-gatt-client"}]},{"group":"Robotics","pages":[{"title":"Robotics","href":"/tutorials/topics/robotics"},{"title":"Run Edge Impulse object detection with ROS 2","href":"/tutorials/topics/robotics/edgeimpulse-ros2-integration"},{"title":"Run Edge Impulse vision on a JetBot with Rubik Pi","href":"/tutorials/topics/robotics/wheeled-robot-ros2-integration"},{"title":"Run Edge Impulse pick and place with UNO Q Braccio","href":"/tutorials/topics/robotics/robotic-arm-ros2-integration"},{"title":"Build a mobile inspection system with Edge Impulse and ROS 2","href":"/tutorials/topics/robotics/wheeled-inspection-system"}]}]},{"group":"TOOLS","icon":"screwdriver-wrench","pages":[{"group":"APIs","pages":[{"group":"Ingestion","pages":[{"title":"Ingest structured label data","href":"/tutorials/tools/apis/ingestion/ingest-structured-label-data"}]},{"group":"Studio","pages":[{"title":"Collect data from a device","href":"/tutorials/tools/apis/studio/collect-data-device"},{"title":"Customize the EON Tuner","href":"/tutorials/tools/apis/studio/customize-the-eon-tuner"},{"title":"Deploy a model","href":"/tutorials/tools/apis/studio/deploy-model"}]}]},{"group":"Studio Python API bindings","pages":[{"title":"Use the Python API bindings","href":"/tutorials/tools/api-bindings/studio/python/use-python-api-bindings"}]},{"group":"Studio Python SDK","pages":[{"title":"Use the Edge Impulse Python SDK to upload and download data","href":"/tutorials/tools/sdks/studio/python/upload-download-data"},{"title":"Use the Edge Impulse Python SDK to run the EON Tuner","href":"/tutorials/tools/sdks/studio/python/run-eon-tuner"},{"title":"Use the Edge Impulse Python SDK with Hugging Face","href":"/tutorials/tools/sdks/studio/python/use-hugging-face"},{"title":"Use the Edge Impulse Python SDK with SageMaker Studio","href":"/tutorials/tools/sdks/studio/python/use-sagemaker-studio"},{"title":"Use the Edge Impulse Python SDK with TensorFlow and Keras","href":"/tutorials/tools/sdks/studio/python/use-tf-keras"},{"title":"Use the Edge Impulse Python SDK with Weights \u0026 Biases","href":"/tutorials/tools/sdks/studio/python/use-wandb"}]}]},{"group":"Inference libraries","pages":[]},{"group":"INTEGRATIONS","icon":"handshake","pages":[{"title":"AWS IoT Greengrass","href":"/tutorials/integrations/aws-greengrass"},{"title":"Deploy PyTorch models with ExecuTorch","sidebarTitle":"ExecuTorch","href":"/tutorials/integrations/executorch"},{"title":"NVIDIA Omniverse","href":"/tutorials/integrations/nvidia-omniverse"},{"title":"syntheticAIdata Vision Datasets","href":"/tutorials/integrations/syntheticaIdata-vision-datasets"},{"title":"Weights \u0026 Biases","href":"/tutorials/integrations/weights-and-biases"},{"title":"ROS 2 (edgeimpulse_ros)","sidebarTitle":"ROS 2","href":"/tutorials/integrations/ros2"}]}]},{"tab":"Projects","pages":[{"title":"Projects","href":"/projects"}]},{"tab":"Datasets","pages":[{"title":"Datasets","href":"/datasets"}]}]},"basePath":"","title":"Environmental sensor fusion - Edge Impulse Documentation","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DXXFP6nH.js","DynamicMarkdown-B54_zNBF.js","zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}