>the machine isn't going to actually know if they need to be replaced or not
The machine can know if it measures differential pressure across the filter. If the DP across the filter is too high (indicating a clogged filter), the filter needs to be replaced.
I know for a fact that my Levoit unit isn't that sophisticated because when it asks you to replace the filter there's simply a button which resets the filter life back to 100% that you're supposed to press after changing it - if it were actually doing anything clever to determine the state of the filter then you wouldn't have to tell it that it's been replaced, it would be able to tell on its own. I suspect it's nothing more than a timer which triggers the warning after running for some hardcoded number of hours.
A machine could, but is this machine sophisticated enough to do that? Why do we play around with hypotethical scenarious where this warning message on another device might not be shitty DRM?
The machine can know if it measures differential pressure across the filter. If the DP across the filter is too high (indicating a clogged filter), the filter needs to be replaced.