Neural implants can help treat brain disorders such as Parkinson’s disease and epilepsy by directly modulating abnormal activities—and the University of Toronto’s Xilin Liu is working with microelectronics and artificial intelligence to make this emerging technology both safer and smarter.