An example of using NuPIC to detect anomalies in Google Hangouts conversations.
-
Install dependencies.
Follow installation instructions for Unicorn.
Install matplotlib.
-
Install nupic.hangouts.
python setup.py install --user
-
Get your data.
Visit Google Takeout, select only the "Hangouts" option, and download. Extract the
Hangouts.json
file from the downloaded data. -
Process your data.
python -m nupic_hangouts.scripts.process PATH/TO/Hangouts.json data
-
Run a conversation through a NuPIC model and plot results.
Pick a conversation in the
data
directory (one of the.csv
files). The number in the name of the.csv
file indicates how many total messages are in the conversation../model.py PATH/TO/CONVERSATION.csv output