Chen Wei's commercial bakery in Shanghai was having the worst week of his 15-year career. His automated bread line was producing 10,000 loaves per day for major supermarket chains, but suddenly everything was going wrong. Loaves were collapsing after baking, sandwich bread was crumbling when sliced,