GithubHelp home page GithubHelp logo

cjackie / activitiesprediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 3.01 MB

Stony Brook University ESE 440/441 project. The implementation is according to journal paper: http://dl.acm.org/citation.cfm?id=2973752

Java 43.48% Python 55.98% Shell 0.54%

activitiesprediction's People

Contributors

cjackie avatar kbumsik avatar rogerlin123 avatar

Watchers

 avatar  avatar  avatar

Forkers

rogerlin123

activitiesprediction's Issues

Split DataSet

currently DataSet is:

class DataSet(Base):
    __tablename__ = 'DataSet'

    id = Column(Integer, primary_key=True)
    label_id = Column(Integer, ForeignKey('ActivityLabel.id'))
    position_id = Column(Integer, ForeignKey('BodyPosition.id'))
    timestamp = Column(Integer, nullable=False)
    ax = Column(Float, nullable=False)
    ay = Column(Float, nullable=False)
    az = Column(Float, nullable=False)
    gx = Column(Float, nullable=False)
    gy = Column(Float, nullable=False)
    gz = Column(Float, nullable=False)
    mx = Column(Float, nullable=False)
    my = Column(Float, nullable=False)
    mz = Column(Float, nullable=False)

But we need to split this class into two classes:

  • accelerometer data
  • gyroscope data

We don't need mx, my, mz

TextView UI is updated in a AsyncTask

Currently the CommTask class in the mobile app updates two TextView instances. Clearly this is not a good class design. It is not an urgent task but we should move it the the main UI task someday. We can achieve that using IPC between threads

Server API

the APIs are specified by here

we should change the send message to:

SEND <type> <length of payload> <label> [body position]\LF
<CSV file payload>

and type is either 'accelerometer' or 'gyroscope'.

CSV file payload

timestamp1, x1, y1, z1
timestamp2, x2, y2, z2
.
.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.