Giter VIP home page Giter VIP logo

menstruationn's Introduction

MenstruatioNN

A simple LSTM model, to predict menstrual cycles and length of menstruation. Powered by Keras.

Requirements

  • Python3
  • Keras

Data

I use the log file of the app Period Tracker. For privacy reasons, I am not going to share my personal data, but I am happy to make a read function for the log file of a different app, if you provide me the format. The format of this log file is:

D1 M1, 20YY Period Starts D2 M1, 20YY Period Ends D3 M2, 20YY Period Starts D4 M2, 20YY Period Ends

There is also a file with synthetic data, which is used ofr training.

Results

Train set Train set size Test set size Epochs Acc. menstr. day Acc. menst. length
Real data (no augmentation) 78 20 4000 0.25 0.45
Real data (x5) 392 98 4000 0.98 0.96
Real data (x5) shuffled 392 98 4000 0.2 0.46
Synthetic data 1988 98 4000 0.14 0.38
Synthetic data + Real data 2066 98 4000 0.67 0.86
Synthetic data + Real data (x5) 2380 98 4000 0.98 0.96

References

Brownlee, Jason. “Multi-Step Time Series Forecasting with Long Short-Term Memory Networks in Python,” August 5, 2019. https://machinelearningmastery.com/multi-step-time-series-forecasting-long-short-term-memory-networks-python/.

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.