Models of adaptation and behavioural patterns in complex systems in crisis