Dynamic controlled pattern extraction and pattern-based model predictive control. (January 2022)