There are a lot of different philosophical positions with regard to the mind-body problem, but very few attempts at a testable scientific theory about how consciousness works. Integrated Information Theory (IIT) is such an attempt.
Nature Opinion article: https://www.nature.com/articles/nrn.2016.44
Wiki: https://en.wikipedia.org/wiki/Integrated_information_theory