COMP90024-2019S1-Team7-TrackerHub
COMP90024-2019S1-Team7-TrackerHub copied to clipboard
CCC Group 7
Team Members:
Video links
Ansible
Part 1: https://youtu.be/2shxCohju8Q
Part 2: https://youtu.be/JHfxmtzU_g4
Part 3: https://youtu.be/pWH7eOh666s
Frontend presentation
https://youtu.be/M5xhnEHwKNg
PPT
https://docs.google.com/presentation/d/1Qh8GSjCTdOJmY1ZWcf8TvxqVexH1DuxgqklMqmUXJvs/edit#slide=id.g5173a8b583_0_62
Interesting Case:
Track: CafeDiStasio
2014-09-02 ~ 2015-5-31
Tag: neutral / wrath / neutral / oysters
Project Structure
FrontEnd
- Vue
- Data visualization
- Interface joint debugging
BackEnd
- Django(8080) -> Nginx reverse proxy port 80 /api
- CouchDB related interface
- Object Storage interface
- Data query interface
- Interface joint debugging
Spider
- Apply for the Twitter Developer API
- Run the script continuously
- Grab data
- Data preprocessing
- Image preprocessing
- Save the image to Object Storage (call backend interface)
- Twitter content is stored in the first level of CouchDB (call backend interface)
Natural Language Processing
- Model and metrics: Wu-Palmer similarity, NLTK, Profanity, TextBlob
- Implement Wu-Palmer similarity on Wordnet to identify the sexual-suggestion message in tweet text
- Use Profanity package to identify the violent message in tweet text
- Use TextBlob to identify the sentiment of the tweet text
- Run the script periodically (once per 30mins)
- Grab data from backend
- Tokenization of tweet text
- Implement three kinds of analytics on each tweet
- Upload the result to the second level CouchDB (call backend interface)
Machine Learning
- Select model: NSFW, Food Identification
- Train model
- Run the script periodically (once per 30mins)
- Scan the first level CouchDB (call backend interface)
- Retrive pictures from the back end
- Image Classification
- Upload the result to the second level CouchDB (call backend interface)
Deployment Operation
- Ansible creates 4 hosts with one click
- Docker runs 3 CouchDB instances
- Ansible controls Docker-compose with services on each instances
Server Arrangement
Server1: 172.26.37.225
CouchDB/ couchdb:2.3.0
Frontend/
Nginx/ nginx:lastest
CAdvisor/
Server2: 172.26.38.110
CouchDB/couchdb:2.3.0
Backend/ lihuanz/my-backend:lastest
Spider/
CAdvisor/
Server3: 172.26.38.1
CouchDB/couchdb:2.3.0
Backend/
NLP/
CAdvisor/
Server4: 172.26.38.11
MachineLearning/
Grafana/ grafana/grafana:lastest
InfluxDB/ influxdb:lastest
cAdvisor/ google/cadvisor:lastest