• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 8 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A context awareness framework for Android platform

Myna

Android 平台情景感知框架

GitHub license

Myna 项目中包含一个测试 Demo 工程:demo-myna, 将该工程和 Myna 项目本身导入到 Android Studio 中,就可以开始调试了。

Myna 提供了两套接口:

  • 面向开发者的接口:开发者只需要简单的接口调用,就能在应用程序中获取实时识别的用户行为状态。
  • 面向数据科学家的接口:数据科学家可以很方便地添加新的识别算法,在运行时调整订阅的传感器类型、采样频率和采样时长,而无需关心 Android 系统相关的传感器数据订阅细节。

更新 2017-07-12

  • 支持下面 6 种行为类型:
    1. Walking
    2. Running
    3. Bus
    4. Subway
    5. Car
    6. Stationary
  • 新增 XGBoost 和基于 Tensorflow 的 LSTM 分类模型。
    1. Dataset 目录下有数据集下载链接、数据处理脚本和 XGBoost 模型训练脚本。
    2. 使用 LSTM 模型需要时需要提供训练好的模型和 Tensorflow 的动态库以及 Java Interface 包。Tensorflow 官方已经提供了通过 AAR 格式依赖 Tensorflow 动态库和 interface 的方法,Myna 已经更新使用该方式。具体请参考:Android TensorFlow support。LSTM 预训练模型位于测试工程的 assets 目录下。由于训练数据量不够,该模型的准确率较低,仅可用于 End2End 方案验证,请勿用于生产环境。
  • 增加手持状态检测。

Myna 使用随机森林分类算法的一种开源实现--Dice 进行的实时用户行为识别:

当使用 XGBoost 进行分类时。模型的 metrics 为:

Precision 0.909969288145
Recall 0.908256880734
f1_score 0.90816711949
confusion_matrix
[[ 93   0   1   0   0   0]
 [  0 115   1   1   1   0]
 [  0   0 102   3   5   0]
 [  3   0   9  84   6   2]
 [  2   0   7  11  85   1]
 [  0   0   4   3   0 115]]
predicting, classification error=0.091743

Confusion matrix:

ROC:

集成文档

快速集成文档

Roadmap

2017 年

  • 增加对更多行为的识别能力。

License

开源协议: Apache 2.0

Copyright 2016 TalkingData

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

iview-weapp

一套高质量的微信小程序 UI 组件库
Less
6,587
star
2

inmap

大数据地理可视化
JavaScript
2,772
star
3

owl

Distributed monitoring system
Go
838
star
4

Fregata

A light weight, super fast, large scale machine learning library on spark .
Scala
681
star
5

YourView

YourView is a desktop App in MacOS based on Apple SceneKit. You may use it to view iOS App's view hierarchy 3D.
Objective-C
628
star
6

owl-frontend

Vue
63
star
7

pecker-c

🐦前端应用异常监控、分析平台
TypeScript
52
star
8

tap2debug

An iOS SpringBoard tweak,double click to start the debug server.
Logos
28
star
9

AppAnalytics_SDK_ReactNative

TalkingData react-native SDK封装层
Objective-C
19
star
10

fsd

CSS
14
star
11

rxloop

rxloop = Redux + redux-observable (Inspired by dva)
JavaScript
10
star
12

Shrike

Docker扁平二层网络工具与Swarm集群管理工具
Go
8
star
13

eago

Distributed internal O&M and it platform, Refactoring by Golang based on micro service.
Go
7
star
14

AppAnalytics_SDK_Unity

C#
7
star
15

AppAnalytics_SDK_Hybrid

Objective-C
6
star
16

magpie

Magpie is a command line tool for deploying and managing Yarn on Docker cluster.
Go
6
star
17

AppAnalytics_SDK_Plugin

一款基于TalkingData AppAnalytics SDK的示例代码生成插件,专注于为开发者提效,使集成TalkingData SDK变得简单高效。
Java
5
star
18

analytics-openapi-example

TalkingData Analytics openapi调用示例
Java
5
star
19

AppAnalytics_SDK_Cordova

Objective-C
4
star
20

TalkingDataSDK_Flutter

Dart
3
star
21

FragmentDemo

Java
3
star
22

t-design

(Inspired by Ant Design Pro)
CSS
2
star
23

flclover

Build better enterprise frameworks and apps with Node.js & Koa2
JavaScript
2
star
24

AdTracking_SDK_Cordova

TalkingData ADT cordova 插件
Objective-C
1
star
25

SDKMaven

TalkingData SDK Maven Repository
1
star
26

MultiLayerStacking

sklearn-API friendly multi-layer stacking Python module
Python
1
star
27

rxloop-loading

rxloop loading plugin
JavaScript
1
star
28

AdTracking_SDK_Unity

C#
1
star
29

TalkingDataSDK_Unity

C#
1
star
30

todo-app-with-rxloop

todo app with rxloop
JavaScript
1
star