I'm always a little bit cautious about stories discussing neuroimaging and the law. But this preliminary research looks intriguing:
This study uses neuroimaging and machine-learning techniques to reveal different brain activities correlated with these two mental states. Moreover, the study provides a proof of principle that brain imaging can determine, with high accuracy, on which side of a legally defined boundary a person's mental state lies.