Learning query-class dependent weights in automatic video retrieval | Synapse