Giter VIP home page Giter VIP logo

fetal_heart_monitoring's Introduction

胎心数据分析

数据分析

  • info 表, 大多数为空或者全部为0或者1的字段:
  • jiasutimes == 0, jiansutimes == 0, wanjiansuzhenfu == NaN, wanjiansuzhouqi == NaN, wanjiansutimes == 0
  • info 表,iddata 表对应
  • 统计得nst_result == 1,2,3,4 分别对应正常(18699/13309),可疑(13368/8867),异常(28/15),无法判读(85/6)

Requirements

  • python (2.7.10)
  • scikit-learn (0.17.1)
  • numpy (1.11.0+)
  • pandas (0.18.1)
  • tensorflow (1.1.0) / theano (v0.6.9)
  • keras (2.0.9)
  • CUDA (8.0)
  • cuDNN (V6)

数据处理

问题

  • 数据缺失严重,存在很多连续的零值

思路

  • 将零值用整体平均值替代,效果不好
  • 发现很多零都是连续的,用零两端的平均值作为替代,效果不好
  • 用朴素贝叶斯方法来处理零值
  • 用KNN来对于缺失的点,找到与其类似的记录的点在缺失的时候的历史发生情况

神经网络

  • fetal_cnn.py 卷积神经网络
  • fetal_mlp.py 多层感知机

代码说明

  • code/import.py 将数据库中的数据导出成csv文件
  • code/svm.py 基于所有的y以及info中某些字段的svm
  • run.sh 执行输入导入、训练全过程

运行说明

  1. 克隆代码

    git clone [email protected]:mengkeli/fetal_heart_monitoring.git
    
  2. data/info.csvdata/data.csv已经是导出好的全部特征文件,这两个文件数据损失严重,弃用 data/data_gzip.csv是从数据库导出的文件,作为实验数据,24360行 data/data_gzip.csv.filterdata/data_gzip.csv过滤零值之后的数据 data/data_gzip.csv.filter.meandata/data_gzip.csv将零值用整体均值填充之后的数据 data_zero_filer_03_50.csv 剔除零值超过30%的,连续零值超过50个,剩余22199条,bad_row = 2158, zero_row = 3

  3. code/svm.py为所有特征的svm, 目前正确率不是很高, 期待大家的调参结果

Evaluation

See doc/evaluation.xlsx

Reference

代码目录说明

TODO: 待整理

fetal_heart_monitoring's People

Contributors

mengkeli avatar

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.