-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue500 koala recognizer3 #521
Open
towsey
wants to merge
37
commits into
master
Choose a base branch
from
Issue500_KoalaRecognizer3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,415
−2,000
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
ae34d1c
Update HarmonicAlgorithmTests.cs
towsey 6272d90
Change name of config file previously prepared.
towsey a6af0ca
Set up recognizer and unit test for Koala recognizer
towsey b117b5a
Changed signature of the Oscllation2012 method
towsey c2c05f0
Changed signature of Oscillations2012.Execute()
towsey 84c6ea2
Update Plot.cs
towsey 0b46e3b
Two other methods impacted by change to method signature of Oscillati…
towsey 943ac26
Shift two properties from DctParameters to OscillParameters
towsey c720320
Update OscillationEvent.cs
towsey 840fae2
Update GenericRecognizer.cs
towsey b15f22f
Set up new Koala mark3 call recognizer.
towsey 53a723f
Update Image_MultiTrack.cs
towsey 9521508
Make two Oscillation algorithms available
towsey 86fb4f9
Move method ConvertOscillationScores2Events()
towsey 26ec9fb
Update Towsey.PhascolarctosCinereusMark3.yml
towsey 6b90e4f
Update PteropusSpTests.cs
towsey 4fc5bdc
Create new class to contain DCT methods
towsey f28f54e
Update Oscillations2010.cs
towsey 8163d1d
Update OscillationEvent.cs
towsey 94b9aaf
Add extensive summary notes on the two oscillation alorithms, Oscilla…
towsey ccc8f31
Experiment with best test parameters.
towsey ae8cc1a
Remove the Oscillations2010 class
towsey 3ba8d88
Remove EPR.cs
towsey 4b50171
Add comments re oscillation algorithms
towsey 7ce09b2
Work on unit tests.
towsey e00c812
Update HarmonicParameters.cs
towsey 83e7886
Update OscillationEvent.cs
towsey d69208f
Update MatrixTools.cs
towsey 6056087
Update InitialiseIndexProperties.cs
towsey e938042
Update GenericRecognizer.cs
towsey 19bef80
Refactor methods for calculation of event statistics.
towsey 350a2f9
Update SpectrogramTools.cs
towsey 72286c2
Update PhascolarctosCinereusMark3.cs
towsey 26a3b2d
Add more debug messages
towsey 7021502
Update PhascolarctosCinereusMark3.cs
towsey 4756338
Set up new unit test for Koala calls
towsey 90a0ddb
Update OscillationParameters.cs
towsey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
54 changes: 0 additions & 54 deletions
54
src/AnalysisConfigFiles/RecognizerConfigFiles/Towsey.PhascolarctosCinereus.v3.yml
This file was deleted.
Oops, something went wrong.
108 changes: 108 additions & 0 deletions
108
src/AnalysisConfigFiles/RecognizerConfigFiles/Towsey.PhascolarctosCinereusMark3.yml
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,108 @@ | ||
--- | ||
|
||
# Male Koala: Phascolarctos cinereus version 3. | ||
# Resample rate must be 2 X the desired Nyquist | ||
ResampleRate: 22050 | ||
# SegmentDuration: units=seconds; | ||
SegmentDuration: 60 | ||
# SegmentOverlap: units=seconds; | ||
SegmentOverlap: 0 | ||
|
||
CommonParameters: &common_parameters | ||
SpeciesName: PhascolarctosCinereus | ||
WindowFunction: HANNING | ||
NoiseReductionType: Standard | ||
BgNoiseThreshold: 0.0 | ||
|
||
|
||
# Each of these profiles will be analyzed | ||
Profiles: | ||
# This profile detections oscillation in the inhale. | ||
KoalaOsc: !OscillationParameters | ||
<<: *common_parameters | ||
|
||
Algorithm: Standard | ||
#Algorithm: MultiBin | ||
ComponentName: Oscillation | ||
FrameSize: 256 | ||
FrameStep: 110 | ||
# min and max of the freq band to search | ||
MinHertz: 170 | ||
MaxHertz: 800 | ||
# Min and max durations for the length of a true event (seconds). | ||
MinDuration: 0.2 | ||
MaxDuration: 3.5 | ||
# duration of DCT in seconds | ||
# this cannot be too long because the oscillations are not constant. | ||
#DctDuration: 0.30 | ||
DctDuration: 0.2 | ||
# minimum acceptable amplitude of a DCT coefficient | ||
DctThreshold: 0.5 | ||
# OSCILLATIONS PER SECOND: ignore oscillation rates below the min & above the max threshold | ||
MinOscillationFrequency: 15 | ||
MaxOscillationFrequency: 60 | ||
# Event threshold - Determines FP / FN trade-off for events. | ||
EventThreshold: 0.4 | ||
DecibelThresholds: | ||
- 3.0 | ||
|
||
#################### POST-PROCESSING of EVENTS ################### | ||
|
||
PostProcessing: | ||
PostProcessInDecibelGroups: false | ||
|
||
# # The following generic post-processing steps are determined by config settings. | ||
# # Step 1: Combine overlapping events - events derived from all profiles. | ||
# # Step 2: Combine possible syllable sequences and filter on excess syllable count. | ||
# # Step 3: Remove events whose bandwidth is too small or large. | ||
# # Step 4: Remove events that have excessive noise in their side-bands. | ||
|
||
# # 1: Combine overlapping events | ||
CombineOverlappingEvents: false | ||
|
||
# 2: Combine possible syllable sequences | ||
SyllableSequence: | ||
SyllableStartDifference: 3.5 | ||
SyllableHertzGap: 200 | ||
#FilterSyllableSequence: false | ||
# SyllableMaxCount: 3 | ||
# ExpectedPeriod: 0.1 | ||
|
||
# 3: Remove events whose duration lies outside 3 SDs of an expected value. | ||
# Koala calls can last for 90 seconds or more. | ||
# The following has the effect of removing events shorter than 3 seconds & longer than 93 sec. | ||
Duration: | ||
ExpectedDuration: 48.0 | ||
DurationStandardDeviation: 15.0 | ||
|
||
# # 4: Remove events whose bandwidth lies outside 3 SDs of an expected value. | ||
# # Bandwidth: | ||
# ExpectedBandwidth: 280 | ||
# BandwidthStandardDeviation: 40 | ||
|
||
# # 5: Filter the events for excess activity in their sidebands, i.e. upper and lower buffer zones | ||
# THis will not work for koala calls. | ||
# SidebandActivity: | ||
# LowerHertzBuffer: 150 | ||
# UpperHertzBuffer: 400 | ||
# MaxAverageSidebandDecibels: 3.0 | ||
RemoveEnclosedEvents: false | ||
|
||
################################################################################ | ||
|
||
# Options to save results files | ||
# Available options for saving spectrograms (case-sensitive): [False/Never | True/Always | WhenEventsDetected] | ||
# "True" is useful when debugging but "WhenEventsDetected" is required for operational use. | ||
SaveSonogramImages: Always | ||
#SaveSonogramImages: WhenEventsDetected | ||
|
||
# Save intermediate file options (case-sensitive): [False/Never | True/Always | WhenEventsDetected] | ||
SaveIntermediateWavFiles: Never | ||
SaveIntermediateCsvFiles: false | ||
|
||
# DisplayCsvImage is obsolete - ensure it remains set to: false | ||
DisplayCsvImage: false | ||
|
||
# Other config files to reference | ||
IndexPropertiesConfig: ".\\IndexPropertiesConfig.yml" | ||
... |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The YAML referencing trick is really only useful when you have to reuse blocks in multiple profile definitions