
When you collect and label activities - like walking, running - make sure that you walk, run, etc. You will see what I mean when you get to that part. Make sure you only cut and paste the WekaClassifier class and not all the other information provided by WEKA.
WEKA JAR JAVA ANDROID
WEKA JAR JAVA CODE
The training phase is illustrated in the figure below - don't panic: we do not expect you to write low-level signal processing functions such as compute the FFT - we give out code to do that.
WEKA JAR JAVA HOW TO
I will show how to collect activity data using MyRuns Data Collector and teach you how to play with Weka GUI to train your own classifier. In what follows, we only discuss the training phase where we collect data and create a classification model. calling the WekaClassifier inputting the feature vector - this is called the classification phase and produces an inference (e.g.adding the maximum value of the magnitude across all 64 individual magnitudes to the feature vector and.segmenting features into batches of 64 features in a buffer - this is called the feature vector.computing the FFT coefficient of the magnitude - this is called a feature.computing the magnitude from a single x, y, z reading.reading the x, y, z sensor data from the SensorManager.Other parts of the pipeline are as follows (include the WekaClassifier): Second, the classification or inference phase where we embed the WekaClassifier produced by WEKA into our MyRuns5 project in a file called WekaClassifier.java - this forms one component of the classification pipeline that runs as part of your application.Technically, this technique is called "supervised learning" in machine learning (ML) parlance. First, the training phase where we collect data using the MyRuns data collector (which you are given) and label the data (e.g., walking) and then feed the resulting sensor data into WEKA(Waikato Environment for Knowledge Analysis - a very cool machine learning tool) which, in turn produces a classifier (called the WekaClassifier java class in our MyRuns5) that we embedded in our MyRuns5 to form a component in what is called the activity recognition "classification pipeline.In this lecture, we will discuss the training phase of activity recognition the complete machine learning task of building a classification system that can automatically infer your activity (e.g., standing, walking, running) breaks down into two sequential phases:
