This tutorial demonstrates how to set up time-series forecasting using AWS SageMaker with environmental data collected from Particle devices. Using the Grove Temperature & Humidity Sensor and AWS SageMaker's automated machine learning capabilities, you can predict future environmental trends based on temperature and humidity data. This is useful for applications such as weather prediction, industrial monitoring, and smart agriculture.
To complete this tutorial, you will need:
- AWS Account with access to SageMaker services.
- Particle Feather-based Development Board (e.g., Argon, Boron).
- Grove Temperature & Humidity Sensor (DHT11) and Particle Grove Shield for connecting the sensor.
- Particle Console Access to configure cloud services and integrations.
- Attach the Grove Temperature & Humidity Sensor (DHT11) to the Particle Grove Shield.
- Connect the Grove Shield to your Particle device (e.g., Argon or Boron).
- Set up your Particle device in the Particle Console to ensure it is online and ready to transmit data.
- In the Particle Console, navigate to your device's product and open the Integrations section.
- Use the
app.yaml
configuration file provided in this repository to set up the necessary Cloud Logic, Ledger Configuration, and Integrations. - Deploy the
process_temperature_data.js
function to process the temperature data in the cloud.
- In the
app.yaml
file, configure the AWS SageMaker Timeseries Forecasting integration:- Set up the AWS region and data source URL for the integration.
- Define the target column for forecasting (
temperature
) and the forecast horizon.
- Securely store your AWS credentials (
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
) and the SageMaker access token (AWS_SAGEMAKER_TOKEN
) in Vault.
- Deploy the Particle device firmware to begin data collection.
- In the Particle Console, monitor data transmission to ensure that temperature and humidity readings are being sent to AWS SageMaker.
- View the forecasting results in AWS SageMaker to analyze trends in temperature changes.
The AWS SageMaker integration is set up to use SageMaker Autopilot for time-series forecasting. Key details include:
- Forecast Horizon: The number of future time periods to predict.
- Data Source: URL to the collected data stored in the Particle Cloud.
- Instance Type: Specifies the SageMaker instance used for processing (e.g.,
ml.t2.medium
).