Skip to content

Commit 117a9ed

Browse files
committed
add the readme file for the Malaria_Detection
1 parent 9fac6c1 commit 117a9ed

File tree

1 file changed

+44
-0
lines changed
  • examples/healthcare/application/Malaria_Detection

1 file changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<!--
2+
Licensed to the Apache Software Foundation (ASF) under one
3+
or more contributor license agreements. See the NOTICE file
4+
distributed with this work for additional information
5+
regarding copyright ownership. The ASF licenses this file
6+
to you under the Apache License, Version 2.0 (the
7+
"License"); you may not use this file except in compliance
8+
with the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing,
13+
software distributed under the License is distributed on an
14+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
KIND, either express or implied. See the License for the
16+
specific language governing permissions and limitations
17+
under the License.
18+
-->
19+
20+
# Singa for Malaria Detection Task
21+
22+
## Malaria
23+
24+
Malaria is caused by parasites and could be transmitted through infected mosquitoes. There are about 200 million cases worldwide, and about 400,000 deaths per year, therefore, malaria does lots of harm to global health.
25+
26+
Although Malaria is a curable disease, inadequate diagnostics make it harder to reduce mortality, as a result, a fast and reliable diagnostic test is a promising and effective way to fight malaria.
27+
28+
To mitigate the problem, we use Singa to implement a machine learning model to help with Malaria diagnosis. The dataset is from Kaggle https://www.kaggle.com/datasets/miracle9to9/files1?resource=download. Please download the dataset before running the scripts.
29+
30+
## Structure
31+
32+
* `malaria.py` in the `healthcare/data` directory is the scripts for preprocessing Malaria image datasets.
33+
34+
* `mararia_net.py` in the `healthcare/models` directory includes the CNN model construction codes by creating
35+
a subclass of `Module` to wrap the neural network operations
36+
of each model.
37+
38+
* `train_cnn.py` is the training script, which controls the training flow by
39+
doing BackPropagation and SGD update.
40+
41+
## Command
42+
```bash
43+
python train_cnn.py cnn malaria -dir pathToDataset
44+
```

0 commit comments

Comments
 (0)