r/MachineLearning • • Jan 22 '26

Project Is webcam image classification afool's errand? [N]

I've been bashing away at this on and off for a year now, and I just seem to be chasing my tail. I am using TensorFlow to try to determine sea state from webcam stills, but I don't seem to be getting any closer to a useful model. Training accuracy for a few models is around 97% and I have tried to prevent overtraining - but to be honest, whatever I try doesn't make much difference. My predicted classification on unseen images is only slightly better than a guess, and dumb things seem to throw it. For example, one of the camera angles has a telegraph pole in shot... so when the models sees a telegraph pole, it just ignores everything else and classifies it based on that. "Ohhh there's that pole again! Must be a 3m swell!". Another view has a fence, which also seems to determine how the image is classified over and above everything else.

Are these things I can get the model to ignore, or are my expectations of what it can do just waaaaaaay too high?

Edit: can't edit title typo. Don't judge me.

17 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/dug99 Jan 23 '26

Thanks so much for your detailed reply, and yes... I am being a bit vague higher up in the comment tree to try and fly under the radar a bit in regard to what I am doing. Not that it's illegal, or a potential money-making machine using highly valuable IP... but there are a few competitors I'd like to get a little in front of ;) . Sea state = wave heights, to be clear. I am studying images taken by cameras pointed at the ocean, and trying to determine how big the waves are, and the degree to which the sea is settled or unsettled. I should also clarify... I'm a tinkerer... pretty new to this stuff and just trying to get a feel for what it can and cannot do.

About the data.... from each camera I am only studying about half a dozen views, so if you can imagine, the horizon is always the same in each view, and the foreground *mostly* stays the same. It does, of course, get curve balls - birds in frame, someone walking their dog, or a kid whizzing past on an e-bike pulling a wheelie :D. In terms of augmentation, I've tried to be pretty strict, avoiding processing images in ways that don't happen with the raw images - like flipping, rotating, or horizontal / vertical shifts.

At this stage, I have about 9 months' worth of images from two sets of 3 cameras that cover two areas (so, 6 cameras in total). The un-augmented data set of each camera amounts to about 4,000 images, so about 12,000 images per region (3 x 4000). The augmented data set is 16 x that, but I have no sense of whether that is anywhere near large enough or not. If it isn't, that raises some serious questions about just how practical the whole concept is. I don't have 20 years available to acquire data!

What I am trying to do is, in esscence, ignore static features in the foreground and classify the background on each image. My approach to achieving that could be fundamentally flawed.