Skip to content

Commit

Permalink
Optimise parameter values for Australasian Bittern.
Browse files Browse the repository at this point in the history
Issue #370 Changed the config file to optimise the parameters on a large data set provided by Elizabeth Znidersic.
Then reworked the unit test.
  • Loading branch information
towsey authored and atruskie committed Oct 14, 2020
1 parent b8c4d5b commit d8ec8a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---

# Australasian Bittern = Botaurus poiciloptilus
#NOTE: The parameter values in this config file were optimised on a data set supplied by Elizabeth Znidersic.
# It consisted of 14 consecutive hours of recording from Medeas Cove, St. Helens, Tasmania.
# The recordings contained 55 Bittern calls.
# Recall = 76%. Precision = 88%.

# Resample rate must be 2 X the desired Nyquist
ResampleRate: 8000
# SegmentDuration: units=seconds;
Expand All @@ -22,7 +27,7 @@ Profiles:
MaxHertz: 200
MinDuration: 0.3
MaxDuration: 1.0
DecibelThreshold: 6.0
DecibelThreshold: 3.0

#################### POST-PROCESSING of EVENTS ###################

Expand All @@ -47,7 +52,7 @@ BandwidthStandardDeviation: 15
# 4: Filter the events for excess activity in their upper and lower buffer zones
NeighbourhoodLowerHertzBuffer: 150
NeighbourhoodUpperHertzBuffer: 400
NeighbourhoodDecibelBuffer: 0.0
NeighbourhoodDecibelBuffer: 2.0

# C: Options to save results files
# 4: 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 @@ -66,13 +66,13 @@ public void TestRecognizer()

var onlyEvent = (CompositeEvent)events[0];

Assert.AreEqual(3, onlyEvent.ComponentCount);
Assert.AreEqual(7.136, onlyEvent.EventStartSeconds);
Assert.AreEqual(12.224, onlyEvent.EventEndSeconds);
Assert.AreEqual(5, onlyEvent.ComponentCount);
Assert.AreEqual(5.12, onlyEvent.EventStartSeconds);
Assert.AreEqual(12.256, onlyEvent.EventEndSeconds);
Assert.AreEqual(105, onlyEvent.LowFrequencyHertz);
Assert.AreEqual(180, onlyEvent.HighFrequencyHertz);
Assert.AreEqual(24.076815193551525, onlyEvent.Score, TestHelper.AllowedDelta);
Assert.AreEqual(0.476507384367336, onlyEvent.ScoreNormalized, TestHelper.AllowedDelta);
Assert.AreEqual(21.716400254, onlyEvent.Score, TestHelper.AllowedDelta);
Assert.AreEqual(0.9470146022, onlyEvent.ScoreNormalized, TestHelper.AllowedDelta);
}
}
}

0 comments on commit d8ec8a9

Please sign in to comment.