>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.