Looks like they have adapted the Sentient Armor from the comics. From Wikipedia
Renaissance Armor ("Heroes Return")/Sentient armor
First Appearance: Iron Man (vol. 3) #1 (February 1998)
Fresh upon his return from the "Heroes Reborn" universe, Tony constructed this armor which served as a new beginning, combining cutting-edge technology with classic lines. The armor possessed energy-absorption strips, as well as a "horned" faceplate, reminiscent of the first red-and-gold armor, and a pentagonal chest beam. Its most useful feature was a completely self-contained life support system, allowing Tony to completely cut himself off from the outside world while relying on food pills and the armor's own internal atmosphere if he was in a hostile environment, a feature that came in particularly useful when he was abducted by the Brood to participate in a contest against other heroes, the armor's internal life support allowing Tony to escape infection by the mood-altering nanites the Brood were using to keep the heroes too aggressive to consider their situation in depth long enough to develop a means of curing his allies.[8]
This armor eventually achieved sentience due to Tony downloading Jocasta into the armor- thus corrupting the usual failsafes Tony had installed to prevent such an occurrence happening as Jocasta unintentionally infected the armor with the 'Ultron Imperative', a system that would cause Ultron's creations to rebuild him if he was ever destroyed-, lightning strikes sustained during a fight with Whiplash providing the necessary 'nudge' to push the armor into full sentience based on Tony's own mind. Although the armor's new tactical abilities made it far more efficient than previous armors, able to evade attacks based on past experience with opponents, its lack of human morality caused it to kill Whiplash in its 'test drive', subsequently becoming increasingly obsessed with merging with Tony so that they would become Iron Man on a permanent basis (on a more practical note, it also suffered from a power supply problem as it ran down its batteries at a far more rapid rate due to the energy required to sustain its sentience). Although it attempted to kill Tony in a final confrontation on a deserted island, when Tony suffered a heart attack, it reverted to its default programming, sacrificing its own central power source to help sustain Tony's heart. It was later salvaged by the 'Sons of Yinsen'- a cult who followed Ho Yinsen- to use as a host for Yinsen's brain, only for Ultron to take control of the armor before it was destroyed for good.