{"id":16577150,"url":"https://github.com/smartmonkey-git/aki_detection","last_synced_at":"2025-10-07T22:17:53.115Z","repository":{"id":191039395,"uuid":"342934972","full_name":"SmartMonkey-git/AKI_Detection","owner":"SmartMonkey-git","description":null,"archived":false,"fork":false,"pushed_at":"2021-03-21T20:05:44.000Z","size":301,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T07:14:59.176Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SmartMonkey-git.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}},"created_at":"2021-02-27T19:00:17.000Z","updated_at":"2021-07-07T13:58:43.000Z","dependencies_parsed_at":"2023-08-28T20:01:40.121Z","dependency_job_id":null,"html_url":"https://github.com/SmartMonkey-git/AKI_Detection","commit_stats":null,"previous_names":["rufusgladiuz/aki_detection","smartmonkey-git/aki_detection"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMonkey-git%2FAKI_Detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMonkey-git%2FAKI_Detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMonkey-git%2FAKI_Detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SmartMonkey-git%2FAKI_Detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SmartMonkey-git","download_url":"https://codeload.github.com/SmartMonkey-git/AKI_Detection/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242097417,"owners_count":20071252,"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","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":[],"created_at":"2024-10-11T22:09:57.551Z","updated_at":"2025-10-07T22:17:48.083Z","avatar_url":"https://github.com/SmartMonkey-git.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\n\n**This Repository is currenlty under development**\n\nThis project lets you detect Acute Kidney Injures (AKI's) from time series data. It does not use Machine- or Deep learning, however it implements rules defined by scientific papers to that define an AKI. The used papers can be found at the bottom of the read me. \n\nIf you would like to see the state of the project check out the trello board. -\u003e\n[Trello Board](https://trello.com/b/JrzoR8ww)\n\n## Getting started\n\nMost of the definitions of AKI use a basline creatinine value. This value is individual for each patient and can depend on diffent factors. Using the **aki_baseline_calculation.py** you are able to calculate those values. Most of the definitions use age, gender and ethnicity of the patient.\nUsing the basline you are able to generate aki incidences for time series data. Import one of the __aki_detection.py__ scripts and pass the time series plus your creatinine baseline.\n\nYour input table needs to be a pandas dataframe and might differ a little bit for the different definitions. However for the RIFLE definition it should look like this:\n\n| PatientID        | Cr_Value           | Date  |\n| ------------- |:-------------:| -----:|\n| 1234      | 1.32 | 12.3.2020 |\n| 1234      | 1.01      |   17.3.2020 |\n| 1234 | 1.25      |    02.4.2020 |\n\nYou should receive a new dataframe with the AKI levels for every date. \n\nExample:\n\n\n```python\nfrom aki_baseline_calculation import get_MDRD_baseline_creatinine as MDRD_Cr_baseline\nfrom aki_detection_rifle_score import detect_akis\nfrom aki_visualization import visualize_aki_data\n\npatientID = 1234\ncr_time_series = pd.read_csv(\"example.csv\")\n\ncr_baseline = MDRD_Cr_baseline(age = 42, is_female = True, is_black = True)\n\ncr_baseline_df = pd.DataFrame(data = [{\"PatientID\": patientID, \"Create_Baseline\": cr_baseline}])\n\naki_df = detect_akis(cr_time_series, cr_baseline_df)\n\nvisualize_aki_data(aki_df[aki_df[\"PatientID\"] == patientID], cr_baseline)\n```\n\nExecuting this code and naming everything right should give you these graphs.\n\n![model1](./ReadMeAssets/example.png)\n\n\n# Further readings on AKI definitions\n\n## The definition of acute kidney injury and its use in practice\n\n- [ ] Read\n\nPaper: [Mark E. Thomas 2017](https://www.sciencedirect.com/science/article/pii/S0085253815300351)\n\n\n## RIFLE (Pediatric Risk, Injury, Failure, Loss, End Stage Renal Disease) score identifies Acute Kidney Injury and predicts mortality in critically ill children : a prospective study\n\n- [ ] Read\n\nPaper: [Yadira A.2013](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4238883/)\n\n## The RIFLE and AKIN classifications for acute kidney injury: a critical and comprehensive review\n\n- [ ] Read\n\nPaper: [António2013](https://watermark.silverchair.com/sfs160.pdf?token=AQECAHi208BE49Ooan9kkhW_Ercy7Dm3ZL_9Cf3qfKAc485ysgAAApQwggKQBgkqhkiG9w0BBwagggKBMIICfQIBADCCAnYGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMIBmHZvDoXeCgJbYNAgEQgIICRwyBQjoe9O_yLnwvWrjoNLfdCHGyx7bvtozO5FVmjqGh32SmQ4ABjJQoOA7SAeTwVzxAoW8btrP2Vx0qMC6VqkIQnNpBFecEN3ZgEfKC3KLR-p-xRqA9w11XrUsIchiEeVduJE5kRGgvXd_hoV_YTm3UM71CJqPMb_6TgC4_T2_ihLWsoSryjvUbkTLt49_Ggf0dEM7vm0A8sxJ7NepKfSDGdpfiwiHeGlzRuRLDOVTtWjq3c1LhQmDABrgBaCaA2sIghAvTAXqYdcuw2v4DBfAdkeVvK8fGHaruSNQawoe8shSmr50CJDrJ8GDzUq5BaepaS1z-L_NVO0er3lE_4ATLxftSRWXey44rMetsjCn_vDnk0sdWYyFIj7p2kCQbUI6HphGuI95g52IxClzrHLbs2hj9HNlsCEdR6aNNGnk3itRQCem8aR3gV9AloddP5LdUFYmWVS8i3n7vIbWvPJORgKTdnHPu4FhmB_CpHuKqcG9f_7w_xAx5GxvMKsPSE0f3W0UKaGfnfp85lwzu9zJpgWcDzqv8C8SqHZtwXeoFN3YP9fqunCfEn5WCCqKWG_zBVglGJA476snoFWSvFXbYvsia6S2RcvmqsbCAYW_0SxQvmfuQtJKt6ISw4PIbRrtph_tkzyQ0V6UZ3KxcUsfQUpgrCwDq_wk0zgB-TPa2sUtt8zdJPlkZ4EqBBgAGfHinVsUV4tmlOQQ2jSEOK2G-YkvOFRVtRSqC-Z42eEGJzDKWY_c0trVpVM152AI424BRcFig_4g)\n\n# On Baseline Creatinine\n\n## A comparison of three methods to estimate baseline creatinine for RIFLE classification\n\n- [x] Read\n\nPaper: [Jakub Závada2010](https://academic.oup.com/ndt/article/25/12/3911/1863037)\n\n\n## Comparison of Three Methods Estimating Baseline Creatinine For Acute Kidney Injury in Hospitalized Patients: a Multicentre Survey in Third-Level Urban Hospitals of China\n\n- [ ] Read\n\nPaper: [Lang X2018](https://www.karger.com/Article/FullText/487366)\n\n## The calculation of baseline serum creatinine overestimates the diagnosis of acute kidney injury in patients undergoing cardiac surgery\n\n- [ ] Read\n\nPaper: [Candela-Toha2012](https://academic.oup.com/ndt/article/25/12/3911/1863037)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartmonkey-git%2Faki_detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartmonkey-git%2Faki_detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartmonkey-git%2Faki_detection/lists"}