V4.1.2b - V0.23 of CNN
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="uk.org.openseizuredetector"
|
||||
android:versionCode="114"
|
||||
android:versionName="4.1.2a">
|
||||
android:versionName="4.1.2b">
|
||||
<!-- android:allowBackup="false" -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
||||
|
||||
BIN
app/src/main/assets/cnn_v0.23.tflite
Normal file
BIN
app/src/main/assets/cnn_v0.23.tflite
Normal file
Binary file not shown.
@@ -231,7 +231,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
if (actionStr.equals("showDataSharingDialog")) {
|
||||
showDataSharingDialog();
|
||||
}
|
||||
Log.i(TAG, "onNewIntent - extra actionstr is "+actionStr);
|
||||
Log.i(TAG, "onNewIntent - extra actionstr is " + actionStr);
|
||||
} else {
|
||||
Log.i(TAG, "onNewIntent - extra actionstr is null - starting normally");
|
||||
}
|
||||
@@ -517,14 +517,14 @@ public class MainActivity extends AppCompatActivity {
|
||||
if (mConnection.mBound) {
|
||||
if (mConnection.mSdServer.mSdDataSourceName.equals("Phone")) {
|
||||
if (mConnection.mSdServer.mLogNDA)
|
||||
tv.setText(getString(R.string.ServerRunningOK) + getString(R.string.DataSource) + " = " + "Phone" + "\n" + "(Demo Mode)"+"\nNDA Logging");
|
||||
tv.setText(getString(R.string.ServerRunningOK) + getString(R.string.DataSource) + " = " + "Phone" + "\n" + "(Demo Mode)" + "\nNDA Logging");
|
||||
else
|
||||
tv.setText(getString(R.string.ServerRunningOK) + getString(R.string.DataSource) + " = " + "Phone" + "\n" + "(Demo Mode)");
|
||||
tv.setBackgroundColor(warnColour);
|
||||
tv.setTextColor(warnTextColour);
|
||||
} else {
|
||||
if (mConnection.mSdServer.mLogNDA)
|
||||
tv.setText(getString(R.string.ServerRunningOK) + getString(R.string.DataSource) + " = " + mConnection.mSdServer.mSdDataSourceName+"\nNDA Logging");
|
||||
tv.setText(getString(R.string.ServerRunningOK) + getString(R.string.DataSource) + " = " + mConnection.mSdServer.mSdDataSourceName + "\nNDA Logging");
|
||||
else
|
||||
tv.setText(getString(R.string.ServerRunningOK) + getString(R.string.DataSource) + " = " + mConnection.mSdServer.mSdDataSourceName);
|
||||
tv.setBackgroundColor(okColour);
|
||||
@@ -645,7 +645,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
// Pebble Connected Phrase - use for HR if active instead.
|
||||
tv = (TextView) findViewById(R.id.pebbleTv);
|
||||
//if (mConnection.mSdServer.mSdData.mHRAlarmActive) {
|
||||
if (mConnection.mSdServer.mSdData.mO2Sat>0) {
|
||||
if (mConnection.mSdServer.mSdData.mO2Sat > 0) {
|
||||
tv.setText(getString(R.string.HR_Equals) + mConnection.mSdServer.mSdData.mHR + " bpm\n"
|
||||
+ "O2 Sat = " + mConnection.mSdServer.mSdData.mO2Sat + "%");
|
||||
} else {
|
||||
@@ -706,6 +706,12 @@ public class MainActivity extends AppCompatActivity {
|
||||
// We start off with it set to OK, then check for several different abnormal conditions
|
||||
// in turn - the last one that is active is the one that is displayed.
|
||||
tv = (TextView) findViewById(R.id.remoteDbTv);
|
||||
if (mConnection.mSdServer.mLogNDA)
|
||||
tv.setText(getString(R.string.data_sharing_status)
|
||||
+ ": "
|
||||
+ getString(R.string.data_sharing_setup_ok)
|
||||
+ ": " + "NDA Logging");
|
||||
else
|
||||
tv.setText(getString(R.string.data_sharing_status)
|
||||
+ ": "
|
||||
+ getString(R.string.data_sharing_setup_ok));
|
||||
@@ -784,13 +790,13 @@ public class MainActivity extends AppCompatActivity {
|
||||
specRatio = 0;
|
||||
|
||||
long pSeizurePc;
|
||||
pSeizurePc = (long)(mConnection.mSdServer.mSdData.mPseizure * 100);
|
||||
Log.d(TAG,"pSeizurePc="+pSeizurePc+", mPseizure="+mConnection.mSdServer.mSdData.mPseizure);
|
||||
pSeizurePc = (long) (mConnection.mSdServer.mSdData.mPseizure * 100);
|
||||
Log.d(TAG, "pSeizurePc=" + pSeizurePc + ", mPseizure=" + mConnection.mSdServer.mSdData.mPseizure);
|
||||
((TextView) findViewById(R.id.powerTv)).setText(getString(R.string.PowerEquals) + mConnection.mSdServer.mSdData.roiPower +
|
||||
" (" + getString(R.string.Threshold) + "=" + mConnection.mSdServer.mSdData.alarmThresh + ")");
|
||||
((TextView) findViewById(R.id.spectrumTv)).setText(getString(R.string.SpectrumRatioEquals) + specRatio +
|
||||
" (" + getString(R.string.Threshold) + "=" + mConnection.mSdServer.mSdData.alarmRatioThresh + ")");
|
||||
((TextView) findViewById(R.id.pSeizureTv)).setText("Seizure Probability = "+pSeizurePc+"%");
|
||||
((TextView) findViewById(R.id.pSeizureTv)).setText("Seizure Probability = " + pSeizurePc + "%");
|
||||
|
||||
ProgressBar pb;
|
||||
Drawable pbDrawable;
|
||||
@@ -830,7 +836,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
pb.setProgressDrawable(pbDrawable);
|
||||
|
||||
|
||||
|
||||
// Fault Conditions - We override the values in the UI because we do not know
|
||||
// if the stored ones are correct or not with a fault present.
|
||||
if ((mConnection.mSdServer.mSdData.alarmState == 4) ||
|
||||
|
||||
@@ -25,7 +25,7 @@ import java.util.Map;
|
||||
|
||||
public class SdAlgNn {
|
||||
private final static String TAG = "SdAlgNn";
|
||||
private final static String MODEL_PATH = "cnn_v0.22.tflite";
|
||||
private final static String MODEL_PATH = "cnn_v0.23.tflite";
|
||||
private String mUrlBase = "https://osdApi.ddns.net";
|
||||
private InterpreterApi interpreter;
|
||||
private Context mContext;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<string name="app_name">OpenSeizureDetector</string>
|
||||
<string name="changelog">
|
||||
"\n
|
||||
\nV4.1.0 - Added Machine Learning (Artificial Intelligence) Detection Algorithm Option (CNN V0.12)
|
||||
\nV4.1.2 - Added Machine Learning (Artificial Intelligence) Detection Algorithm Option (CNN V0.23) and 'Normal Daily Activity (NDA) logging function
|
||||
\nV4.0.7 - Improvements to Data Sharing data log manager screen.
|
||||
- Introduced the <b>Data Sharing</b> feature to allow users to share their seizure and false alarm data
|
||||
with researchers to help improve the system.<br/>
|
||||
|
||||
Reference in New Issue
Block a user