This week's notes will be rather brief as I have been absorbed in standard end-of-term turmoil. However, I did have time to implement the EM algorithm I described in my previous weeknotes and do some preliminary comparisons to the other training methods.
I started this week by implementing the EM approach I detailed in last week's weeknotes. As I suspected, this was actually quite a simple implementation as the logistic regression classifier is the exact same as in all the simple models. The only thing I had to change, which was something Aneesh pointed out to me in our previous meeting, was that there are far too many pixels to geometrically calculate the share of a bag's area each pixel represented. This wasn't a big problem, however, as it's something that can easily be approximated with Monte-Carlo sampling.
With that, I could then run the first comparison tests to see how much better MIL would perform compared to the other methods. However, seeing the results was sadly not as triumphant as I had hoped.
While this result left me feeling a bit despondent, it wasn't exactly unexpected. As I have commented in previous weeks, the closeness of filtered to omniscient meant that it was basically impossible for MIL to do better in this context. To quantify this point, I decided to go back and investigate why filtered was performing so well. To do this, I realised I should be looking at the label accuracy of the noisy synthetic data. By this I mean the probability that a point stays in the same habitat type even after the artificial noise has been added. To do this, I set the number of points extremely high (10,000 occurrences) and compared how label accuracy varies with the uncertainty threshold of the filter. In addition, I also plotted the percentage of the data that was left behind to show how big of an impact each filter had on the sample size.
This result revealed something obvious that I should have realised from the start. The problem is that an aggressive filter leaves you with essentially perfect label accuracy, so the comparison is essentially just against the omniscient model with a lower value of $n$. Therefore, a more interesting comparison will be to see how filtered compares to MIL as $n$ and the underlying uncertainty distribution vary. Varying $n$ is trivial, so that's the first thing I tested, and it gave some more hopeful results. In addition to just plotting the mean, I also shaded the range of scores across each fold.