Please see attached files.

2 answer below »
Please see attached files.


BIOL5301 Fruit fly Project This project is about designing optimal surveillance strategies for detecting incursions of fruit flies. Fruit flies are a serious biosecurity threat to Australia (and other countries). In areas where fruit fly species are established, they cause huge damages to crop yields and cost a lot of time and money to manage and control. Many areas are still free of many fruit fly species, and we want to keep it that way! For example, Perth is currently free of the very damaging Queensland fruit fly, and Kununurra in the north of WA is still free of the Mediterranean fruit fly that has spread through many areas of the south of WA. State governments have surveillance programs that aim to detect new incursions of fruit fly species as quickly as possible, so that they can then be eradicated before populations build up too far and become fully established. These surveillance programs involve placing fruit fly traps in specific locations. These traps use lures that attract fruit flies into the trap from some distance, and these traps are then checked for fruit flies at regular intervals. For more information on fruit flies in Australia, see the following links: https://www.perthnow.com.au/community-news/western-suburbs-weekly/queensland-fruit-fly-infestation-hits-dalkeith-veggie-patches-c-962123 http://www.watoday.com.au/wa-news/qfly-outbreak-eight-perth-suburbs-in-quarantine-zone-20151201-glcvz2.html https://www.agric.wa.gov.au/plant-biosecurity/queensland-fruit-fly-qfly-eradicated-perth-suburb https://www.agric.wa.gov.au/citrus/fruit-fly-western-australia https://www.agric.wa.gov.au/plant-biosecurity/queensland-fruit-fly https://www.agric.wa.gov.au/fruit/mediterranean-fruit-fly http://www.planthealthaustralia.com.au/national-programs/fruit-fly/ In this project, you will use a simulation model to evaluate different designs for a fruit fly surveillance system aimed at detecting new incursions of fruit fly in a small Australian fruit-growing town. All the files you need are in the zipped folder. Download the folder and extract it to a suitable location on your computer (or the lab computer). First, open and have a look at the ‘map.pdf’. It shows a map of the town. It is 1000x1000 pixels, with each pixel representing an area 10m by 10m. You can zoom in and look more closely. The state government has mapped the fruit trees in the town, and the locations of these trees are indicated on the map by small grey semi-transparent dots (each tree is at the centre of a dot). Note that some suburbs in the town have higher densities of fruit trees; these are the older more established suburbs. The dark black areas represent orchards, where there are a lot of these small grey semi-transparent dots close together and overlapping. Fruit flies do not fly long distances by themselves, and mainly spread between towns when people carry infested fruit. The local experts have noticed that past fruit fly incursions have tended to begin close to caravan parks, presumably because this is where tourists passing through town tend to stop and dump their rubbish (presumably including infested fruit). Experts have thus estimated that a new incursion is most likely to start near a caravan park (50% probability), or a visitor centre (20% probability), or the shopping area (12% probability), or along a main road (10% probability), with a remaining 8% chance of starting anywhere else in town. These high introduction risk locations are also shown on the map: the main roads through town (orange lines), caravan parks (red), visitor centre (orange), and shopping area (yellow). Next open R and then change the working directory to the extracted folder, and then open the ‘fruit fly pop 2.R’ script within R. This script runs a simple fruit fly population model to estimate how many female flies are likely to be leaving an infested fruit tree on any given day after the first female fly arrives at the tree. It accounts for the fruit fly life cycle, which means an individual spends a certain number of days as an egg, then as a larva, then as a pupa, then as a flying adult. It also accounts for the number or size of trees at a location, and thus the number of fruits to infest. First run the whole script to generate and save the population predictions. Then plot some of them. Look for the line ‘ntrees=4’ towards the end and enter the following plot command. You should see a plot of the expected number of female fruit flies that will be leaving an infested trees over time, following first infestation. Note how the lifecycle of the fruit fly leads to pulses of emigration as generations mature. Change the ‘ntrees=4’ to ‘ntrees=1’ and replot to see what happens if there was just one small tree at a location. Change it to ‘ntrees=10’ to see what happens if there were ten small trees at a location (or equivalently one very large one). Next, open the script ‘calc distances.R’ and run it. This will take a while, so be patient. It is calculating the distances between all the trees in the town, for use in the simulations of spread later on. It takes quite a lot of time to do these calculations now in advance, but it saves a lot of time later on when the simulations run. When it finishes, you should have a new data file called ‘allcloseones’ in your folder. This is quite a large file (~40MB), so make sure you have room for it on your disk or drive. Next, open the script ‘run sim.R’ and have a look at it. Note that there is a line in the script that allows you to specify the ‘luredist’; this is the maximum distance in metres from which a lure is able to attract a fly. Also note that it reads in a surveillance trap design file called ‘design_grid.csv’. And then note that it loads a number of data files at the start, including the tree locations, the tree distances we just calculated, the fruit fly population estimates we calculated earlier, and also the introduction risk map. You should also notice the ‘distwtfunc’ function definition… this is the dispersal kernel used in the model. A dispersal kernel is a probability density function showing how the likelihood of a fly spreading a certain distance declines as the distance increases. Run those lines to get a plot of the dispersal kernel. Now run the whole script. Make sure you are using an interface that allows the animation to show… RStudio may not work, but the basic interface in Mac and Windows should work fine, as should running from a terminal. You should see a map of the town and green dots spreading across the town. Light green dots indicate infested fruit trees, and dark green dots indicate the position of male fruit flies. If you look carefully at the start, you should also see the initial infestation tree, and then observe how the invasion progresses from there. The initial infestation tree is likely to be near a caravan park or visitors centre, or maybe a road or the shopping area, but not always of course. Sometimes when there are many infected trees around the start point, it might not be visible (eg. when it starts in an orchard). Eventually a male fly gets close enough to one of the traps (the purple crosses) and the invasion is detected. The trap that detected the fly is then shown with a light blue dot, and if you look at the output in the R console you can see how many days it took to detect the invasion. Run the model at least 10 more times, watching carefully how the invasion unfolds each time. As you watch, you could start thinking about how YOU would design a surveillance system to detect an invasion like this as quickly as possible. Where would you place the fruit fly traps? Would it be different if you wanted a surveillance system to detect an invasion with as few trees infected as possible? To start to address this question, open the ‘run many sims.R’ script. This is basically the same as the previous one, except it runs a large number of spread simulations one after the other automatically. Its graphical output is a bit different. It doesn’t show the flies; instead it shows each initial incursion tree as a dark blue dot and the trap that detects the incursion as a larger light blue dot. It also saves the results to data files. Check that the number of runs is set to 20 at the start of the file, and then run the script. It should take a little while, but not too long. After it has run, you should see that it has produced an output file called ‘results design_grid.csv’. Open this file in Excel and have a look at it. You should see the results for the 20 runs; for each run you should see the number of days until detection (time), the trap.id of the trap that made the detection, the number of male flies at the time of detection, and the number of trees infested at the time of detection. Now open the script ‘make grid design.R’ and run it. This is a very short script that makes a few simple surveillance trapping designs, and saves them to csv files. Open the ‘design1.csv’ file in Excel and have a look at it. Now open the ‘show design.R’ script, and run it. You should see the trap locations from 'design1.csv' shown on the town map. Change one of the trap locations in 'design1.csv' and save that file and then run the ‘show design.R’ script again. You should see that the trap location has changed. Now change the name of the file at the start of the ‘show design.R’ script so that you can see the other designs that were created with the ‘make grid design.R’ script. Your job is to compare the efficacy of a number of surveillance strategies. To do that properly, you need to do a large number of spread simulations for each design (much more than 20). This is because you need to capture the full range of possibilities of how a new invasion will unfold in space and time. You should aim to do 1000 or even 5000 for each design, but be aware that this could take quite a long time to run, depending on how powerful your computer is. Maybe try to do 100 simulation runs at first and time how long it takes, so you have an idea of how long to do a 1000 or 5000. You should then get your surveillance strategies represented in csv files. Some of the surveillance designs/strategies csv files are provided for you and some you need to create yourself. You can create these using R, or directly in Excel, but either way you should end up with each design represented in a separate csv file. The first design should be the standard square grid we have already created. The second design should be the same standard square grid, but with a reduced density ie only 25 traps in total. All other
Answered 33 days AfterSep 20, 2022

Answer To: Please see attached files.

Banasree answered on Oct 24 2022
46 Votes
Introduction: -
This assignment plan is to design an optimal surveillance strategy for detecting incursions of fruit flies. The local fruit flies which
are a serious biosecurity threat to the world. In our country, some areas where fruit fly species are established, they cause huge damages to crop yields. It also cost a lot of time and money to manage and control it. There are still many areas are free from the fruit fly species, and aim is to maintain it. Let take an example, Perth is currently free of the fruit fly in comparison with the Queensland fruit fly, and Kununurra in the north of WA is still free of the Mediterranean fruit fly that has spread through many areas of the south of WA. In this assign some research questions are intend to answer to find a solution for it.

Methods: -
The country’s government have surveillance programs that aim to detect new incursions of fruit fly species as quickly as possible, so that they can then be eradicated before populations build up too far and become fully established. These surveillance programs involve placing fruit fly traps in specific locations. These traps use lures that attract fruit flies into the trap from some distance, and these traps are then checked for fruit flies at regular intervals. This project will run those files until the 99% accuracy level is achieved. To do this first, R program’s given scripts will be run at least 100 times or more, as required for the project. Then, those data will be statistically analysed on the minitab. Basis...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here