In this project you will design a robust activity recogonition system based on the smartphones. As you know mobile devices have accelerometer as the sensor which collects the activities. These activities can be classified using K-nearest neighbour.
- Pandas
- Numpy
- Matplotlib
- Scikit Learn
We will be using a human-activity-recognition-with-smartphones from the Kaggle platform which has a very good collection of datasets.
The file we will be using is present in following directory : input/
It is under license CCO and it is by UCI machine learning repositories
For each record in the dataset it is provided:
- Triaxial acceleration from the accelerometer (total acceleration) and the estimated body acceleration.
- Triaxial Angular velocity from the gyroscope.
- A 561-feature vector with time and frequency domain variables.
- Its activity label.
- An identifier of the subject who carried out the experiment.
- Importing Libraries
- Exploring the Dataset
- Exploratory Data Analysis
- Data Preprocessing
- Model Building
- KNeighborsClassifier
- Evaluation
- Conclusion
In a terminal or command window, navigate to the top-level project directory Activity_recognition_KNN/
(that contains this README) and run one of the following commands:
ipython notebook Activity recognition_KNN.ipynb or
jupyter notebook Activity recognition_KNN.ipynb
This will open the Jupyter Notebook software and project file in your browser.