The design and implementation of novel computational and machine learning approaches for modelling brain dynamics: towards more interpretable and real-time brain analysis