Deep-learning system explores materials’ interiors from the outside