Star Trek: The Next Generation (1987)
S7E23 Emergence
Stardate: 47869.2. The crew of the Enterprise encounters a series of bizarre glitches in the ship's computer systems, prompting them to suspect that it might be developing into a sentient entity. As they investigate the anomalies, the team grapples with the implications of artificial intelligence gaining consciousness and what it could mean for their mission and safety.