Skip to content

Add support for non-uniform focal point hit counts #449

Description

@samueljwu

Currently, pulses in a sonication sequence are distributed equally across all focal points in a round robin pattern. In multifocus treatments, focal points can receive different effective acoustic energy per pulse, so equal pulse distribution can leave some foci undertreated relative to ther others. Allowing more pulses to be allocated to weaker foci could raise the min ISPTA across focal points and improve treatment uniformity.

Main proposed changes:

  • Solution.focal_hit_counts: add a new field storing the number of pulses directed to each focal point
  • Protocol.calc_solution: add new focal_hit_counts and optimize parameters. focal_hit_counts accepts an explicit allocation. optimize=True computes an optimized allocation automatically
  • optimize_hit_counts(): add a helper that maximizes the min ISPTA across focal points, subject to TIC limits from param_constraints
  • SolutionAnalysis.per_focus_tic: add a new field exposing per-focus TIC values
  • weighted intensity aggregation in calc_solution and Solution.get_ispta

Please let me know if this sounds reasonable and if you'd be open to a PR. I'd love to contribute. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions