Is there a way to detect that a sewer drain pipe has clogged and is in the process of backing up? I'm not looking for a) advice like "don't put grease or tampons down the drain" or b) here are some hints that things may not be right (like a gurgling toilet or strange smells). I've been Googling for products or techniques to know for sure that there's a clog but coming up with nothing.

I'm surprised in 2022 how primitive this is given how critical it is. A clog will essentially shut down your house until it's fixed but I can't find any way to know you're clogged until it's too late and you have sewage on your basement floor. In theory, even a sewage-proof webcam inside the pipe would be ok: I'd rather look at a pic of sewage once a day then have to clean it off the floor.

I know commercial septic systems have high-end monitoring gear. Anyone know of any way to do this for the residential market? I'm in the US and on septic if that matters.