Skip to content

Commit

Permalink
feat: update surface classification model
Browse files Browse the repository at this point in the history
  • Loading branch information
felixerdy committed Jul 17, 2024
1 parent ca6ff5c commit 2c3ce9f
Show file tree
Hide file tree
Showing 7 changed files with 522 additions and 530 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=large-window_inferencing
version=1.0.4
version=1.0.7
author=EdgeImpulse Inc.
maintainer=EdgeImpulse Inc.
sentence=Arduino library for running machine learning models
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,22 @@

#include "edge-impulse-sdk/classifier/ei_model_types.h"

const uint16_t ei_classifier_anom_axes[] = { 34, 39, 50, 51 };
const uint16_t ei_classifier_anom_axes[] = { 13, 22, 35, 39 };

// (before - mean) / scale
const float ei_classifier_anom_scale[4] = { 0.5416533563239591, 0.09015729639833903, 1.0294240433862007, 1.096378936020027 };
const float ei_classifier_anom_mean[4] = { 0.03455881324858127, 0.10589062549018612, -2.209211271086283, -2.3116334193141053 };
const ei_classifier_anom_cluster_t ei_classifier_anom_clusters[8] = {
{ ( float[4] ) { 1.0734399557113647, -0.023915553465485573, -0.01212439313530922, -0.1604887992143631 }, 2.5846379257650534 },
{ ( float[4] ) { -0.5077088475227356, -0.3683217465877533, -0.003865385428071022, -0.026378273963928223 }, 1.3933135298881023 },
{ ( float[4] ) { -0.4711293876171112, -0.7223562598228455, -0.9130646586418152, -0.844504177570343 }, 1.257243963664562 },
{ ( float[4] ) { 0.03918825462460518, 0.3383142650127411, 0.788090705871582, 0.7845598459243774 }, 1.8856774835956625 },
{ ( float[4] ) { 1.2283564805984497, 1.3667869567871094, 1.2501126527786255, 1.2151165008544922 }, 1.994476336738268 },
{ ( float[4] ) { -1.6664172410964966, -0.841610312461853, -0.8762819170951843, -0.8702648282051086 }, 1.553957906202182 },
{ ( float[4] ) { 1.3542894124984741, -1.1588361263275146, -3.346615791320801, -3.0488224029541016 }, 2.6641038204790792 },
{ ( float[4] ) { 0.4166669547557831, 4.2802863121032715, 2.0104823112487793, 2.0778849124908447 }, 1.1217992889063322 },
const float ei_classifier_anom_scale[4] = { 5.022338740021979, 1.409742726925236, 1.3728148677488132, 0.6860386713574759 };
const float ei_classifier_anom_mean[4] = { 4.4686170229592435, 0.7943569368708361, 0.9295556043701224, 0.6139560103089761 };
const ei_classifier_anom_cluster_t ei_classifier_anom_clusters[10] = {
{ ( float[4] ) { -0.8655205368995667, -1.8734816312789917, -1.9383792877197266, -0.8774295449256897 }, 0.9512056957476054 },
{ ( float[4] ) { -0.6750153303146362, -0.5344935059547424, -0.4930539131164551, -0.745311975479126 }, 1.301672599327782 },
{ ( float[4] ) { -0.29219523072242737, 0.24824808537960052, 0.2507035434246063, -0.35861048102378845 }, 0.7174908771148529 },
{ ( float[4] ) { -0.5285941362380981, -0.18123586475849152, 0.01024018693715334, -0.5650193095207214 }, 0.8779361042118226 },
{ ( float[4] ) { 1.2556055784225464, 1.0292190313339233, 0.9462552666664124, 1.5171805620193481 }, 1.177730696835654 },
{ ( float[4] ) { 3.377385377883911, 1.3539220094680786, 1.0975382328033447, 2.8711116313934326 }, 1.059227816336539 },
{ ( float[4] ) { 0.5584284663200378, 0.7297040224075317, 0.895423948764801, 0.953728437423706 }, 0.9690486347416549 },
{ ( float[4] ) { -0.8837217688560486, -2.826908826828003, -2.955561876296997, -0.8915848135948181 }, 0.8657863384171247 },
{ ( float[4] ) { 2.0825772285461426, 1.2021300792694092, 0.8984962105751038, 2.0961031913757324 }, 1.0123312340373454 },
{ ( float[4] ) { 0.13108119368553162, 0.6290543675422668, 0.5077559947967529, 0.1843695342540741 }, 0.9966256376329927 },
};

#endif // _EI_CLASSIFIER_ANOMALY_METADATA_H_
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#define EI_CLASSIFIER_PROJECT_ID 440960
#define EI_CLASSIFIER_PROJECT_OWNER "Paula"
#define EI_CLASSIFIER_PROJECT_NAME "large-window"
#define EI_CLASSIFIER_PROJECT_DEPLOY_VERSION 4
#define EI_CLASSIFIER_PROJECT_DEPLOY_VERSION 7
#define EI_CLASSIFIER_NN_INPUT_FRAME_SIZE 78
#define EI_CLASSIFIER_RAW_SAMPLE_COUNT 31
#define EI_CLASSIFIER_RAW_SAMPLES_PER_FRAME 6
Expand All @@ -80,12 +80,12 @@
#define EI_CLASSIFIER_INPUT_HEIGHT 0
#define EI_CLASSIFIER_INPUT_FRAMES 0
#define EI_CLASSIFIER_NN_OUTPUT_COUNT 5
#define EI_CLASSIFIER_INTERVAL_MS 95.05703422053233
#define EI_CLASSIFIER_INTERVAL_MS 96
#define EI_CLASSIFIER_LABEL_COUNT 5
#define EI_CLASSIFIER_HAS_ANOMALY EI_ANOMALY_TYPE_KMEANS
#define EI_CLASSIFIER_HAS_VISUAL_ANOMALY 0
#define EI_CLASSIFIER_SINGLE_FEATURE_INPUT 1
#define EI_CLASSIFIER_FREQUENCY 10.52
#define EI_CLASSIFIER_FREQUENCY 10.416666666666666
#define EI_CLASSIFIER_HAS_MODEL_VARIABLES 1
#define EI_CLASSIFIER_THRESHOLD 0.6

Expand Down Expand Up @@ -131,7 +131,7 @@

#define EI_STUDIO_VERSION_MAJOR 1
#define EI_STUDIO_VERSION_MINOR 53
#define EI_STUDIO_VERSION_PATCH 13
#define EI_STUDIO_VERSION_PATCH 14

#define EI_CLASSIFIER_HR_ENABLED 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const ei_learning_block_config_anomaly_kmeans_t ei_learning_block_config_8 = {
.anom_axis = ei_classifier_anom_axes,
.anom_axes_size = 4,
.anom_clusters = ei_classifier_anom_clusters,
.anom_cluster_count = 8,
.anom_cluster_count = 10,
.anom_scale = ei_classifier_anom_scale,
.anom_mean = ei_classifier_anom_mean,
};
Expand Down Expand Up @@ -157,7 +157,7 @@ const ei_impulse_t impulse_440960_0 = {
.project_id = 440960,
.project_owner = "Paula",
.project_name = "large-window",
.deploy_version = 4,
.deploy_version = 7,

.nn_input_frame_size = 78,
.raw_sample_count = 31,
Expand All @@ -166,8 +166,8 @@ const ei_impulse_t impulse_440960_0 = {
.input_width = 0,
.input_height = 0,
.input_frames = 0,
.interval_ms = 95.05703422053233,
.frequency = 10.52,
.interval_ms = 96,
.frequency = 10.416666666666666,
.dsp_blocks_size = ei_dsp_blocks_size,
.dsp_blocks = ei_dsp_blocks,

Expand Down
Loading

0 comments on commit 2c3ce9f

Please sign in to comment.