Systematic approach to develop a flexible adaptive human-machine system