Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
I am so sorry that you've run into additional problems with this notebook. I've checked, and I get the same error with 2D that you do. I have flagged this problem for our team so that the scientist who wrote the code can provide an update. (I know you are having issues with steps following that, too. I can't tell until we get 2D working, but I've noted that you have problems with 4, 5, and 7, too.)
I'll provide an update as soon as possible.
Amy
I'll provide an update as soon as possible.
Amy
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Thank you for your help!
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
You had no trouble with cell 3?
But then had an error with 4 and 5?
Just confirming. I want to make sure I know which blocks you've run into an error running.
Amy
Science Buddies
But then had an error with 4 and 5?
Just confirming. I want to make sure I know which blocks you've run into an error running.
Amy
Science Buddies
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Yes, I had absolutely no problems with code block 3 at all. Code blocks 2d,4,5,6, and 7 don’t work. If possible, can this problem be fixed by tomorrow? It is okay if they cannot fix it by then.
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hi! There was a problem detected today, and the code on the site has been updated. With the correction in place, the notebook runs properly.
The update fixes the error I was getting in 2D. (Your error isn't exactly the same, but you will need to run the updated notebook and see.)
A few things in advance:
1) You will need to download the .zip file in Step 2 of the project and copy the .ipynb file to your google drive. (Rename or delete the other version you were using. You need to use the new file instead.) [[Project https://www.sciencebuddies.org/science- ... tification ]]
2) Before opening the notebook -- delete all other files in the folder except for the data folder (which contains your subfolders of graphics) and the .ipynb file.
3) Because you ran through other blocks, like 3, other folders were created. They need to be removed just to ensure that everything runs from scratch as you start over with running it.
4) Also make sure you remove the my_model.keras (if you see it). Depending on how many blocks you ran, you may or may not see that in your files. If it's there, delete it.
5) You will be back to just your data folder (with the subfolders of images) and the notebook file.
6) Doubleclick the notebook file (tick_identification.ipynb) to open it in colab.
Keep in mind that anytime you reopen the notebook, you will need to run through the blocks before the one you are ready to work on, including the block to remount the Google drive. This is also true if the runtime disconnects (it will time out, and you need to rerun the blocks). (The UnidentifiedImageError error you showed before suggests that your runtime might have disconnected.)
One way to do this is to go to the block you are ready to work on and then choose Runtime / Run Before.
That will process the previous blocks. Wait for those to finish (approving the Google mounting, if prompted), and then run your next block.
If you run into a problem, let me know.
Amy
Science Buddies
The update fixes the error I was getting in 2D. (Your error isn't exactly the same, but you will need to run the updated notebook and see.)
A few things in advance:
1) You will need to download the .zip file in Step 2 of the project and copy the .ipynb file to your google drive. (Rename or delete the other version you were using. You need to use the new file instead.) [[Project https://www.sciencebuddies.org/science- ... tification ]]
2) Before opening the notebook -- delete all other files in the folder except for the data folder (which contains your subfolders of graphics) and the .ipynb file.
3) Because you ran through other blocks, like 3, other folders were created. They need to be removed just to ensure that everything runs from scratch as you start over with running it.
4) Also make sure you remove the my_model.keras (if you see it). Depending on how many blocks you ran, you may or may not see that in your files. If it's there, delete it.
5) You will be back to just your data folder (with the subfolders of images) and the notebook file.
6) Doubleclick the notebook file (tick_identification.ipynb) to open it in colab.
Keep in mind that anytime you reopen the notebook, you will need to run through the blocks before the one you are ready to work on, including the block to remount the Google drive. This is also true if the runtime disconnects (it will time out, and you need to rerun the blocks). (The UnidentifiedImageError error you showed before suggests that your runtime might have disconnected.)
One way to do this is to go to the block you are ready to work on and then choose Runtime / Run Before.
That will process the previous blocks. Wait for those to finish (approving the Google mounting, if prompted), and then run your next block.
If you run into a problem, let me know.
Amy
Science Buddies
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Thank you so much for helping me out for this project! It works and I thank you and your team for helping me! (In fact, I'm sooo interested in this project, that I came up with a different variable: mosquitoes!) Thanks again! (Also, quick question: what does it mean if the recall score was 1? Does it mean 100%?)
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Great! I'm really glad to hear that you were able to run your notebook with no issues after grabbing the updated code. I'm even more glad to hear that you enjoyed this process and might look at doing something similar as an extension! I would love to hear how that goes.
Was your tick project for a school science project? Science fair? What grade are you in?
If you are interested in answering a few questions (by email) about your project, let me know. We sometimes highlight student projects in stories that are posted on our site.
As for the "recall" value.... there is extensive discussion of the metrics starting in step 4 in the project. Recall is explained in step 6. According to the project author, 1 does represent 100%. (So 0 is 0%, 0.2 is 20%, and so on...)
Amy
Science Buddies
Was your tick project for a school science project? Science fair? What grade are you in?
If you are interested in answering a few questions (by email) about your project, let me know. We sometimes highlight student projects in stories that are posted on our site.
As for the "recall" value.... there is extensive discussion of the metrics starting in step 4 in the project. Recall is explained in step 6. According to the project author, 1 does represent 100%. (So 0 is 0%, 0.2 is 20%, and so on...)
Amy
Science Buddies
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Yes! I would love to! Who do I email it to, if I did email you about this?
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
I did this for the science fair. Is it okay if I email you after the science fair? (After March 11th, 2025)
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hi - Great! I will reach out to you after the science fair. (I will email you to follow up with questions. The story wouldn't be about your results, but more about what led you to this project, whether this was your first time working with a project like this, and so on.)
Good luck finishing up the project for the science fair.
Amy
Science Buddies
Good luck finishing up the project for the science fair.
Amy
Science Buddies
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hey- I don't want to disturb you, but I have yet another question.
- Attachments
-
- Screenshot 2025-01-22 191312.png (114.34 KiB) Viewed 9764 times
-
- Screenshot 2025-01-22 191324.png (78.12 KiB) Viewed 9764 times
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hi! I hope you are can help, but it seems like there is another tensor false error in the code.
Last edited by Mrusia on Wed Jan 22, 2025 7:20 pm, edited 1 time in total.
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Nevermind- I fixed it!
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hi again! I need help on part of my code for the science fair. This isn't the tick code--it's something else, but it's really got me crazy. I've probably been stuck on this problem for about an hour now, so I hope you can help!
BTW: Every other code block before this works.
BTW: Every other code block before this works.
- Attachments
-
- Screenshot_18-2-2025_16396_colab.research.google.com.jpeg (170.75 KiB) Viewed 8818 times
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
I'm sorry for any confusion, but there is another problem with another block that I just ran again. Here is what is happening:
- Attachments
-
- Screenshot_18-2-2025_164729_colab.research.google.com.jpeg (95.3 KiB) Viewed 8816 times
-
- Screenshot_18-2-2025_164655_colab.research.google.com.jpeg (49.19 KiB) Viewed 8816 times
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
I am so sorry, again. I just fixed the problem.
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Just confirming that I saw your messages, and it sounds like you resolved the issues on your own, which is great. I hope things go well with the science fair.
Amy
Amy
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hi - I hope the science fair went well! I am just leaving a note here to confirm that I sent you email last week about answering some questions for a story. If you didn't receive it, let me know.
Thanks!
Amy
Science Buddies
Thanks!
Amy
Science Buddies
-
Mrusia
- Posts: 30
- Joined: Mon Jan 06, 2025 8:32 am
- Occupation: Parent
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Hi amycc!
I did receive your email, but would it be possible to answer these questions after Thursday of next week?
Thanks!
I did receive your email, but would it be possible to answer these questions after Thursday of next week?
Thanks!
-
amyCC
- Site Admin
- Posts: 398
- Joined: Wed Apr 01, 2020 4:02 pm
- Occupation: Moderator
- Project Question: *
- Project Due Date: *
- Project Status: Not applicable
Re: Use Machine Learning to Identify Lyme Disease-Transmitting Ticks
Of course!
I look forward to hearing from you.
Amy
I look forward to hearing from you.
Amy

