This repository was archived by the owner on May 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSMDemoSettings.xml
More file actions
1879 lines (1853 loc) · 83 KB
/
Copy pathSMDemoSettings.xml
File metadata and controls
1879 lines (1853 loc) · 83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<demo dataFolder="./Data" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SMDemoSettings.xsd">
<!--
Here StateMachine achieves 82.05% accuracy. It is a bit better than the best accuracy 81.4% achieved by the algorithm
called COTE referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=CricketX.
The series Cricket X, Y and Z are accelerometer data (in three dimensions) taken from actors performing cricket gestures.
The twelve classes are different umpire signals: Cancel Call, Dead Ball, Four, Last Hour Leg Bye, No Ball, One Short, Out,
Penalty Runs, Six, TV Replay, and Wide. They mounted two accelerometers orthogonal to each other, thus acceleration is measured
in 3D space. The accelerometers are housed in a small wrist watch sized enclosure worn in the form of a wrist band.
Taken together the data is a multivariate time series classificatin problem, but the serise are not alligned so in its current
format cannot be used s such Segmentation of intentional gestures for sports video annotation, Online Context Recognition in Multisensor Systems using Dynamic Time Warping.
The data are multi-dimensional, but they are not aligned, so it is not possible.
-->
<case name="Classification task CricketX: Pure ESN reservoir generating FiringTrace predictors, one Identity neuron as a classifier (Resilient trainer)">
<samples trainingData="CricketX_train.csv" verificationData="CricketX_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor predictorsReductionRatio="0">
<inputEncoder>
<feedingPatterned slices="1" bidir="Continuous" variablesSchema="Sequential" />
<varyingFields routeToReadout="false">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="Accel">
<realFeature />
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="PoolMain">
<proportions dimX="500" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="TanH-grp" relShare="1" firingThreshold="0.00125" thresholdMaxRefDeepness="60">
<activationTanH/>
<predictors>
<firingTrace fading="0.005"/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<randomSchema density="0.05" avgDistance="NA" allowSelfConnection="true"/>
<chainSchema/>
</interconnection>
</pool>
</pools>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="Accel" poolName="PoolMain" analogTargetDensity="0.25"/>
</inputConnections>
<synapse>
<analogTarget spectralRadius="0.9999">
<input maxDelay="50">
<analogSource>
<weight min="0" max="1.5"/>
</analogSource>
</input>
<indifferent maxDelay="0"/>
</analogTarget>
</synapse>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults>
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.1" folds="Auto" repetitions="1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationIdentity/>
<resPropTrainer attempts="10" attemptEpochs="500"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</taskDefaults>
<readoutUnits>
<readoutUnit name="Cancel Call">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Dead Ball">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Four">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Last Hour">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Leg Bye">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="No Ball">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="One Short">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Out">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Penalty Runs">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Six">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="TV Replay">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
<readoutUnit name="Wide">
<classification oneTakesAllGroupName="Gesture"/>
</readoutUnit>
</readoutUnits>
<oneTakesAllGroups>
<group name="Gesture">
<basicDecision/>
</group>
</oneTakesAllGroups>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates successful use of the pure analog ESN reservoir for the fast and accurate classifications enabled by
the new ability of the analog neurons to fire a spike, input resampling and transformation.
Following straightforward configuration of the StateMachine exhibits 83.12% accuracy, clearly better than the best algorithm
called BOSS (73.49%), referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=Worms.
Caenorhabditis elegans is a roundworm commonly used as a model organism in the study of genetics.
The movement of these worms is known to be a useful indicator for understanding behavioural genetics.
Brown et al. - "A dictionary of behavioral motifs reveals clusters of genes affecting Caenorhabditis elegans locomotion"
describe a system for recording the motion of worms on an agar plate and measuring a range of human-defined features.
It has been shown that the space of shapes Caenorhabditis elegans adopts on an agar plate can be represented by combinations of four
base shapes, or eigenworms. Once the worm outline is extracted, each frame of worm motion can be captured by four scalars
representing the amplitudes along each dimension when the shape is projected onto the four eigenworms. The data relates to 258 traces
of worms converted into four "eigenworm" series. The eigenworm data are lengths from 17984 to 100674
(sampled at 30 Hz, so from 10 minutes to 1 hour) and in four dimensions (eigwnworm 1 to 4).
There are five classes: N2,goa-1,unc-1,unc-38 and unc-63. N2 is wildtype (i.e. normal) the other 4 are mutant strains.
These datasets are the first dimension only (first eigenworm) The problems are series of first eigenworm1 averaged down
so that all series are lengths 900 (the single hour long series is discarded). This smoothing is likely to discard discriminatory
information. The Yemini features obtains nearly 100% accuracy, although we have not independently verified this.
We address the problem of classifying individual worms as wild-type or mutant based on the time series of the first eigenworm,
down-sampled to second-long intervals. We have 257 cases, which we split 70%/30% into a train and test set.
Each series has 900 observations, and each worm is classified as either wild-type (the N2 reference strain - 109 cases) or one of
four mutant types: goa-1 (44 cases); unc-1 (35 cases); unc-38 (45 cases) and unc-63 (25 cases). The data were extracted from the
C. elegans behavioural database {wormWeb}. The formatted classification problems are available from the website associated with this
paper {tscWeb}.
-->
<case name="Classification task Worms: Simple pure ESN reservoir generating FiringTrace predictors, one Elliot neuron as a classifier (Resilient trainer)">
<samples trainingData="Worms_train.csv" verificationData="Worms_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor>
<inputEncoder>
<feedingPatterned slices="1" bidir="Forbidden">
<unification unifyAmplitude="false" detrend="false">
<resampling uniformTimeScale="true" targetTimePoints="180"/>
</unification>
</feedingPatterned>
<varyingFields routeToReadout="false">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="Eigenworm1">
<realFeature/>
</field>
</externalFields>
<transformedFields>
<field name="TransEigenworm1">
<yeoJohnson fieldName="Eigenworm1" lambda="0.5"/>
</field>
</transformedFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="PureESN">
<proportions dimX="7" dimY="7" dimZ="7"/>
<neuronGroups>
<analogGroup name="TanH-grp" relShare="1" firingThreshold="0.00125">
<activationTanH/>
<predictors>
<firingTrace fading="0.0025"/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<randomSchema density="0.1" avgDistance="NA" allowSelfConnection="true" constantNumOfConnections="false"/>
</interconnection>
</pool>
</pools>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="TransEigenworm1" analogTargetDensity="0.25" poolName="PureESN"/>
</inputConnections>
<synapse>
<analogTarget>
<input maxDelay="0">
<analogSource>
<weight min="0" max="2"/>
</analogSource>
</input>
</analogTarget>
</synapse>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults>
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.1" folds="Auto" repetitions="1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationElliot/>
<resPropTrainer attempts="5" attemptEpochs="1500"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</taskDefaults>
<readoutUnits>
<readoutUnit name="Wild-N2">
<classification oneTakesAllGroupName="WormDNAType"/>
</readoutUnit>
<readoutUnit name="Mutant-goa1">
<classification oneTakesAllGroupName="WormDNAType"/>
</readoutUnit>
<readoutUnit name="Mutant-unc1">
<classification oneTakesAllGroupName="WormDNAType"/>
</readoutUnit>
<readoutUnit name="Mutant-unc38">
<classification oneTakesAllGroupName="WormDNAType"/>
</readoutUnit>
<readoutUnit name="Mutant-unc63">
<classification oneTakesAllGroupName="WormDNAType"/>
</readoutUnit>
</readoutUnits>
<oneTakesAllGroups>
<group name="WormDNAType">
<basicDecision/>
</group>
</oneTakesAllGroups>
</readoutLayer>
</stateMachine>
</case>
<!--
This sample demonstrates the power of the more advanced StateMachne capabilities. Here is used possibility to
unify the amplitude of input patter data, as well as the possibility to directly connect fast-reacting analog neurons
with spiking neurons and thus create a reservoir with sufficient memory and proper ability to provide good data for
generalization at readout layer. Proper mutual cooperation of analog and spiking neurons is enabled by the novel ability of analog
neuron to fire a spike.
Following advanced (but still straightforward) configuration of the StateMachine achieves 100% accuracy, better than the best
algorithm called BOSS, referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=BeetleFly.
MPEG-7 CE Shape-1 Part B is a database of binary images developed for testing MPEG-7 shape descriptors, and is available free online.
It is used for testing contour/image and skeleton-based descriptors. Classes of images vary broadly, and include classes that are
similar in shape to one another. There are 20 instances of each class, and 60 classes in total.
We have extracted the outlines of these images and mapped them into 1-D series of distances to the centre.
Beetle/Fly is the problem of distinguishing between an outline of a beetle and a fly.
-->
<case name="Classification task BeetleFly: Combined ESNxLSM reservoir generating FiringTrace predictors, one TanH neuron as a classifier (Resilient trainer)">
<samples trainingData="BeetleFly_train.csv" verificationData="BeetleFly_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor predictorsReductionRatio="0">
<inputEncoder>
<feedingPatterned slices="1" bidir="Continuous">
<unification unifyAmplitude="true" detrend="false">
<resampling signalBeginThreshold="0" signalEndThreshold="0" uniformTimeScale="true" targetTimePoints="Auto"/>
</unification>
</feedingPatterned>
<varyingFields routeToReadout="false">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="DistanceFromCenter">
<realFeature standardize="true" keepReserve="true"/>
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="AnalogESNPool">
<proportions dimX="128" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="Analog-grp" relShare="1" firingThreshold="0.01" thresholdMaxRefDeepness="4">
<activationTanH/>
<predictors>
<firingTrace fading="0.001"/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<randomSchema density="0.1" avgDistance="NA" allowSelfConnection="true" constantNumOfConnections="false"/>
</interconnection>
</pool>
<pool name="SpikingPrimePool">
<proportions dimX="64" dimY="1" dimZ="1"/>
<neuronGroups>
<spikingGroup name="Spiking-grp" relShare="1">
<activationLeakyIF refractoryPeriods="0"/>
<homogenousExcitability excitatoryStrength="0.8" inputRatio="0" inhibitoryRatio="0.25"/>
<predictors>
<firingTrace fading="0.001"/>
</predictors>
</spikingGroup>
</neuronGroups>
<interconnection>
<emptySchema/>
</interconnection>
</pool>
<pool name="SpikingLSMPool">
<proportions dimX="128" dimY="1" dimZ="1"/>
<neuronGroups>
<spikingGroup name="Spiking-grp" relShare="1">
<activationLeakyIF refractoryPeriods="0"/>
<homogenousExcitability excitatoryStrength="0.8" inputRatio="0" inhibitoryRatio="0.1"/>
<predictors>
<firingTrace fading="0.001"/>
</predictors>
</spikingGroup>
</neuronGroups>
<interconnection>
<randomSchema density="0.1" avgDistance="NA" allowSelfConnection="false" constantNumOfConnections="false"/>
</interconnection>
</pool>
</pools>
<interPoolConnections>
<interPoolConnection targetPool="SpikingPrimePool" targetConnDensity="1" sourcePool="AnalogESNPool" sourceConnDensity="0.25"/>
<interPoolConnection targetPool="SpikingLSMPool" targetConnDensity="1" sourcePool="SpikingPrimePool" sourceConnDensity="0.25"/>
</interPoolConnections>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="DistanceFromCenter" poolName="AnalogESNPool" analogTargetDensity="1"/>
</inputConnections>
<synapse>
<analogTarget>
<indifferent maxDelay="16"/>
</analogTarget>
</synapse>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults/>
<readoutUnits>
<readoutUnit name="Beetle1Fly0">
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationTanH/>
<resPropTrainer attempts="5" attemptEpochs="500"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</readoutUnit>
</readoutUnits>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates successful use of the pure analog ESN reservoir for the fast and accurate classifications enabled by
the new ability of the analog neurons to fire a spike.
Following straightforward configuration of the StateMachine exhibits 100% accuracy, slightly better than the best algorithm
called BOSS, referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=BirdChicken.
MPEG-7 CE Shape-1 Part B is a database of binary images developed for testing MPEG-7 shape descriptors, and is available free online.
It is used for testing contour/image and skeleton-based descriptors. Classes of images vary broadly, and include classes that are
similar in shape to one another. There are 20 instances of each class, and 60 classes in total.
We have extracted the outlines of these images and mapped them into 1-D series of distances to the centre.
Bird/Chicken is the problem of distinguishing between an outline of a bird and a chicken.
-->
<case name="Classification task BirdChicken: Simple pure ESN reservoir generating FiringTrace predictors, one TanH neuron as a classifier (Resilient trainer)">
<samples trainingData="BirdChicken_train.csv" verificationData="BirdChicken_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor>
<inputEncoder>
<feedingPatterned slices="1" bidir="Forbidden">
<unification unifyAmplitude="false" detrend="false">
<resampling signalBeginThreshold="0" signalEndThreshold="0" uniformTimeScale="true" targetTimePoints="Auto"/>
</unification>
</feedingPatterned>
<varyingFields routeToReadout="false">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="DistanceFromCenter">
<realFeature standardize="true" keepReserve="true"/>
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="PureESN">
<proportions dimX="6" dimY="6" dimZ="5"/>
<neuronGroups>
<analogGroup name="TanH-grp" firingThreshold="0.00125" relShare="1">
<activationTanH/>
<predictors>
<firingTrace/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<randomSchema density="0.2" avgDistance="NA" allowSelfConnection="true" constantNumOfConnections="false"/>
</interconnection>
</pool>
</pools>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="DistanceFromCenter" poolName="PureESN"/>
</inputConnections>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults/>
<readoutUnits>
<readoutUnit name="Chicken1Bird0">
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationTanH/>
<resPropTrainer attempts="5" attemptEpochs="200"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</readoutUnit>
</readoutUnits>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates successful use of the pure analog ESN reservoir for the fast and accurate classifications enabled by
the new ability of the analog neurons to fire a spike.
Demo also shows use of the cluster chain's decision in "One Takes All" group.
Following configuration of the StateMachine leads to 87.8% accuracy, slightly worse than the best algorithm
called ST (88.09), referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=ProximalPhalanxOutlineAgeGroup.
This series of 11 classification problems were created as part of Luke Davis's PhD titled "Predictive Modelling of Bone Ageing".
They are all derived from the same images, extracted from Cao et al. "Digital hand atlas and web-based bone age assessment: system design and implementation".
They are designed to test the efficacy of hand and bone outline detection and whether these outlines could be helpful in bone
age prediction. Algorithms to automatically extract the hand outlines and then the outlines of three bones of the middle finger
(proximal, middle and distal phalanges) were applied to over 1300 images, and three human evaluators labelled the output
of the image outlining as correct or incorrect. This generated three classification problems: DistalPhalanxOutlineCorrect; MiddlePhalanxOutlineCorrect; and ProximalPhalanxOutlineCorrect.
The next stage of the project was to use the outlines to predict information about the subjects age.
The three problems {DistalPhalanxOutlineAgeGroup, MiddlePhalanxOutlineAgeGroup and ProximalPhalanxOutlineAgeGroup} involve using
the outline of one of the phalanges to predict whether the subject is one of three age groups: 0-6 years old, 7-12 years old
and 13-19 years old. Note that these problems are aligned by subject, and hence can be treated as a multi dimensional
TSC problem. Problem Phalanges contains the concatenation of all three problems. Bone age estimation is usually performed by
an expert with an algorithm called Tanner-Whitehouse. This involves scoring each bone into one of seven categories based on
the stage of development. The final three bone image classification problems, DistalPhalanxTW, MiddlePhalanxTW and ProximalPhalanxTW},
involve predicting the Tanner-Whitehouse score (as labelled by a human expert) from the outline.
-->
<case name="Classification task ProximalPhalanxOutlineAgeGroup: Pure ESN reservoir generating FiringTrace predictors, one Elliot neuron as classifier, Cluster chain winner decision.">
<samples trainingData="ProximalPhalanxOutlineAgeGroup_train.csv" verificationData="ProximalPhalanxOutlineAgeGroup_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor>
<inputEncoder>
<feedingPatterned slices="1" bidir="Continuous">
<unification unifyAmplitude="false" detrend="false">
<resampling/>
</unification>
</feedingPatterned>
<varyingFields routeToReadout="false">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="Outline">
<realFeature/>
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="Pool1">
<proportions dimX="300" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="Analog-grp" relShare="1" firingThreshold="0.00125" thresholdMaxRefDeepness="1">
<activationTanH/>
<predictors>
<firingTrace fading="0.05"/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<chainSchema ratio="1" circle="true" repetitions="30"/>
</interconnection>
</pool>
</pools>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="Outline" poolName="Pool1" analogTargetDensity="0.25"/>
</inputConnections>
<synapse>
<analogTarget>
<input maxDelay="5"/>
<indifferent maxDelay="0"/>
</analogTarget>
</synapse>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults>
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.25" folds="Auto" repetitions="1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationElliot/>
<resPropTrainer attempts="10" attemptEpochs="400"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</taskDefaults>
<readoutUnits>
<readoutUnit name="0-6 years">
<classification oneTakesAllGroupName="AgeGroup"/>
</readoutUnit>
<readoutUnit name="7-12 years">
<classification oneTakesAllGroupName="AgeGroup"/>
</readoutUnit>
<readoutUnit name="13-19 years">
<classification oneTakesAllGroupName="AgeGroup"/>
</readoutUnit>
</readoutUnits>
<oneTakesAllGroups>
<group name="AgeGroup">
<clusterChainDecision>
<clusterChain>
<crossvalidation foldDataRatio="0.1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationSoftMax/>
<hiddenLayers>
<layer neurons="20">
<activationLeakyReLU/>
</layer>
</hiddenLayers>
<resPropTrainer attempts="5" attemptEpochs="400"/>
</ff>
</networks>
<weights/>
</cluster>
<cluster>
<networks>
<ff>
<activationSoftMax/>
<hiddenLayers>
<layer neurons="20">
<activationLeakyReLU/>
</layer>
</hiddenLayers>
<resPropTrainer attempts="5" attemptEpochs="400"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</clusterChainDecision>
</group>
</oneTakesAllGroups>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates successful use of the pure analog ESN reservoir for the fast and accurate classifications enabled by
the new ability of the analog neurons to fire a spike.
Following straightforward configuration of the StateMachine achieves 91.37% accuracy, slightly better than
the best algorithm called BOSS, referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=Yoga.
The dataset was obtained by capturing two actors transiting between yoga poses in front of a green screen. The problem is to
discriminate between one actor (male) and another (female). Each image was converted to a one dimensional series by finding the
outline and measuring the distance of the outline to the centre.
-->
<case name="Classification task Yoga: Simple pure ESN reservoir generating FiringFadingSum and activationStatFeature-ArithAvg predictors, multilayer FF network as a classifier (Resilient trainer)">
<samples trainingData="Yoga_train.csv" verificationData="Yoga_verify.csv"/>
<stateMachine>
<neuralPreprocessor>
<inputEncoder>
<feedingPatterned slices="1" bidir="Continuous"/>
<varyingFields routeToReadout="true">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="DistanceFromCenter">
<realFeature/>
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="PureESN">
<proportions dimX="213" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="TanH-grp" relShare="1">
<activationTanH/>
<predictors>
<firingTrace fading="0.001"/>
<activationStatFigure figure="ArithAvg"/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<randomSchema/>
</interconnection>
</pool>
</pools>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="DistanceFromCenter" poolName="PureESN"/>
</inputConnections>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults>
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.05" folds="Auto" repetitions="1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationIdentity/>
<hiddenLayers>
<layer neurons="10">
<activationLeakyReLU/>
</layer>
<layer neurons="10">
<activationLeakyReLU/>
</layer>
</hiddenLayers>
<resPropTrainer attempts="5" attemptEpochs="400"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</taskDefaults>
<readoutUnits>
<readoutUnit name="Female1Male0">
<classification/>
</readoutUnit>
</readoutUnits>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates successful use of the pure analog ESN reservoir for the fast and accurate classifications enabled by
the new ability of the analog hidden neurons to fire a spike. Setup is very simple, having only 150 hidden TanH neurons.
The dataset is from "Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=Libras
Here StateMachine achieves 92.78% accuracy. It is a bit better than the benchmark 89.4% mentioned in related pdf https://arxiv.org/pdf/1811.00075.pdf
The dataset contains 15 classes of 24 instances each, where
each class references to a hand movement type in LIBRAS. The hand movement is represented as a bidimensional curve performed
by the hand in a period of time. The curves were obtained from videos of hand movements, with the Libras performance from 4
different people, during 2 sessions. Each video corresponds to only one hand movement and has about 7 seconds.
Each video corresponds to a function F in a functions space which is the continual version of the input dataset.
In the video pre-processing, a time normalization is carried out selecting 45 frames from each video, in according
to an uniform distribution. In each frame, the centroid pixels of the segmented objects (the hand) are found, which
compose the discrete version of the curve F with 45 points. All curves are normalized in the unitary space.
Each curve F is mapped in a representation with 90 features, with representing the coordinates of movement.
Each instance represents 45 points on a bi-dimensional space, which can be plotted in an ordered way (from 1 through
45 as the X co-ordinate) in order to draw the path of the movement.
-->
<case name="Classification task Libras Movement: Simple ESN reservoir generating FiringTrace predictors, one Identity neuron as a classifier (Resilient trainer)">
<samples trainingData="LibrasMovement_train.csv" verificationData="LibrasMovement_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor>
<inputEncoder>
<feedingPatterned slices="1" bidir="WithReset" variablesSchema="Groupped"/>
<varyingFields>
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="coord_abcissa">
<realFeature/>
</field>
<field name="coord_ordinate">
<realFeature/>
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="MainCfg">
<pools>
<pool name="SimpleESN">
<proportions dimX="150" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="TanH-grp" relShare="1">
<activationTanH/>
<predictors>
<firingTrace fading="0.05"/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<randomSchema density="0.1"/>
</interconnection>
</pool>
</pools>
</reservoirStructure>
</reservoirStructures>
<reservoirInstances>
<reservoirInstance name="Main" reservoirStructure="MainCfg">
<inputConnections>
<connection inputFieldName="coord_abcissa" poolName="SimpleESN" analogTargetDensity="0.25"/>
<connection inputFieldName="coord_ordinate" poolName="SimpleESN" analogTargetDensity="0.25"/>
</inputConnections>
<synapse>
<analogTarget>
<input maxDelay="5"/>
</analogTarget>
</synapse>
</reservoirInstance>
</reservoirInstances>
</neuralPreprocessor>
<readoutLayer>
<taskDefaults>
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.0825" folds="Auto" repetitions="1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationIdentity/>
<resPropTrainer attempts="10" attemptEpochs="300"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</taskDefaults>
<readoutUnits>
<readoutUnit name="curved swing">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="horizontal swing">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="vertical swing">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="anti-clockwise arc">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="clockwise arc">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="circle">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="horizontal straight-line">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="vertical straight-line">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="horizontal zigzag">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="vertical zigzag">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="horizontal wavy">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="vertical wavy">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="face-up curve">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="face-down curve">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
<readoutUnit name="tremble">
<classification oneTakesAllGroupName="Hand movement type"/>
</readoutUnit>
</readoutUnits>
<oneTakesAllGroups>
<group name="Hand movement type">
<basicDecision/>
</group>
</oneTakesAllGroups>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates bypassing of neural preprocessor (no preprocessing at all).
Following simple configuration of the StateMachine's alone readout layer achieves 86.37% accuracy, it is worse than the best algorithm
called ST (88.09%), referenced at the dataset's home site:
"Anthony Bagnall, Jason Lines, William Vickers and Eamonn Keogh, The UEA & UCR Time Series Classification Repository, www.timeseriesclassification.com"
https://timeseriesclassification.com/description.php?Dataset=ProximalPhalanxOutlineAgeGroup.
This series of 11 classification problems were created as part of Luke Davis's PhD titled "Predictive Modelling of Bone Ageing".
They are all derived from the same images, extracted from Cao et al. "Digital hand atlas and web-based bone age assessment: system design and implementation".
They are designed to test the efficacy of hand and bone outline detection and whether these outlines could be helpful in bone
age prediction. Algorithms to automatically extract the hand outlines and then the outlines of three bones of the middle finger
(proximal, middle and distal phalanges) were applied to over 1300 images, and three human evaluators labelled the output
of the image outlining as correct or incorrect. This generated three classification problems: DistalPhalanxOutlineCorrect; MiddlePhalanxOutlineCorrect; and ProximalPhalanxOutlineCorrect.
The next stage of the project was to use the outlines to predict information about the subjects age.
The three problems {DistalPhalanxOutlineAgeGroup, MiddlePhalanxOutlineAgeGroup and ProximalPhalanxOutlineAgeGroup} involve using
the outline of one of the phalanges to predict whether the subject is one of three age groups: 0-6 years old, 7-12 years old
and 13-19 years old. Note that these problems are aligned by subject, and hence can be treated as a multi dimensional
TSC problem. Problem Phalanges contains the concatenation of all three problems. Bone age estimation is usually performed by
an expert with an algorithm called Tanner-Whitehouse. This involves scoring each bone into one of seven categories based on
the stage of development. The final three bone image classification problems, DistalPhalanxTW, MiddlePhalanxTW and ProximalPhalanxTW},
involve predicting the Tanner-Whitehouse score (as labelled by a human expert) from the outline.
-->
<case name="Classification task ProximalPhalanxOutlineAgeGroup: No preprocesing, Multilayer Feed forward network as a classifier (Resilient trainer)">
<samples trainingData="ProximalPhalanxOutlineAgeGroup_train.csv" verificationData="ProximalPhalanxOutlineAgeGroup_verify.csv"/>
<stateMachine randomizerSeek="0">
<readoutLayer>
<taskDefaults>
<classification>
<clusterChain>
<crossvalidation foldDataRatio="0.1" folds="Auto" repetitions="1"/>
<clusters>
<cluster>
<networks>
<ff>
<activationIdentity/>
<hiddenLayers>
<layer neurons="20">
<activationLeakyReLU/>
</layer>
<layer neurons="20">
<activationLeakyReLU/>
</layer>
</hiddenLayers>
<resPropTrainer attempts="10" attemptEpochs="500"/>
</ff>
</networks>
<weights/>
</cluster>
<cluster>
<networks>
<ff>
<activationIdentity/>
<resPropTrainer attempts="5" attemptEpochs="400"/>
</ff>
</networks>
<weights/>
</cluster>
</clusters>
</clusterChain>
</classification>
</taskDefaults>
<readoutUnits>
<readoutUnit name="0-6 years">
<classification oneTakesAllGroupName="AgeGroup"/>
</readoutUnit>
<readoutUnit name="7-12 years">
<classification oneTakesAllGroupName="AgeGroup"/>
</readoutUnit>
<readoutUnit name="13-19 years">
<classification oneTakesAllGroupName="AgeGroup"/>
</readoutUnit>
</readoutUnits>
<oneTakesAllGroups>
<group name="AgeGroup">
<basicDecision/>
</group>
</oneTakesAllGroups>
</readoutLayer>
</stateMachine>
</case>
<!--
This demo case demonstrates how to instantiate two independent reservoirs. Configuration definies two ESN reservoir
structures each having two interconnected pools of 100 TanH analog neurons.
Two corresponding reservoirs are then instantiated (hence in total 2x2x100=400 analog neurons).
QRD regression is used as predicting readout.
Dataset contains Mackey Glass chaotic time series (tau=17) and network very accurately forecasts the next value.
-->
<case name="Forecast task Mackey Glass chaotic time series: Two independent ESN reservoirs, one Identity neuron as a forecaster, QRD regression trainer">
<samples trainingData="MackeyGlass_train.csv" verificationData="MackeyGlass_verify.csv"/>
<stateMachine randomizerSeek="0">
<neuralPreprocessor predictorsReductionRatio="0">
<inputEncoder>
<feedingContinuous bootCycles="Auto"/>
<varyingFields routeToReadout="true">
<spikesCoder regime="Forbidden"/>
<externalFields>
<field name="Value" routeToReadout="true">
<realFeature standardize="true" keepReserve="false"/>
</field>
</externalFields>
</varyingFields>
</inputEncoder>
<reservoirStructures>
<reservoirStructure name="ESNCfg #1">
<pools>
<pool name="Logistic chain pool">
<proportions dimX="100" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="Tanh-grp" relShare="1">
<activationTanH/>
<predictors>
<activation/>
<activationPower/>
</predictors>
</analogGroup>
</neuronGroups>
<interconnection>
<chainSchema ratio="1" circle="false" repetitions="1"/>
</interconnection>
</pool>
<pool name="Logistic random pool">
<proportions dimX="100" dimY="1" dimZ="1"/>
<neuronGroups>
<analogGroup name="TanH-grp" relShare="1">
<activationTanH/>
<predictors>
<activation/>