Referring to a movie concept in Statement of purpose I'm writing my statement of purpose for computer science master's program.

Can I refer to the concept of a movie that I have watched and kept me wondering and aroused my curiosity? I'm talking about Steven Spielberg's masterpiece, “Artificial Intelligence”. It really had a key role in motivating me to continue for postgraduate studies and research in the field.

Thank you in advance.
You "can" do what you want in a Statement of Purpose, but if you hope that this remark will inspire the committee, or show how inspired you are, it will likely miss the mark.

Generally, I have the impression that you may misunderstand what the Statement of Purpose is for - but you are not alone. From browsing Academia.SE, it is clear that the SOP is easily the most misunderstood part of the application package. I encourage you to browse through the questions here related to SOPs, and gauge how senior professors feel about it. Particularly, look at this excellent resource.

To summarize:

See it as a freeform document where you can document anything that is easy to miss in your CV or letters, or which may need further explanation. Do not see it as a place to sketch your "journey so far", discuss your lifelong dream to become a scientist, or explain how you feel the strong urge to change the world. See it from the perspective of a critical reviewer of your application and what they look for. Will them knowing how a Spielberg movie motivated you to pursue AI make you more likely to succeed in grad school? It's highly unlikely, so why would they care? Better to spend the short attention span that every application gets on what relevant previous research experience you had.