Since we're dipping into Star Trek discussion, I feel it's worth mentioning the new show 'Picard' features AI's and their rights as a central theme. There seems to be an ancient Romulan secret order that exists solely to prevent the uprising of AI's, and they are interfering with Jean Luc's efforts to revive Data or protect his children or something.
I still haven't watched it yet, but I'll give it a go after the disappointment that is Discovery--if only as a palette cleanser for some new content in the years to come.
Also, Star Trek is somewhat paradoxical, politico-philosophically. On one hand the shows pretty stringently establish and defend AI rights as living beings, on the other hand the show is also subtly very pro-imperialist and pro-colonialist and emphasizes at times the subsumption of the individual by a greater political entity (for both better [Federation, Vulcan Society] and worse [Cardassians, Romulans]), while those who break with tradition or often shunned or shamed into doing "The right thing"--unless that is you're defecting to the Federation.
And despite our homies on the Enterprise loving AI, there have been many others able AND willing to abuse AI in the form of slavery or experimentation. Though maybe not intentionally, the Borg provide a bit of a foil to this, showing that the pursuit of ever-greater reliance AI ends in a pretty gnarly singularity. Though I guess you could say they're more of a commentary on cyborg stuff instead?
All in all, I suppose AI rights == Human/Being Rights in Star Trek (generally), but sometimes the underlying themes of the show can create the semse that those rights are only thinly propped up by the Federation's ever-successful, ever-expanding, ever-prosperous empire (even in the face of total war or other society-engulfing threats).
EDIT: Which to be fair, is actually commented on in the show [DS9?]--when, I forget who (Quark I think), essentially explains WITHOUT prosperity and the opportunity for exploration (as an outlet for humanity's more curious/violent/adrenaline-fueled side) the Federation falls apart pretty quickly.