-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added docu for the EgaitSegmentaitonchallenges
- Loading branch information
Showing
8 changed files
with
296 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
docs/challenges/Stride Segmentation/EgaitSegmentationValidation2014/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
EgaitSegmentationValidation2014 | ||
=============================== | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
|
||
Link to Result Page <results> | ||
|
||
.. automodule:: gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014 | ||
:no-members: | ||
:no-inherited-members: | ||
|
||
Code Objects | ||
------------ | ||
|
||
.. currentmodule:: gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014 | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:template: class.rst | ||
|
||
Challenge | ||
ChallengeDataset | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:template: function.rst | ||
|
||
final_scorer |
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
...nges/Stride Segmentation/EgaitSegmentationValidation2014OriginalLabel/index.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
EgaitSegmentationValidation2014 - Original Labels | ||
================================================= | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 1 | ||
|
||
Link to Result Page <results> | ||
|
||
.. automodule:: gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014_original_label | ||
:no-members: | ||
:no-inherited-members: | ||
|
||
Code Objects | ||
------------ | ||
|
||
.. currentmodule:: gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014_original_label | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:template: class.rst | ||
|
||
Challenge | ||
ChallengeDataset | ||
|
||
.. autosummary:: | ||
:toctree: generated/ | ||
:template: function.rst | ||
|
||
final_scorer |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 88 additions & 1 deletion
89
...itmap_challenges/stride_segmentation/egait_segmentation_validation_2014_original_label.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,102 @@ | ||
"""A challenge for stride segmentation from continuous IMU data focused on straight strides. | ||
General Information | ||
------------------- | ||
Dataset | ||
The `Egait Segmentation Validation 2014 <dataset_info_>`_ dataset [1]_ is used for this challenge | ||
(`usage example <datasets_example_>`_, `download <dataset_download_>`_). | ||
It contains 4x10m gait tests from 30 participants (10 controls, 10 Parkinson's disease, 10 geriatric patients) and | ||
15 simulated @home tests from 5 participants per cohort (5 controls, 5 Parkinson's disease, 5 geriatric patients ). | ||
Sensor System | ||
All participants wore Shimmer2R (102.4 Hz) IMUs laterally on both shoes. | ||
Reference System | ||
All trials where recorded with a video camera to support labeling of the strides in the raw data. | ||
The camera data was used to remove turns and stair strides from the annotations. | ||
Another set of annotations exists, that contains all strides including turns and stairs. | ||
All annotations where performed following the stride definition by [1]_. | ||
However, this challenge used the original annotations that **excluded** turns and stairs. | ||
For an equivalent challenge using the new annotations, see | ||
:mod:`~gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014`. | ||
Implementation Recommendations | ||
------------------------------ | ||
This challenge version uses the original annotations that **excluded** turns and stairs. | ||
In result, the validation favors algorithms that are very specific to straight strides. | ||
Algorithms that naturally have a higher sensitivity and also detect turns and stairs will be penalized. | ||
Overall the data only contains gait and no other movements. | ||
This should make this a relatively easy dataset for gait segmentation. | ||
References | ||
---------- | ||
.. [1] Barth, Jens, Cäcilia Oberndorfer, Cristian Pasluosta, Samuel Schülein, Heiko Gassner, Samuel Reinfelder, | ||
Patrick Kugler, et al. “Stride Segmentation during Free Walk Movements Using Multi-Dimensional Subsequence | ||
Dynamic Time Warping on Inertial Sensor Data.” Sensors (Switzerland) 15, no. 3 (March 17, 2015): 6419-40. | ||
https://doi.org/10.3390/s150306419. | ||
.. _dataset_info: https://www.mad.tf.fau.de/research/datasets/#collapse_18 | ||
.. _datasets_example: | ||
https://mad-lab-fau.github.io/gaitmap-datasets/auto_examples/egait_segmentation_validation_2014.html | ||
.. _dataset_download: https://www.mad.tf.fau.de/research/datasets/#collapse_18 | ||
""" | ||
from gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014 import ( | ||
Challenge as BaseChallenge, | ||
) | ||
from gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014 import ( | ||
ChallengeDataset, | ||
ResultType, | ||
SensorNames, | ||
final_scorer, | ||
) | ||
|
||
|
||
class Challenge(BaseChallenge): | ||
"""The EgaitSegmentation Validation Challenge using the original labels. | ||
This challenge is identical to | ||
:class:`~gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014.Challenge`, | ||
with the exception that `use_original_labels` is set to True by default. | ||
This means that the original labels are used for the reference stride list. | ||
Parameters | ||
---------- | ||
dataset | ||
A instance of :class:`~gaitmap_datasets.EgaitSegmentationValidation2014` or a path to a directory containing | ||
the dataset. | ||
cv_iterator | ||
A cross-validation iterator or the number of folds to use. | ||
cv_params | ||
Additional parameters to pass to the tpcp cross-validation function. | ||
Other Parameters | ||
---------------- | ||
match_tolerance_s | ||
(Class Constant) The tolerance in seconds that is allowed between the calculated stride borders and the | ||
reference stride borders. | ||
use_original_labels | ||
(Class Constant) If True, the original stride labels are used for the reference stride list. | ||
The original labels only contain straight strides. | ||
If False, the new labels are used for the reference stride list. | ||
The new labels contain all strides including turns and stairs. | ||
Attributes | ||
---------- | ||
cv_results_ | ||
The results of the cross-validation. | ||
This can be passed directly to the pandas DataFrame constructor to get a dataframe with the results. | ||
See Also | ||
-------- | ||
gaitmap_challenges.challenge_base.BaseChallenge : For common parameters and attributes of all challenges. | ||
gaitmap_challenges.stride_segmentation.egait_segmentation_validation_2014.Challenge : The same challenge, but with | ||
the new labels | ||
""" | ||
|
||
use_original_labels = True | ||
|
||
|
||
__all__ = ["Challenge", "ChallengeDataset", "ResultType", "SensorNames"] | ||
__all__ = ["Challenge", "ChallengeDataset", "ResultType", "SensorNames", "final_scorer"] |