{"id":32766432,"url":"https://github.com/mianmharoon/deeplearning_coreml_swiftui_bonefracturedetection","last_synced_at":"2026-04-29T20:35:52.784Z","repository":{"id":321839790,"uuid":"1087209892","full_name":"MianMHaroon/DeepLearning_CoreML_SwiftUI_BoneFractureDetection","owner":"MianMHaroon","description":"An elegant macOS demo app built with SwiftUI that leverages CoreML for real-time bone fracture detection from X-ray images. This project demonstrates how deep learning models can be seamlessly integrated into Swift-based apps for medical image analysis and AI-powered diagnostics.","archived":false,"fork":false,"pushed_at":"2025-10-31T21:03:28.000Z","size":21022,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-31T21:21:32.799Z","etag":null,"topics":["ai","computer-vision","coreml","coreml-framework","coreml-models","deep-learning","deeplearning","healthcare-application","imageclassification","ios","machine-learning","macos","medical-image-processing","medical-imaging","medical-imaging-classification","swift","swift6","swiftui","visionframework"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/MianMHaroon.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-31T14:43:08.000Z","updated_at":"2025-10-31T21:07:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/MianMHaroon/DeepLearning_CoreML_SwiftUI_BoneFractureDetection","commit_stats":null,"previous_names":["mianmharoon/deeplearning_coreml_swiftui_bonefracturedetection"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MianMHaroon/DeepLearning_CoreML_SwiftUI_BoneFractureDetection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MianMHaroon%2FDeepLearning_CoreML_SwiftUI_BoneFractureDetection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MianMHaroon%2FDeepLearning_CoreML_SwiftUI_BoneFractureDetection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MianMHaroon%2FDeepLearning_CoreML_SwiftUI_BoneFractureDetection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MianMHaroon%2FDeepLearning_CoreML_SwiftUI_BoneFractureDetection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MianMHaroon","download_url":"https://codeload.github.com/MianMHaroon/DeepLearning_CoreML_SwiftUI_BoneFractureDetection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MianMHaroon%2FDeepLearning_CoreML_SwiftUI_BoneFractureDetection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282592413,"owners_count":26694871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-04T02:00:05.887Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ai","computer-vision","coreml","coreml-framework","coreml-models","deep-learning","deeplearning","healthcare-application","imageclassification","ios","machine-learning","macos","medical-image-processing","medical-imaging","medical-imaging-classification","swift","swift6","swiftui","visionframework"],"created_at":"2025-11-04T07:01:15.216Z","updated_at":"2025-11-04T07:03:34.476Z","avatar_url":"https://github.com/MianMHaroon.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bone Fracture Detector — macOS SwiftUI Demo\n\n\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://github.com/user-attachments/assets/13a18ae7-d191-4aab-9718-5330e88f6455\" width=\"800\" alt=\"Bone Fracture Detection\" /\u003e\n\u003c/p\u003e\n\n---\n\n\u003e **Disclaimer:** This project is for **educational and research purposes only**. It must **not** be used for real medical diagnosis.\n\n---\n\n\nA simple macOS demo app built with **SwiftUI** using a **Core ML image classification model** to detect bone fractures from X‑ray images.\n\nI used a publicly available dataset from Kaggle, formatted it for Core ML training, then converted it into `.mlmodel` format.\n\nDataset format used for Create ML / Core ML training:\n\n```\ntrain/\n ├─ shoulderfracture/\n │   └─ images...\n └─ forearmfracture/\n     └─ images...\n```\n\nYou can train your own model using this same structure. I have also attached the formatted dataset to make training easier.\n\n---\n\n## How to Run the Project\n\n1. Download or clone this repository.\n2. Open the `.xcodeproj` file in **Xcode**.\n3. Press **Run** to launch the macOS app.\n\nThe `.mlmodel` file is already included, so the app will work immediately.\n\n---\n\n## Core ML Model\n\n* Dataset taken from Kaggle.\n* Converted into Core ML format.\n* Trained using Create ML with the folder structure shown above.\n\nYou may replace the model with your own by training in Create ML and dropping the new `.mlmodel` file into the Xcode project.\n\n---\n\n## License\n\nMIT License\n\n---\n\n## Author\n\n**Muhammad Haroon**\nEmail: [mianmharoon72@gmail.com](mailto:mianmharoon72@gmail.com)\nLinkedIn: [https://www.linkedin.com/in/mian-haroon](https://www.linkedin.com/in/mian-haroon)\n\n---\n\n## References\n\n* [Kaggle dataset (original notebook used)](https://www.kaggle.com/code/sinatavakoli/bone-fracture-detection/output)\n* [CoreML Tools Documentation](https://coremltools.readme.io/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmianmharoon%2Fdeeplearning_coreml_swiftui_bonefracturedetection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmianmharoon%2Fdeeplearning_coreml_swiftui_bonefracturedetection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmianmharoon%2Fdeeplearning_coreml_swiftui_bonefracturedetection/lists"}