BTW, the part about knowing who's going to use the door and who isn't is probably doable with cameras and enough processing power.
It is possible, and it has been built. A couple of colleagues in Sweden did just that for one manufacturer, more than fifteen years ago. The idea was to reduce the amount of heat lost from unnecessary door openings in winter, and to a lesser extent from cooling losses in summer.
It would recognize who was aiming for the door versus those that just walked past. It wasn't fooled by dogs or kids (would open for kids, but not dogs) or things like suitcases or prams. During development they built a version that would only open if you did the Vulcan hand sign thing.
But it was too expensive. Automatic doors are not a high-margin business - there's many competitors - and the actual savings did not make up for the higher price. The actual energy losses are pretty minimal for most shops, and door openings are usually not in error. Those that have a real problem with it tend to use revolving or double doors already.
Also, it didn't help that the shops might have needed permission to mount what is effectively a camera pointing out on the street.
Today the hardware would be cheaper, and cameras are far more acceptable. But from what I heard customer interest would still be small.