Worth reading about Autonomation (https://en.wikipedia.org/wiki/Autonomation), which originated in Toyota.
"Autonomation aims to prevent the production of defective products, eliminate overproduction and focus attention on understanding the problems and ensuring that they do not reoccur. "