Advanced pattern matching is called science and has been how humans have made progress by taking data and writing down models for them. Now computers do it. End to end algorithms are 'black box' but machine learning in general is much broader than that and is providing understanding in many fields. Sorry you only see/know the "draw a box around a pedestrian' stuff, but try not to judge entire fields based off of limited exposure.