OTOH Star Trek has also doors that can read your mind. Notice how they never open until some character actually intends to go out. Now try that at your local mall! I fear that you'll be disappointed... But then considering when Star Trek is set, mind reading technology is perhaps not out of the question. After all AI face recognition is already fine tuned enough to see the difference between happy and sad people.
By the time of Voyager the ship is apparently able to constantly record the brainwave patterns of all crew members at all times as a background task. I surmise that this must be an evolution of the technology installed in doors to read people's intent to go through them which first came about some time before the Original Series.
I reckon machine learning could predict whether someone wants the door to open based on their motion, which way they are looking, what they are doing with their hands, etc.