{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/drive-deep-reinforced-accident-anticipation","title":"DRIVE: Deep Reinforced Accident Anticipation with Visual Explanation","arxiv_id":"2107.10189","date":"2021-07-21","proceeding":"ICCV 2021 10","authors":["Wentao Bao","Qi Yu","Yu Kong"],"abstract":"Traffic accident anticipation aims to accurately and promptly predict the occurrence of a future accident from dashcam videos, which is vital for a safety-guaranteed self-driving system. To encourage an early and accurate decision, existing approaches typically focus on capturing the cues of spatial and temporal context before a future accident occurs. However, their decision-making lacks visual explanation and ignores the dynamic interaction with the environment. In this paper, we propose Deep ReInforced accident anticipation with Visual Explanation, named DRIVE. The method simulates both the bottom-up and top-down visual attention mechanism in a dashcam observation environment so that the decision from the proposed stochastic multi-task agent can be visually explained by attentive regions. Moreover, the proposed dense anticipation reward and sparse fixation reward are effective in training the DRIVE model with our improved reinforcement learning algorithm. Experimental results show that the DRIVE model achieves state-of-the-art performance on multiple real-world traffic accident datasets. Code and pre-trained model are available at \\url{https://www.rit.edu/actionlab/drive}.","url_abs":"https://arxiv.org/abs/2107.10189v2","url_pdf":"https://arxiv.org/pdf/2107.10189v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"drive-deep-reinforced-accident-anticipation","repo_url":"https://github.com/Cogito2012/DRIVE","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"accident-anticipation","task_name":"Accident Anticipation"},{"task_slug":"decision-making","task_name":"Decision Making"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2107.10189","atlas_url":"https://app.syntology.ai/?focus=2107.10189","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2107.10189"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Cogito2012/DRIVE","reach":null}],"summary":{"ran":11,"unverified":1},"by_repo_kind":{"official":{"samples":12,"ran":11,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"80cf009a945e687e","entry":"BasicConv3d","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"80cf009a945e687e"}},{"code_sha256_prefix":"34c11f5f14cb77c9","entry":"Mixed_3b","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"34c11f5f14cb77c9"}},{"code_sha256_prefix":"7cecec64bd233fa2","entry":"Mixed_3c","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7cecec64bd233fa2"}},{"code_sha256_prefix":"2891be157bdfa02b","entry":"Mixed_4b","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2891be157bdfa02b"}},{"code_sha256_prefix":"f9897e43b20b035d","entry":"Mixed_4c","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f9897e43b20b035d"}},{"code_sha256_prefix":"d12e1bb8ed9103d3","entry":"Mixed_4d","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d12e1bb8ed9103d3"}},{"code_sha256_prefix":"5f4d07cf693f751b","entry":"Mixed_4e","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5f4d07cf693f751b"}},{"code_sha256_prefix":"437f705ae1e10456","entry":"Mixed_4f","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"437f705ae1e10456"}},{"code_sha256_prefix":"6908af6927c585d2","entry":"Mixed_5b","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6908af6927c585d2"}},{"code_sha256_prefix":"e8ed30ec8ef24d8b","entry":"Mixed_5c","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e8ed30ec8ef24d8b"}},{"code_sha256_prefix":"e593eb1c2677e92b","entry":"SepConv3d","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e593eb1c2677e92b"}},{"code_sha256_prefix":"6c01de286c505d3a","entry":"TASED_v2","repo":"Cogito2012/DRIVE","repo_kind":"official","path":"src/saliency/tasednet.py","file_url":"https://github.com/Cogito2012/DRIVE/blob/HEAD/src/saliency/tasednet.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6c01de286c505d3a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}