Nanobot Algorithms for Treatment of Diffuse Cancer
Abstract
We consider the problem of a swarm of nanobots detecting and treating human cancer that is diffuse, that is, dispersed in a region with multiple separate cancer sites in need of treatment. We present a mathematical model of nanobots and their colloidal environment that is inspired by actual chemotactic nanoparticles, involving agents noisily following chemical gradients (both attractively and repellently, depending on the chemical). We present three incrementally sophisticated algorithms that describe additional chemical payloads that agents carry onboard, beyond the cancer-treating drug K, as well as the rules for when agents drop their payloads: Algorithm KM, in which agents simply ascend naturally existing chemical M signals that surround cancer sites; Algorithm KMA, in which agents themselves amplify these natural signals by dropping chemical A payloads upon reaching a site; and Algorithm KMAR, in which agents choose to either amplify the signal by dropping chemical A or counteract/reduce the signal by dropping chemical R, according to the current unsatisfied demand of the site. We present simulation results for all of the algorithms, across a set of distinct cancer arrangements, that track both the achieved treatment success as well as the time/duration of the treatment. KM has generally successful treatment unless the natural M-signals are weak, in which case the treatment progresses too slowly. KMA demonstrates a significant speedup in treatment time (over KM), but also a drop in success except for the most concentrated cancer patterns. KMAR has relatively optimal performance across all types of cancer patterns, demonstrating robustness and adaptability in its mechanisms for nanobot coordination.
Keywords and phrases:
Nanobots, biological modeling, distributed algorithms, agent-based models, random walks, cancer detection, cancer treatmentCopyright and License:
2012 ACM Subject Classification:
Theory of computation Distributed algorithms ; Mathematics of computing Stochastic processes ; Applied computing Computational biology ; Computing methodologies Model development and analysisSupplementary Material:
Software (Base Simulation Code): https://github.com/nobleharasha/nanobots-multiSite-ctsSim/ [9]archived at
swh:1:dir:28c094aedd1ef8a44141bb42b5b2ae1d98ab89cc
Acknowledgements:
Special thanks to Sabrina Drammis and Mien Brabeeba Wang for their suggestions throughout the completion of this work. Special thanks to our collaborators from the previous single-site work, Claudia Contini, Cristina Gava, and Frederik Mallman-Trenn, as this work builds upon the early ideas and discussions we all shared regarding the multi-site problem.Funding:
NSF Awards CCR-2003830 and CCR-2139936Editors:
George B. Mertzios and Andréa W. RichaSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Motile nanoparticles suspended in a solution, or nanobots, possess unique potential in various medical applications including penetrating biological barriers, navigating within otherwise unreachable regions of the body, and generally increased precision. Nanobots are being engineered to move within the human body, and more specifically, to navigate to locate target sites of interest, such as a cluster of cancerous cells. If such nanobots carry a payload of drugs, they may release the drugs once they locate and reach the given target site(s), providing a more selective and precise drug delivery solution that is less toxic to extraneous regions. In the context of cancer detection and treatment, this targeted drug delivery solution presents a particularly dramatic decrease in side effects compared to existing treatments such as chemotherapy. However, as a consequence of nanobots’ small size, their capabilities in sensing, locomotion, and computation may be limited, noisy, or nonexistent, presenting challenges to this otherwise promising approach.
We investigate the problem of a swarm of nanobots finding and treating a number of cancerous sites. We consider the process to be stochastic, with nanobots performing a biased random walk, influenced by the chemical makeup and physics of the environment through which they navigate. The presence of multiple, distinct cancerous sites, which are diffuse throughout the given environment, introduces the problem of optimally allocating the treatment; e.g., avoiding sending all of the nanobots to a single, specific cancer site, leaving the other sites completely untreated.
In Section 2, we give a formal, mathematical description of the general model of the nanobot agents and their colloidal environment, including a model of agent locomotion. The model is inspired by the behavior of actual nanoparticles that follow chemical signals by noisily ascending (and descending) their gradients. In Section 3, we present three algorithms that describe which additional chemical payloads (beyond a cancer-treating drug) agents carry onboard, as well as the rules for when they release the payloads. We then present simulation results for all of the algorithms in Section 4, investigating the effectiveness and efficiency of the treatment strategies across different arrangements of cancer sites as well as for various parameter value settings.
The first algorithm, which we call Algorithm KM, involves agents simply following naturally existing chemical (“M”) signals centered around each cancer site. The second algorithm, KMA, involves agents dropping an additional chemical payload, “A”, at cancer sites in order to amplify the natural signals. In the final algorithm, KMAR, agents drop a different chemical payload, “R”, if they detect that a given cancer site has already received a sufficient amount of treatment (or A otherwise). The R-payload serves to repel agents from moving towards already treated sites, instead encouraging them to explore elsewhere and locate other sites that are in need of treatment.
Results show that Algorithm KM has generally successful treatment but can be slow if the endogenous chemical signals are weak. KMA provides a significant improvement in efficiency over KM due to its amplified chemical signals, but for certain cancer arrangements has unsuccessful treatment due to the amplification mechanism too strongly favoring a single site, leaving the others untreated. KMAR’s added mechanism of dynamically favoring the chemical signals towards cancer sites still needing treatment helps to fix this issue, while still preserving much of KMA’s efficiency with artificially amplified chemical signals. Ultimately, KMAR provides an effective and efficient treatment solution that performs well across all settings. However, KMAR is the most sophisticated of the algorithms and thus the most speculative in implementation. Our results also show the impact of the specific cancer pattern on performance. For more diffuse cancer, KMAR’s improvements in treatment time over KM and in success over KMA are most significant, particularly for sparser arrangements. KMA’s best performance is seen for concentrated cancer patterns, where its amplified signals cause agents to quickly converge on the major site. For clustered cancer, KM has the highest achieved success, outperforming our more sophisticated algorithms KMA and KMAR in success, but again, KM can be extremely slow in the case of weak chemical M signals.
We conclude the work with discussion and suggestions for future work in Section 5.
Related Work
Early nanomedicine works, including applications such as diagnostics, tissue engineering, and drug delivery, are presented in [4, 5]. The works in [2, 14, 23] explore targeted drug delivery by nanoparticles for cancer treatment. Precise control over the movement of an individual nanobot is often difficult, if not impossible. While centralized approaches with precise locomotion control exist [8, 15], our study opts for a distributed and autonomous framework in an effort to be most scalable and practical. Here, one extreme case is when nanoparticles have zero actual locomotion capabilities and are only able to move on account of external forces in their environment, such as the flow of the bloodstream [7]. Our model goes beyond this, with agents performing some sort of biased random walk in response to the chemical makeup of their environment, inspired by chemotaxis (where [6, 12, 13, 17, 22] are relevant). [13, 22] uniquely present chemotactic nanoparticles which move in a directed manner, following a nonuniform global chemical gradient. In [10], the authors – which include the both of the authors here – define a mathematical model which rigorously characterizes the movement of the nanoparticles in [13], along with more speculative extensions including a signal amplification mechanism similar to the ideas presented in [19, 21] as well as our Algorithm KMA here. In this paper, we extend our ideas from [10] to consider the case of multiple, distinct cancer sites, instead of just a single target site. In [10] and [13], agents always perform positive chemotaxis, ascending the gradient. Here, we extend the model of [10] to include negative chemotaxis [16, 20]. When there are multiple, distinct cancer sites, the problem of how to best allocate the treatment becomes crucial to success. This is a specific case of the general task allocation problem, which was studied in [1, 3] (among many other works) though for more capable agents than our nanobots.
2 Model
We present a continuous space, discrete time general model for the problem of multi-site cancer detection and treatment by nanobots in the human body. This includes a precise, feasible model of agent locomotion.
A set of nanobot agents move in a bounded portion of two-dimensional Euclidean space . Time is discretized. There are cancer sites – i.e., distinct clusters of contiguous cancerous cells – each of which is concentrated at a single point in space. Different cancer sites can require different amounts of treatment. Each cancer site naturally produces some surface cell marker that agents can bind to via an appropriate antibody, which we assume they possess. This allows agents to detect the presence of a nearby cancer site once they are within some units of distance, with perfect accuracy. Each agent carries a payload of a drug for cancer treatment that kills cancerous cells; we hereafter refer to this as chemical K. Once an agent is this -distance away from the cancer site, it immediately drops its payload of chemical K, delivering its treatment.
A signal chemical is a chemical that all agents are able to sense, and they can also be payloads that are carried and electively dropped by agents. Signal chemicals diffuse in the colloidal environment, forming gradients which can be followed directionally by agents. We consider two main classes of signal chemicals: attractive signal chemicals whose gradient is ascended by agents, and repellent signal chemicals whose gradient is descended by agents; these mechanisms are formalized in Section 2.3. No direct interaction or communication occurs between agents. The movement of an agent is a function of its previous state and the signal chemical(s) that it is currently sensing in the vicinity of its current location.
2.1 Cancer
We assume distinct cancer sites numbered , with site at location . We assume that there are endogenous chemical gradients of a specific attractive signal chemical – hereafter referred to as chemical M – centered at each cancer site. We assume (for simplicity) that the concentration of M at all locations is fixed over time. The strength of an individual cancer site’s surrounding chemical M signal, which is represented by for each site , respectively, is directly proportional to the amount of treatment that the cancer site requires. Regarding the total concentration of M at a certain location, we assume that different sites’ M-gradients simply interact additively. The concentration of M at position is given by
| (1) |
where and are parameters.
We now formalize the notion of different cancer sites requiring different amounts of treatment. We fix a (minimum) ratio of K to M that represents successfully treating all of the cancerous matter at site : where is the number of K-payloads dropped at cancer site up to time , the condition corresponds to the event in which cancer site has been completely treated by time .
2.2 Signal Chemicals A and R
The other specific signal chemicals we consider are both artificial chemicals that can be carried and electively dropped as payloads by agents: firstly, an attractive signal chemical we call chemical A; and secondly, a repellent signal chemical we call chemical R. Unlike for chemical M, A and R are not persistent; they dynamically dissipate and diffuse through the colloidal environment over time. We model the concentration of A and R across the space over time via instantaneous point-source diffusion.
Beyond K, agents can also carry additional payloads of A and R which they can choose to drop and release. An individual agent can only drop its payload(s) at one cancer site in total. After an agent has completed dropping all of the payloads it elected to drop, it then for all practical purposes effectively ceases to exist in the environment. Let be the multiset containing the timesteps for which all of the unique chemical A payloads dropped at cancer site before time were indeed dropped, where is the empty set, and the maximum value over all of the elements in is less than . is analogously defined.
Imagine one agent releases its chemical A payload of size at cancer site at time . The payload will immediately begin diffusing, with the concentration of this individual payload, at location at time , being a function of the distance from the cancer site and the time since its release : [18], where is the diffusion coefficient for A. We simplify to assume that the diffusion of each agent’s payload is independent, i.e., additive. Thus, the concentration of A at time at position is given by
| (2) |
where is the time at which the ’th A-payload to be dropped at cancer site was indeed dropped. The concentration of R at time at position , , is defined analogously to with the appropriate , , instead of their A versions.
2.3 Nanobots
We now describe the update step for the locomotion of an individual agent, i.e., the movement model. This model is most closely inspired by the actual nanoparticles in [13]. Agents take into account the local makeup of signal chemicals M, A, and R, following (either attractively or repellently, depending) the gradient(s) by biasing their orientation accordingly. All steps, taken in the direction of the current orientation, have a displacement distance of .
Consider some agent at time . Its position is given by . We first define . If is identically zero, let , and without loss of generality let . Otherwise, let
| (3) | |||
| (4) |
which we then force to be within by updating . We define agent ’s orientation vector such that is the (scalar) angle formed between and . Note that larger values yield movement that is more biased toward following the given chemical signal(s) (i.e., farther from standard Brownian motion), or greater orientation-bias; we thus refer to as the “orientation-bias parameter” hereafter. Agent ’s position is then updated as follows, taking a step of length in the direction of its current orientation vector:
| (5) |
To summarize, if the attractive chemical signal (M plus A) dominates the repellent signal (R) in steepness, then the agent is biased to move roughly towards the nearest local maximum of the attractive chemical gradient (e.g., the nearest cancer site). If instead the repellent signal dominates, then the agent is biased to move roughly away from the nearest local maximum of the repellent gradient, which is, again, often the nearest cancer site.
We assume a bounded space . At each timestep, each agent follows the above update step repeatedly until its new location falls within the given boundary. Despite space being bounded, note that we model the diffusion of chemicals in an unbounded space. We also define a maximum runtime cutoff (in the number of discrete timesteps). The reality of nanobots moving within the human body forces a finite timeline: after some amount of time, the nanobots will naturally dissolve or disintegrate, becoming useless for our purposes of delivering drug treatment. This is often referred to as the clearance time and is what the value represents. To be concrete, the values of all parameters that involve distance or time are in SI units unless otherwise specified. To be consistent with [13], we can think of one timestep in our model to be equivalent to one real-time second.
2.4 Metrics
We define two performance metrics, a success metric that measures the effectiveness of the treatment and a treatment time metric that measures efficiency. Our first metric , measuring what proportion of the total cancer has been killed by the clearance time (i.e., how successful or effective the treatment is), is given by
| (6) |
Note that after the first K-payloads are dropped by agents at a given cancer site , all additional K-payloads dropped there are useless; once a site’s demand is satisfied, further treatment is unnecessary. Hereafter, “success” refers to this metric .
Our second performance metric measures how long it takes for the treatment to stabilize and (mostly) finish (i.e., how efficient the treatment is, ignoring its success). Let , where is a parameter. We then define , where is a parameter with some small value. That is, is the first point in time for which the average rate of change in is less than or equal to . When the success metric flattens out and stops increasing any further, we can assume that all of the agents are either already planted at their final site, or stuck, unable to find a site in reasonable time; it is at this point in time in which we deem the treatment to have (mostly) finished. Consider an experiment with repeated trials. We define to be the average value of over all trials. For small , can fail to be particularly smooth, causing the notion of its rate of change to become misleading. As a result, we instead use the smoother when calculating . Analogously to , let . We then redefine
| (7) |
For this work, we fix and . Note that is not guaranteed to exist/be defined, since our simulation runs are finite and some algorithms such as RW have slow progressing treatment. Hereafter, “treatment time” refers to this quantity .
3 Algorithms
We now present the three distinct algorithms that describe which chemical payloads agents carry onboard and when these payloads are released. The least sophisticated Algorithm KM, in which agents simply follow the natural chemical M signals, is a feasible nanobot algorithm aligned with current technologies, as existing experimental works have explored nanobots ascending a stable chemical gradient. From Algorithm KM to KMA, in an effort mostly to improve treatment time, we add chemical A payloads which allow for the natural M-signals to be amplified. From KMA to KMAR, in an effort to improve success (via improving the optimality of treatment allocation), we add chemical R payloads which uniquely allow for agents to descend chemical gradients and thus be driven away from sites that are already treated, to explore elsewhere.
Bot Initialization and Execution.
For all algorithms, at time , agents’ positions are chosen independently, each uniformly at random within the bounded space . For all , is initialized to zero, and and are initialized to the empty set.
Then, at each subsequent timestep , the following activity is carried out for each agent : The agent’s new position is given by following the update step as defined in the movement model in Section 2.3. At this point, if the agent’s new position is within units of distance of any cancer site , the rules defined by the given algorithm (see below) outline which chemical payloads beyond K, if any, are to be dropped. According to this, if an A-payload is dropped, then is updated to be equal to (with multiplicity as it is a multiset), and similarly, if an R-payload is dropped, then is updated to . Also, the value of is always incremented by one. Lastly, this given agent is deemed to be terminated, with no further payloads to drop and its position fixed indefinitely. If agent did not reach a cancer site yet, nothing beyond updating its position occurs.
This continues for every timestep and every agent, until either all agents have reached cancer sites and thus terminated, or the clearance time is reached.
3.1 Algorithm KM
Each agent has a payload of chemical K only. There is no chemical A or R anywhere – i.e., and are both zero, or equivalently, and are the empty sets. Though there still exists the endogenous, time-constant chemical M gradients. When an agents reaches a cancer site, it always, and immediately, releases its K-payload to deliver its treatment.
3.2 Algorithm KMA
Each agent has a payload of chemical K and a payload of chemical A. When an agent reaches a cancer site, it always, and immediately, releases both K- and A-payloads to deliver its marginal treatment and amplify the current/existing chemical signal, respectively. That is, there are chemical M gradients centered at each cancer site, with this attractive signal being amplified and boosted over time whenever an agent plants at the respective site and releases chemical A. There is no chemical R anywhere – i.e., is zero and is the empty set.
3.3 Algorithm KMAR
Each agent has a payload of chemical K, a payload of chemical A, and a payload of chemical R. When an agent reaches some cancer site at time , it always, and immediately, releases its K-payload to deliver its marginal treatment. Then, if
| (8) |
the agent also releases its A-payload, but does not release its R-payload. Otherwise, if , the agent instead releases its R-payload, but does not release its A-payload. That is, when the chemical A signal at a cancer site is too strong, agents will release chemical R (instead of A) at that site in an effort to encourage agents to explore and administer treatment elsewhere. is a parameter of the model specific to this algorithm.
Intuitively, or rather, ideally, we want to have agents find the cancer sites efficiently by leveraging chemical A just as in Algorithm KMA, but once a given cancer site is fully treated, we want to immediately stop having agents come there. More reasonably within the constraints of our model, once a given cancer site is fully treated, we want chemical R to be released there by any further agents that happen to still reach that site in order to start gradually encouraging agents to move away from the already treated site. However, this requires agents being able to sense the current amount of treatment already administered which we assume to be impossible. As such, we must use chemical A as a proxy to estimate the current amount of treatment (K) already administered since K and A payloads are often dropped in conjunction with each other.
We define , where . Recall that while (8) still holds true (it is true initially, trivially), agents will always drop both chemicals K and A when they reach a cancer site, so holds in this case. Up to significant error – due to diffusion, different A-payloads being dropped at different points in time, and different sites’ payloads interacting additively – is roughly proportional to (with this final equality holding while (8) still holds true). In order for to be somewhat estimating/coinciding with the event , then should be proportional to ; hence the above formulation. In [11], we vary the multiplicative factor , i.e., we vary , to both tune our estimation as well as vary how early agents shift from dropping A-payloads to dropping R-payloads.
3.4 Simple Random Walk, RW
Lastly, as a baseline of comparison, we also consider the simple random walk, RW, where agents are completely blind to any chemical signals/gradients including chemical M. Recalling the movement model as defined in Section 2.3, RW is characterized by letting and w.l.o.g. letting . All agents have a payload of chemical K which they immediately release upon reaching a cancer site.
4 Results
All agents start at independently random initial locations, sampled uniformly within , i.e., we fix . We consider a set of five handpicked, distinct cancer site () and demand () arrangements, which we describe in Section 4.1. We provide simulation results for the three algorithms individually (in Sections 4.2–4.4, respectively), as well as for comparison between the algorithms (in Section 4.5), with all experiments being carried out for the different cancer arrangements. Additional simulation results investigating the effect of specific model/algorithm parameters can be found in the full, arXiv version of this paper [11].
W.l.o.g., we fix , i.e., (at least) agents are needed in order to fully treat/kill cancer site . We also fix the total demand summed over all sites to be and the total number of nanobot agents to be . Thus, we have a small margin of error of five extra agents which, if there were to be perfect allocation of agents between sites according to the respective demands, would not actually be needed for treatment. We also fix and for all experiments.
4.1 Cancer Site and Demand Arrangements
The different site and demand arrangements we consider in our experiments are the following: (a) Two well spaced sites with equal demand: positions , demands both ; (b) Five well spaced sites with equal demand: positions , demands all ; (c) One major site with nearly all of the total demand and two outliers, all sites well spaced: positions , demands ; (d) Two well spaced sites with unequal demand: positions , demands ; (e) Four sites clustered together and one other site faraway, all with equal demand: positions , demands all . While this selection of specific arrangements is clearly inexhaustive with regards to all possibilities, they are intended to be representative of larger classes of common cancer patterns which are all mutually distinct. Arrangements (a) and (b) are representative of typical diffuse cancer, where (a) and (b) are the sparse and dense versions of this, respectively. On the other hand, (c) is representative of typical concentrated cancer. Arrangement (d) is somewhere in between these diffuse and concentrated categories, with the discrepancy in demand between the sites in (b) being less extreme than for (c). Similarly, arrangement (e) is a much less extreme version of concentrated cancer with the area of concentration being larger for (e) than for (c), spread out over a cluster of multiple sites. Within all Figures 1 through 4, the site and demand arrangements (a)–(e) above correspond to subfigures (a)–(e), respectively.
4.2 Results for Algorithm KM
For simulation results, we begin with Algorithm KM, the basic case of only having the time-constant, endogenous chemical M signals for agents to follow. For the different cancer arrangements listed in Section 4.1 and for different orientation-bias parameter values, we plot the success metric over time (/). See Figure 1, in which cancer site arrangements are depicted in the small scatterplots with sites being points labeled with their demand.
For reasonable orientation-bias and sufficiently short clearance time, KM outperforms the simple random walk RW in both success and treatment time for all cancer arrangements other than (b). The strength of a cancer site’s M-signal is directly proportional to its demand. As such, the observed high success of Algorithm KM is reasonable and intuitive: having agents (which start at uniformly random initial locations) follow the chemical M gradients yields reasonably good allocation of treatment in expectation, because more agents tend towards those sites that require more agents as those sites’ M-signals are stronger.
For arrangement (a), in which there are two cancer sites with equal demand, we observe that greater orientation-bias corresponds to significantly faster progressing treatment. Under greater orientation-bias, agents follow the M-signal(s) more closely and thus reach a final site faster. The (average) maximum achieved success rate of treatment is approximately equivalent and preserved across all levels of orientation-bias for arrangement (a). With that said, the speed at which the treatment progresses is also relevant, since a clearance time of (approximately hours), for example, yields percent success for the setting, compared to only percent success for the lowest settings.
For arrangement (d), in which the cancer sites now have uneven demand, the effect of the orientation-bias parameter on performance is different. While greater orientation-bias still yields faster treatment time by the same reasoning that agents will reach some site faster in expectation, here, when the orientation-bias is too strong, the maximum success of treatment achieved decreases. With an uneven demand arrangement, as the orientation-bias increases, the M-signal belonging to the site with greater demand will begin to dominate the weaker M-signal; consequently, agents will converge towards the site with greater demand, leaving the other site untreated. For this uneven demand arrangement across sites, sending all of the agents to the site that requires more treatment (which is what often happens under the greatest orientation-bias setting) still ends up yielding a reasonably high success metric value. But this treatment scenario completely ignores the cancer site with lower demand, which could arguably be unacceptable in application. There is a point, though, before which increasing does not reduce the maximum success achieved; as such, the greatest value before success decreases is the optimal parameter setting, as higher settings speed up treatment time. Here, that is , though this optimal value is likely to be dependent on the specific site and demand arrangement, among other things. Further experiments are needed to investigate this, testing algorithm performance for the same site locations as arrangement (d) but with a different demand arrangement.
For the dense diffuse arrangement (b), treatment is fast and successful across all amounts of orientation-bias. However, RW also already performs well here because agents, with initial locations distributed uniformly at random, are already close to some cancer site from the start in expectation. For the most concentrated arrangement (c), greater orientation-bias corresponds with faster as well as slightly more successful treatment, though these differences in achieved success are minimal. Arrangement (c) is the arrangement that produces the best performance, generally, across all orientation-bias settings, as the major site has a strong M-signal which agents ascend efficiently and reliably. For arrangement (e) where there is a cluster of several cancer sites close together in addition to one outlier site far away from the cluster, we see a similar trend relative to orientation-bias as for arrangement (d) in which greater orientation-bias can sometimes yield suboptimal success. Compared to Figure 1(d) though, the drop in success under greater orientation-bias is less extreme here. Greater orientation-bias still again yields faster progressing treatment for arrangement (e).
Importantly, for weak orientation-bias, our results show that KM has generally slow treatment time. As weak orientation-bias is essentially equivalent to weak chemical M signals, a characteristic of the natural environment that is out of our control in implementation, it is worth considering further strategies for improving treatment time; hence Algorithm KMA.
4.3 Results for Algorithm KMA
In Figure 2, for KMA, we plot the success metric over time for the same set of cancer arrangements and for different orientation-bias parameter values. Our results show that KMA has fast treatment time with A-payloads continually amplifying the existing attractive chemical signals, but, for many site and demand arrangements, suffers from poor success as all agents tend to converge on a singular site. Similar to KM, greater orientation-bias yields faster treatment time but also possibly suboptimal allocation of treatment, and thus lower total success. The optimal value for overall performance varies across cancer patterns.
When the first agent finds a cancer site, it drops its chemical A payload, amplifying the given site’s attractive M-signal. The other agents will then be more likely, in expectation, to find this site next with its amplified signal. These agents will drop their A-payloads as well, amplifying the attractive signal even more. This process continues, only speeding up and intensifying over time. Essentially, KMA can induce a sort of cascade effect in which a couple of agents finding a particular site sparks a process where many agents also head towards that same site. Such a cascade effect is extremely advantageous for fast treatment time, but, when there are many separate cancer sites all needing treatment, sending a large majority of the total nanobot swarm towards a single site is not ideal for success.
Sending almost all of the agents to one of two total cancer sites is better for the success metric than sending almost all of the agents to one of five sites, which is why success is greater for arrangements (a) and (d) compared to (b) and (e). In the case of arrangement (c) in which one site has almost all of the total demand, sending all of the agents to that demanding site will still yield close to perfect success. Our results show that KMA indeed achieves very high success of treatment for this arrangement, across all orientation-bias settings. In fact, compared to the results of Algorithm KM for this same arrangement (c), both algorithms achieve similar levels of success but KMA is much faster, demonstrating a clear advantage in KMA over KM for arrangement (c) (as opposed to the tradeoff present for the other arrangements between the efficiency of KMA versus the effectiveness of KM).
Ultimately, we show that for very concentrated arrangements like (c), greater orientation-bias () yields both higher success and faster treatment time. For the other arrangements, there is a trade-off between success and treatment time when choosing ; moderate orientation-bias, , yields intermediate performance in both metrics.
4.4 Results for Algorithm KMAR
In Figure 3, for KMAR, we plot the success metric over time for the same set of cancer arrangements and for different orientation-bias parameter values. Ultimately, KMAR is shown to have great performance – in both success and treatment time – across all cancer arrangements, assuming well-chosen parameter values. We show that, generally, greater orientation-bias yields better performance for KMAR in both metrics. Under greater orientation-bias, agents in KMAR follow A-signals more closely to reach sites faster as well as follow R-signals more closely to find untreated sites faster, appropriately when tasked to do each. Recall from the movement model defined in Section 2.3 that the orientation-bias parameter determines how closely (in expectation) agents follow all of the various chemical gradients, both attractive and repellent. However, the results in Figure 3 show that the net effect of greater orientation-bias is in fact faster treatment times.
The parameters and are fixed here; further simulated experiments are needed in order to test whether the negative correlation between and is a general property of KMAR, or rather dependent on these specific parameter values. Regarding the positive correlation between orientation-bias and success, this could be viewed as evidence for our chosen fixed values for and being fairly optimal. Assuming favorable settings of and , increasing the amount of orientation-bias results in – to put it simply – agents doing what we want them to do more often, or more deterministically, thus yielding greater success (as is indeed observed in the results). The degree of correspondence between orientation-bias and success varies slightly among the different cancer site and demand arrangements. For example, for arrangements (c) and (e), the two largest settings yield approximately the same success rate, while for the other arrangements, there is a nonegligible difference in success between these two values. There are also certain anomalies such as for arrangement (c) in which the and settings have similar treatment times (within seconds, or three hours) but very different success rates (nearly percent difference). Generally, for the arrangements with fewer total cancer sites, (a), (c), and (d), the effect of on success is more dramatic; the difference in success across settings is the least dramatic for arrangement (b). While our results demonstrate that increasing the amount of orientation-bias improves overall KMAR performance, the choice to vary may be limited in implementation by the constraints of nanotechnologies.
4.5 Comparing Algorithms KM versus KMA versus KMAR
We fix a specific parameter setting for each algorithm, motivated by simulation results in Sections 4.2–4.4 and in [11], and proceed to compare their performance. For Algorithms KM and KMAR, we choose the parameter setting which yields the highest success. For KMA, there is a tradeoff when varying parameter values in which faster treatment times correspond with lower success rates and vice versa; as such, we choose a parameter setting for KMA here which is both moderately fast as well as moderately successful. For each distinct algorithm, including the simple random walk RW, we plot the success metric over time (), again for the same set of cancer arrangements. See Figure 4. Overall, across all site and demand arrangements, our results show that Algorithms KM and KMAR both generally achieve the highest success, though KMAR has faster treatment time. KMA has fast treatment time, but outside of very concentrated cancer arrangements, it has lower success compared to all other algorithms, at least for sufficiently long clearance times. For dense site arrangements, RW performs just as well as Algorithms KM and KMAR.
For arrangements (a) and (d), the trend in relative performance between algorithms is similar. KMAR and KM both achieve the same, highest eventual success rate, though KMAR is faster. KMA has a lower final success rate than KMAR and KM, but, because of its fast progressing treatment (still not faster than KMAR), it outperforms RW and KM below certain thresholds of clearance times. For arrangement (d), the more concentrated cancer arrangement between (a) and (d), KMA’s relative performance is better than it is for (a). The improvement in treatment time of KMAR over KM is also significantly more dramatic for the more unbalanced (demand) arrangement (d). For an arrangement like (d) in which there is a site with dominant demand, KMAR’s and KMA’s use of amplifying A-payloads is shown to be particularly beneficial. For the dense diffuse arrangement (b), KMA achieves lower eventual success than the other algorithms, but has greater success than RW and KM for short clearance times because of its fast treatment speed. While RW, KM, and KMAR all achieve around the same final success rate here, KMAR outperforms RW and KM for many clearance times due to its fast treatment time. For the most concentrated cancer arrangement (c), all of the algorithms perform similarly very well in both success and treatment time. Here, our three algorithms demonstrate the largest improvement in performance over the simple random walk RW. Concentrated cancer arrangements yield the strongest chemical signals in magnitude (surrounding the major site); our algorithms that follow these chemical signals are thus able to significantly outperform RW, which is blind to any chemical signals. Lastly, for arrangement (e) in which there is a small cluster of sites plus one faraway outlier site, KM actually outperforms KMAR in achieved success, though KM’s treatment time is slower. KMA has the lowest eventual success, but has higher success than RW for sufficiently short clearance times.
Although KM achieves high success across all arrangements, it is arguably less reasonable to assume to have choice over the strength of M-signals compared to having choice over the strength of A- and R-signals, as the former is a feature of the natural environment while the latter is under the control of nanobot engineers. Assuming extremely weak M-signals, KM would likely have extremely slow progressing treatment, to the point at which KMAR and even KMA would significantly outperform KM in achieved success for finite clearance times. This point helps to illustrate the benefit of KMA’s fast treatment time. Despite the improvements of KMA over KM in treatment time, and the improvements in KMAR over KM and KMA in both success and treatment time, we acknowledge that each more involved algorithm is more speculative than the previous regarding individual nanobot capabilities.
5 Conclusions
We have defined a mathematical model of nanobot agents and their colloidal environment for the problem of multi-site cancer detection and treatment. We presented three increasingly sophisticated algorithms, KM, KMA, and KMAR, that describe which artificial chemical payloads agents carry onboard. We presented simulation results for these algorithms across a set of distinct cancer site and demand arrangements. Our results shed light on which algorithms and accompanying parameter settings are best for specific types of cancer patterns. If imaging allows for the cancer arrangement to be estimated prior to treatment, then, informed by experiments like those presented here, one could select a particular algorithm and parameter setting in an effort to optimize the success of treatment.
For the more diffuse arrangements (a), (b), and (d), our results show that Algorithm KMAR, with high orientation-bias, moderately high , and chemical R stronger than chemical A, has the best performance compared to all other algorithms in both treatment time and success (though KM with moderate orientation-bias matches its level of success assuming a sufficiently long clearance time). For slightly more concentrated arrangements like (e), KMAR, again with high orientation-bias, moderately high , and chemical R stronger than A, is the fastest algorithm, though KM with moderate orientation-bias has higher success here; to get a more precise sense of this tradeoff, KMAR is approximately twice as fast as KM but achieves percent lower success. For the most concentrated cancer arrangement (c), KMA with high orientation-bias is the fastest algorithm while KM, also with high orientation-bias, has the highest success rate, though all algorithms (KM, KMA, and KMAR) perform well here with very similar treatment times and success values. For dense diffuse cancer arrangements like (b), RW also achieves the highest level of success, approximately, alongside KM and KMAR; RW here also has reasonable treatment time that is only twice as long as KMAR. Note that the above statements about optimal values for parameters , , and reference the simulation results presented in the appendix.
While KMAR, our most sophisticated algorithm, does not always have the strictly best overall performance in both metrics compared to the other algorithms, such as for arrangements (c) and (e), the fact that it always has close to optimal performance across all types of cancer arrangements is crucial in demonstrating its adaptability as an algorithm. While KM achieves high success across all arrangements, for weak chemical M signals, KM’s treatment progresses too slowly for it to yield high success for any reasonable clearance times. In practice, the strength of M-signals is a predetermined feature of the natural environment.
While in this work, we only considered a single pass of treatment, it is reasonable to imagine several repeated passes of treatment given the nanobots’ promised nontoxicity. In this case, after the first pass of treatment, further imaging could be carried out to estimate the new site and demand arrangement, following which a new algorithm and set of parameter values could be selected to optimize treatment success once again. Although for single-pass treatment KMA has the lowest success across all algorithms (excluding RW), it has potential usefulness here in the multi-pass treatment scenario, as KMA quickly and reliably kills the main cancer site, via an algorithm with lower nanobot capability requirements than KMAR.
Future Work
One could consider more variations on the parameters of the model, including the number of nanobots (), the size of the area of activity (), and the diffusion coefficients for chemicals A and R ( and , respectively). More cancer arrangements could also be considered, as well as different initial locations of agents. The case of multiple, repeated passes of treatment remains to be investigated. This would involve careful study of the cancer arrangement that is left over after each round of treatment; this “output” arrangement becomes the input for the next round of treatment. It also might be possible to obtain general analytical results for the performance of the algorithms. Finally, we can explore the feasibility of our nanobot model for applications, particularly its more speculative additions to the simpler KM, via experiments on actual nanoparticles.
References
- [1] Adithya Balachandran, Noble Harasha, and Nancy Lynch. Swarm algorithms for dynamic task allocation in unknown environments, 2024. doi:10.48550/arXiv.2409.09550.
- [2] Irène Brigger, Catherine Dubernet, and Patrick Couvreur. Nanoparticles in cancer therapy and diagnosis. Advanced drug delivery reviews, 64:24–36, 2012.
- [3] Grace Cai, Noble Harasha, and Nancy Lynch. A comparison of new swarm task allocation algorithms in unknown environments with varying task density. In Proceedings of the 2023 International Conference on Autonomous Agents and Multiagent Systems, pages 525–533. International Foundation for Autonomous Agents and Multiagent Systems, 2023. doi:10.5555/3545946.3598680.
- [4] BC Crandall. Nanotechnology: molecular speculations on global abundance. Mit Press, 1996.
- [5] Robert A Freitas. Nanomedicine, volume I: basic capabilities, volume 1. Landes Bioscience Georgetown, TX, 1999.
- [6] Ramin Golestanian, Tanniemola B Liverpool, and Armand Ajdari. Propulsion of a molecular machine by asymmetric distribution of reaction products. Physical review letters, 94(22):220801, 2005.
- [7] Jorge Torres Gómez, Regine Wendt, Anke Kuestner, Ketki Pitke, Lukas Stratmann, and Falko Dressler. Markov model for the flow of nanobots in the human circulatory system. In Proceedings of the Eight Annual ACM International Conference on Nanoscale Computing and Communication, pages 1–7, 2021. doi:10.1145/3477206.3477477.
- [8] Tinotenda Gwisai, Nima Mirkhani, Michael G Christiansen, Thuy Trinh Nguyen, V Ling, and S Schuerle. Magnetic torque–driven living microrobots for increased tumor infiltration. Science Robotics, 7(71):eabo0665, 2022. doi:10.1126/SCIROBOTICS.ABO0665.
- [9] Noble Harasha. Nanobot Algorithms for Multi-Site Cancer Detection and Treatment, Model/Simulator. Software, swhId: swh:1:dir:28c094aedd1ef8a44141bb42b5b2ae1d98ab89cc (visited on 2026-06-12). URL: https://github.com/nobleharasha/nanobots-multiSite-ctsSim/, doi:10.4230/artifacts.26614.
- [10] Noble Harasha, Cristina Gava, Nancy Lynch, Claudia Contini, and Frederik Mallmann-Trenn. Modeling feasible locomotion of nanobots for cancer detection and treatment. Proceedings of the National Academy of Sciences, 122(48):e2510036122, 2025.
- [11] Noble Harasha and Nancy Lynch. Nanobot algorithms for treatment of diffuse cancer, 2025. doi:10.48550/arXiv.2509.06893.
- [12] Jonathan R Howse, Richard AL Jones, Anthony J Ryan, Tim Gough, Reza Vafabakhsh, and Ramin Golestanian. Self-motile colloidal particles: from directed propulsion to random walk. Physical review letters, 99(4):048102, 2007.
- [13] Adrian Joseph, Claudia Contini, Denis Cecchin, Sophie Nyberg, Lorena Ruiz-Perez, Jens Gaitzsch, Gavin Fullstone, Xiaohe Tian, Juzaili Azizi, Jane Preston, Giorgio Volpe, and Giuseppe Battaglia. Chemotactic synthetic vesicles: Design and applications in blood-brain barrier crossing. Science Advances, 2017.
- [14] Kostas Kostarelos. Nanorobots for medicine: how close are we? Nanomedicine, 5(3):341–342, 2010.
- [15] Sylvain Martel, Mahmood Mohammadi, Ouajdi Felfoul, Zhao Lu, and Pierre Pouponneau. Flagellated magnetotactic bacteria as controlled mri-trackable propulsion and steering systems for medical nanorobots operating in the human microvasculature. The International journal of robotics research, 28(4):571–582, 2009. doi:10.1177/0278364908100924.
- [16] Mihail N. Popescu, William E. Uspal, Clemens Bechinger, and Peer Fischer. Chemotaxis of active janus nanoparticles. Nano Letters, 18(9):5345–5349, 2018.
- [17] Meritxell Serra-Casablancas, Valerio Di Carlo, David Esporrín-Ubieto, Carles Prado-Morales, Anna C. Bakenecker, and Samuel Sánchez. Catalase-powered nanobots for overcoming the mucus barrier. ACS Nano, 18(26):16701–16714, 2024.
- [18] Junping Shi. Diffusion of point source and biological dispersal, Notes. William & Mary, Math 490-01 Partial Differential Equations and Mathematical Biology, 2006. URL: https://www.math.wm.edu/˜shij/math490-2006/490notes-2006-chap3.pdf.
- [19] Dmitri Simberg, Tasmia Duza, Ji Ho Park, Markus Essler, Jan Pilch, Lianglin Zhang, Austin M. Derfus, Meng Yang, Robert M. Hoffman, Sangeeta Bhatia, Michael J. Sailor, and Erkki Ruoslahti. Biomimetic amplification of nanoparticle homing to tumors. Proceedings of the National Academy of Sciences, 104(3):932–936, 2007.
- [20] Ambika Somasundar, Subhadip Ghosh, Farzad Mohajerani, Lynnicia N. Massenburg, Tinglu Yang, Paul S. Cremer, Darrell Velegol, and Ayusman Sen. Positive and negative chemotaxis of enzyme-coated liposome motors. Nature Nanotechnology, 14:1129–1134, 2019.
- [21] Geoffrey von Maltzahn, Ji-Ho Park, Kevin Y. Lin, Neetu Singh, Christian Schwöppe, Rolf Mesters, Wolfgang E. Berdel, Erkki Ruoslahti, Michael J. Sailor, and Sangeeta N. Bhatia. Nanoparticles that communicate in vivo to amplify tumour targeting. Nature Materials, 10(7):1476–4660, 2011.
- [22] Dandan Xu, Jing Hu, Xi Pan, Samuel Sánchez, Xiaohui Yan, and Xing Ma. Enzyme-powered liquid metal nanobots endowed with multiple biomedical functions. ACS Nano, 15(7):11543–11554, 2021.
- [23] Dandan Zhang, Thomas E Gorochowski, Lucia Marucci, Hyun-Taek Lee, Bruno Gil, Bing Li, Sabine Hauert, and Eric Yeatman. Advanced medical micro-robotics for early diagnosis and therapeutic interventions. Frontiers in Robotics and AI, 9:1086043, 2023.
