How do you build a digital detective? AI, ingenuity, and a whole lot of research.