Sony has patented an AI system capable of independently identifying malfunctions in devices, from PlayStations to TVs and headphones.