Learning in automated manufacturing