Skip to content

Commit

Permalink
Changes to accommodate changed post-processing parameters
Browse files Browse the repository at this point in the history
Issue #451 Changes to config.yml files and to generic recognizer tests to accommodate changes to post-processing parameters.
  • Loading branch information
towsey committed Feb 25, 2021
1 parent dcc9559 commit c75a8a8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 38 deletions.
18 changes: 9 additions & 9 deletions docs/guides/Ecosounds.NinoxBoobook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ PostProcessing:
ExpectedPeriod: 0.4

# 3: Remove events whose duration lies outside 3 SDs of an expected value.
Duration:
ExpectedDuration: 0.14
DurationStandardDeviation: 0.01
#Duration:
# ExpectedDuration: 0.14
# DurationStandardDeviation: 0.01

# 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
SidebandActivity:
LowerHertzBuffer: 150
UpperHertzBuffer: 400
MaxAverageSidebandDecibels: 3.0
# 5: Filter the events for excess activity in their sidebands
SidebandAcousticActivity:
LowerSidebandWidth: 150
UpperSidebandWidth: 0
MaxBackgroundDecibels: 12
#MaxActivityDecibels: 12

# Options to save results files
# 1: Available options for saving spectrograms (case-sensitive): [Never | Always | WhenEventsDetected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,20 @@ PostProcessing:

# 3: Remove events whose duration lies outside 3 SDs of an expected value.
#Duration:
ExpectedDuration: 0.14
DurationStandardDeviation: 0.01
# ExpectedDuration: 0.14
# DurationStandardDeviation: 0.01

# 4: Remove events whose bandwidth lies outside 3 SDs of an expected value.
# Bandwidth:
ExpectedBandwidth: 280
BandwidthStandardDeviation: 40
#Bandwidth:
# ExpectedBandwidth: 280
# BandwidthStandardDeviation: 40

# 5: Filter the events for excess activity in their sidebands, i.e. upper and lower buffer zones
SidebandActivity:
LowerHertzBuffer: 150
UpperHertzBuffer: 400
MaxAverageSidebandDecibels: 3.0
#SidebandAcousticActivity:
LowerSidebandWidth: 150
UpperSidebandWidth: 400
MaxBackgroundDecibels: 12
MaxActivityDecibels: 12

# Options to save results files
# 1: Available options for saving spectrograms (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,21 @@ PostProcessing:
ExpectedPeriod: 0.92

# 3: Remove events whose duration lies outside 3 SDs of an expected value.
Duration:
FilterOnDuration: false
ExpectedDuration: 0.14
DurationStandardDeviation: 0.01
#Duration:
# ExpectedDuration: 0.14
# DurationStandardDeviation: 0.01

# 4: Remove events whose bandwidth lies outside 3 SDs of an expected value.
Bandwidth:
FilterOnBandwidth: true
ExpectedBandwidth: 120
BandwidthStandardDeviation: 15

# 5: Filter the events for excess acoustic activity in their sidebands, i.e. upper and lower buffer zones
SidebandAcousticActivity:
LowerSidebandWidth: 0
UpperSidebandWidth: 0
FilterEventsOnSidebandBackground: false
MaxBackgroundDecibels: 6.0
FilterEventsOnSidebandActivity: false
MaxActivityDecibels: 9.0
MaxBackgroundDecibels: null
MaxActivityDecibels: null

# Various options to save results files
# 1: Available options for saving spectrograms (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ AbbreviatedSpeciesName: PteropusSp
# Typically the lowest harmonic will lie between 1200 Hz and 3000 Hz and the higher ones evenly spaced.
# This is the tricky bit due to variability but may work to use spectrum auto-correlation.

## Specifically for AnalyzeLongRecording

# Resample rate must be 2 X the desired Nyquist
ResampleRate: 22050

# SegmentDuration: units=seconds;
SegmentDuration: 60
# SegmentOverlap: units=seconds;
SegmentOverlap: 0

# Common settings
BgNoiseThreshold: 3.0

Expand Down Expand Up @@ -54,14 +64,6 @@ Profiles:
# <<: *STANDARD
# DctDuration: 0.3

# Resample rate must be 2 X the desired Nyquist
ResampleRate: 22050

## Specifically for AnalyzeLongRecording
# SegmentDuration: units=seconds;
SegmentDuration: 60
# SegmentOverlap: units=seconds;
SegmentOverlap: 0
# Available options (case-sensitive): [False/Never | True/Always | WhenEventsDetected]
SaveIntermediateWavFiles: Never
SaveIntermediateCsvFiles: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ public void TestOscillationAlgorithm()
BgNoiseThreshold = 0.0,
MaxHertz = 1050,
MinHertz = 700,
BottomHertzBuffer = 0,
TopHertzBuffer = 0,
SpeciesName = "DTMF",
DctDuration = 1.0,
MinOscillationFrequency = 1,
Expand Down Expand Up @@ -190,7 +188,7 @@ public void TestOscillationAlgorithm()
{
UpperSidebandWidth = 0,
LowerSidebandWidth = 0,
MaxBackgroundDecibels = 0,
MaxBackgroundDecibels = 0.0,
},
},
};
Expand Down

0 comments on commit c75a8a8

Please sign in to comment.