TLBC: Two-Level Behavior Classification

Share:

Contains functions for training and applying two-level random forest and hidden Markov models for human behavior classification from raw tri-axial accelerometer and/or GPS data. Includes functions for training a two-level model, applying the model to data, and computing performance.

Author
Katherine Ellis
Date of publication
2015-10-14 18:13:22
Maintainer
Katherine Ellis <kellis@ucsd.edu>
License
GPL-2
Version
1.0

View on CRAN

Man pages

alignStart
Function to align start of a window
annotationsToLabels
Function to convert bout-level annotations to instance-level...
calcPerformance
Function to calculate performance of a classification model
classify
Function to classify accelerometer and/or GPS data
clearFiles
Clear files
computeEmissionProbs
Compute emission probabilities
computeOneAccFeat
Compute one acceleration feature
computeOneGPSFeat
Compute one GPS feature
computePriorProbs
Compute prior probabilities
computeTransProbs
Compute transition probabilities
distance
Distance
extractAccelerometerFeatures
Extract accelerometer features
extractAccFeatsFile
Extract accelerometer features from a file
extractFeatsPALMSDir
Extract GPS features from a PALMS directory
extractFeatsPALMSOneFile
Extract GPS features from a PALMS file
extractLabelsDir
Extract labels from a directory
extractLabelsSingleFile
Extract labels from a directory
getDateFmt
Get date format
hmm
Hidden Markov model
isFeatureDirectory
Is feature directory?
isInstanceFormat
Is instance format?
loadData
Load data
loadFeatures
Load features
loadLabels
Load labels
loadModel
Load model
loadPredictions
Load predictions
loadPredictionsAndLabels
Load predictions and labels
looXval
Function to perform leave-one-out cross-validation
rf
Random Forest
senseCamLabels
SenseCam Labels
sensorsToFeatures
Function to extract featurese from raw sensor data
stratSample
Stratified sample
testHMM
Test a hidden Markov model
testRF
Test a random forest classifier
testTwoRFs
Test two random forest classifiers
TLBC-package
Two-Level Behavior Classification
trainHMM
Train a hidden Markov model
trainModel
Function to train a two-level model from accelerometer and/or...
trainRF
Train a random forest classifier
winSize
Window Size
writePredictions
Write predictions to a file

Files in this package

TLBC
TLBC/NAMESPACE
TLBC/R
TLBC/R/acc_features.R
TLBC/R/wrappers.R
TLBC/R/GPS_features.R
TLBC/R/file_manipulation.R
TLBC/R/randomForest.R
TLBC/R/HMM.R
TLBC/R/labels.R
TLBC/R/performance.R
TLBC/README.md
TLBC/MD5
TLBC/DESCRIPTION
TLBC/man
TLBC/man/loadLabels.Rd
TLBC/man/alignStart.Rd
TLBC/man/getDateFmt.Rd
TLBC/man/TLBC-package.Rd
TLBC/man/computeTransProbs.Rd
TLBC/man/loadModel.Rd
TLBC/man/loadData.Rd
TLBC/man/senseCamLabels.Rd
TLBC/man/rf.Rd
TLBC/man/computeOneGPSFeat.Rd
TLBC/man/testTwoRFs.Rd
TLBC/man/hmm.Rd
TLBC/man/loadPredictions.Rd
TLBC/man/loadFeatures.Rd
TLBC/man/sensorsToFeatures.Rd
TLBC/man/extractFeatsPALMSDir.Rd
TLBC/man/trainHMM.Rd
TLBC/man/classify.Rd
TLBC/man/extractLabelsDir.Rd
TLBC/man/distance.Rd
TLBC/man/loadPredictionsAndLabels.Rd
TLBC/man/trainModel.Rd
TLBC/man/testRF.Rd
TLBC/man/extractFeatsPALMSOneFile.Rd
TLBC/man/computeOneAccFeat.Rd
TLBC/man/isInstanceFormat.Rd
TLBC/man/extractLabelsSingleFile.Rd
TLBC/man/extractAccelerometerFeatures.Rd
TLBC/man/extractAccFeatsFile.Rd
TLBC/man/calcPerformance.Rd
TLBC/man/computeEmissionProbs.Rd
TLBC/man/isFeatureDirectory.Rd
TLBC/man/stratSample.Rd
TLBC/man/writePredictions.Rd
TLBC/man/computePriorProbs.Rd
TLBC/man/trainRF.Rd
TLBC/man/winSize.Rd
TLBC/man/clearFiles.Rd
TLBC/man/annotationsToLabels.Rd
TLBC/man/looXval.Rd
TLBC/man/testHMM.Rd