{"id":22804437,"url":"https://github.com/jingew/critical-period-analysis","last_synced_at":"2026-03-10T08:02:52.217Z","repository":{"id":187392331,"uuid":"676710803","full_name":"JingeW/Critical-Period-Analysis","owner":"JingeW","description":"A computational explanation for face-learning behaviors by using deep artificial neural networks","archived":false,"fork":false,"pushed_at":"2024-05-31T16:23:45.000Z","size":5517,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-23T16:38:22.990Z","etag":null,"topics":["casia","computational-biology","dnn","face-recognition","knowledge-distillation","machine-learning","mtcnn","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JingeW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-09T20:39:02.000Z","updated_at":"2024-12-12T19:29:30.000Z","dependencies_parsed_at":"2025-03-30T20:38:28.783Z","dependency_job_id":null,"html_url":"https://github.com/JingeW/Critical-Period-Analysis","commit_stats":null,"previous_names":["jingew/critical_period_face_recognition","jingew/critical-period-analysis"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/JingeW/Critical-Period-Analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingeW%2FCritical-Period-Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingeW%2FCritical-Period-Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingeW%2FCritical-Period-Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingeW%2FCritical-Period-Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JingeW","download_url":"https://codeload.github.com/JingeW/Critical-Period-Analysis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JingeW%2FCritical-Period-Analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30327558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["casia","computational-biology","dnn","face-recognition","knowledge-distillation","machine-learning","mtcnn","python"],"created_at":"2024-12-12T10:08:09.694Z","updated_at":"2026-03-10T08:02:52.168Z","avatar_url":"https://github.com/JingeW.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Critical Period Analysis on Face Recognition\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)\n\nWe provide a full computational account for face-learning behaviors by using deep artificial neural networks and show that impaired face-learning can be restored when providing information within a critical period.\n\n📃 [Read the Full Paper](https://www.cell.com/patterns/pdf/S2666-3899(23)00297-0.pdf)\n\n## Requirements\n1. numpy\n2. pandas\n3. scipy\n4. pickle\n5. matplotlib\n6. sklearn\n7. torchvision\n\n## Data\nThe dataset used in this project is [CASIA-WebFace](https://www.kaggle.com/datasets/debarghamitraroy/casia-webface). \\\nYou can download all the data used in this project with the [link](https://drive.google.com/file/d/1KxNCrXzln0lal3N4JiYl9cFOIhT78y1l/view).\n\nHere are some examples of the data:\n\n![Data Exp](Figs/Fig1-A.png)\n\n## Disclaimer\nThis project is for academic research purposes only. The code in this repository is released under the MIT License.\nIf you use the data provided, please cite *Yi, Dong, et al. \"Learning face representation from scratch.\" arXiv preprint arXiv:1411.7923 (2014).*\n\n## Data Preprocessing\nWe applied foveate blurring to generate the data using different eye fixations.\n\n![Data Prep](Figs/Fig1-C.png)\n## Observations\nWe found the critical period played an important role in the learning phase of face recognition.\n\n![The Grad-CAM for an example face](Figs/Fig2-E.png)\n![The Grad-CAM group average across faces](Figs/Fig2-F.png)\n## Recovery\nWe also proposed a method to recover the impairments caused during the Critical Period with an extremely low learning rate.\n\n![KL-AT](Figs/Fig6-A.png)\n\n\nWith Knowledge Distillation and Attention Transfer, we recovered the accuracy of the impaired model.\n\n\u003cimg src=\"Figs/Result.png\" width=\"350\"\u003e \u003cimg src=\"Figs/Fig6-D.png\" width=\"400\"\u003e\n\nThe recovery is also confirmed by statistical metrics\n\n\u003cimg src=\"Figs/Result_stat.png\" width=\"800\"\u003e\n\n## Citation\n\n@article{wang2024critical,\n  title={A critical period for developing face recognition},\n  author={Wang, Jinge and Cao, Runnan and Chakravarthula, Puneeth N and Li, Xin and Wang, Shuo},\n  journal={Patterns},\n  volume={5},\n  number={2},\n  year={2024},\n  publisher={Elsevier}\n}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingew%2Fcritical-period-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjingew%2Fcritical-period-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjingew%2Fcritical-period-analysis/lists"}