UK Graduate Modelling Camp
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Sperm Group ## The Sperm Optimisation Toolbox: How Does Fish Sperm Find The Egg in Open Water? ### Main Objectives: - Develop a mathematical model that can describe the collective/individual motion of fish sperm to find a fish egg. - Test our model against video data for three different species of fish: rainbow trout, carp, and sterlet. ![](https://i.imgur.com/agj5yEi.jpg) ![](https://i.imgur.com/NVOUCpf.jpg) ![](https://i.imgur.com/dHFpA3y.jpg) ### The model: - Analytically/numerically solve a 1D chemotaxis model for the concentration of sperm $u(x,t)$ at position $x$ and time $t$. $$ \frac{\partial u}{\partial t} = D_u \nabla^2 u - \nabla \cdot \big( u \chi (a) \nabla a \big) $$ $$ \frac{\partial a}{\partial t} = D_a \nabla^2 u + g(n,a) $$ - $D_u$: diffusion coefficient for sperm. - $a(x,t)$: chemoattractant concentration (ovariant fluid emitted from egg) at position $x$ and time $t$. - $\chi(a)$: potential function for the chemoattractant (i.e. how fast the sperm move when exposed to the attractant). - $D_a$: diffusion coefficient for attractant. - $g(n,a)$: source term of the chemoattractant (i.e. generated by the egg). Start with simplest cases (i.e. diffusion only), then include chemoattractant terms. ### The data: - Numerically analyse the experimental videos to obtain the sperm density in different regions of interest. - For this we use combination of 'Imagej' software and post-processing tools: MATLAB and Python. ### Where we are headed: - Compare the model results against the data for different distributions of the attractant concentration. - Parameter fit with the data to find the diffusion constants. - Extend the model to 2D. - Draw conclusions and discuss strengths and limitations of our model. - Explore individual trajectories of sperm (time permitting) ### Finite Difference Equations - Implicit Euler Scheme $$ -\nabla \cdot \big( u \chi (a) \nabla a \big) = - \chi(\nabla u \cdot \nabla a + u \nabla^2 a) = - \chi(\frac{u_{i+1} - u_{i-1}}{2\Delta x}\nabla a (x_i) + u_i \nabla^2 a(x_i) )$$ $$ \frac{u^{n} - u^{n-1}}{\Delta t} = D_u \frac{u_{i+1} - 2u_{i} + u_{i-1}}{\Delta x^2}- \ \chi(\frac{u_{i+1} - u_{i-1}}{2\Delta x}\nabla a (x_i) + u_i \nabla^2 a(x_i) )$$ # Presentation ## Title slide - The Sperm Optimisation Toolbox: How Does Fish Sperm Find The Egg in Open Water? - Our names + mentor. ## Motivation/context slide: - what are we trying to do? (to better understand how fish sperm locate the egg, supposing they are contained within a common fluid - think water). - maybe show one or two of the videos of this process (describe the sperm motion, i.e. it appears random but some move in circular motion whilst also being attracted to the egg - because of the attractant it emits). - discuss how the sperm picks up signals from the ovarian fluid and moves toward it. ## Aims slide: - Detail the main objectives: - Develop a mathematical model that can describe the collective/individual motion of fish sperm to find a fish egg. - Test/inform our model using the video data for three different species of fish: rainbow trout, carp, and sterlet. ![](https://i.imgur.com/agj5yEi.jpg) ![](https://i.imgur.com/NVOUCpf.jpg) ![](https://i.imgur.com/dHFpA3y.jpg) ## Modelling approaches slide - Briefly summarise the two models we wanted to develop. - Briefly summarise the data capture idea. ## Model 1 formulation: 1D Chemotaxis PDE We model the chemical attractant using chemotaxis which directs motion up a concentration gradient. - $u(x,t)$: concentration of sperms at position $x$ and time $t$ - $a(x,t)$: attractant concentration (ovariant fluid emitted from egg) at position $x$ and time $t$. - Chemotactic flux: $J_c = u \chi(a) \frac{\partial a}{\partial x}$, where $\chi(a)$ is a potential function for the chemoattractant (i.e. how fast the sperm move when exposed to the attractant). - Fickian diffusive flux: $J_d = D_u \frac{\partial u}{\partial x}$, where $D_u$ is constant diffusion coefficient for sperm. - Zero flux at the boundaries. - Sperm concentration follows the general conservation equation: $\frac{\partial u}{\partial t} + \frac{\partial}{\partial x} (-J_d + J_c) = 0$: $$ \frac{\partial u}{\partial t} = D_u \frac{\partial^2 u}{\partial x^2} - \frac{\partial}{\partial x} \big( u \chi (a) \frac{\partial a}{\partial x} \big) $$ - Attractant concentration follows: $$ \frac{\partial a}{\partial t} = D_a \frac{\partial^2 u}{\partial x^2}. $$ where $D_a$ is diffusion coefficient for attractant. - We do not solve the second equation, instead choosing $a(x,t)$ specifically. We don't model $a(x,t)$ using the coupled equation - for simplicity - instead we pre-specify it as (what forms of $a$ do we use?). #### Analytical insights - solving the diffusion equation in 1D was fine (using seperation of variables) - not much insight gained from this. - solving with a linear $a(x,t)$ term yielded an advection-diffusion equation. Solving analytically would have taken up more time - we opted to be prioritise the numerical route. #### Numerics (finite differences): - explain numerics/finite differences: equations were discretised in time and space using an implicit Euler method. - Specifically the chemotaxis term: $$ -\nabla \cdot \big( u \chi (a) \nabla a \big) = - \chi(\nabla u \cdot \nabla a + u \nabla^2 a) = - \chi(\frac{u_{i+1} - u_{i-1}}{2\Delta x}\frac{a_{i+1} - a_{i-1}}{2\Delta x} + u_i \frac{a_{i+1} - 2a_{i} + a_{i-1}}{\Delta x^2} )$$ - which particular problems did we actually solve? - show the results we've calculated. #### Advantages/disadvantages of the model: - Ask some simple questions and draw some simple conclusions from this model - e.g. where does sperm have to start to have a good chance of reaching the egg? ## Data analysis of communal behaviour - Understand trend of sperm density in different regions over time for three fish species (control vs experiment) - Using Image post-processing tools in MATLAB #### Process 1. Grey scaled all videos to eliminate the pipette from the videos 2. Created image frames from each video (n = 751 per video) 3. For each frame: - Created a binary matrix to identify sperm pixels (black) using a threshold to classify white vs black pixels - Retrieved the coordinates of sperm centroids to reduce the likelihood of double counting at a later stage - Split into quadrants - Recorded number of sperm centroid by quadrant over time - Normalized data with respect to total number of sperm centroids at time _t_ #### Analysis - Species 1 - After _t_ = 250 : no. of sperm centroids in yellow quadrant is stabilizing, mainly stemming from blue quadrant - Control: all quadrants are fairly stable over time - Species 2 - ~ 70% of the sperm centroids are already in the pipette qudrant - Other sperms may not be able to reach Q3 due to lack of time, possibly slower movement than Species 1 - Species 3 - observed the importance of the initial distributions - Because they dont move fast enough, the number in each quadrant remains stable #### Limitations - Threshold to create binary matrix was set arbitrarily --> sperm centroids may have been missed ***- Discretization into more compartments could have lead to more accurate results *** - Further chemotactic specific measures could have been explored - Analysis of whether movements of sperm in the control vs experiment are statistically significant ## Model 2: Individual motion simulations - Instead of a macroscopic model/approximation of the sperm concentration, how about treating them individually (as we see finitely many in the videos). - Idea: sperm follow circular trajectories (from video observations) whilst being pulled slowly toward attractant. - Closer sperm is to the egg (emitting attractant), stronger the pull is. Sperm are assumed to follow (discrete) equations in a circular motion in the 2D plane: \begin{align} x_{i+1} &= x_i + r \cos(\theta{_{i+1}}) + a(x_i,y_i) p_x, \\ y_{i+1} &= y_i + r \cos(\theta{_{i+1}}) + a(x_i,y_i) p_y, \\ \theta_{i+1} &= \theta_i + \omega dt, \end{align} for $i = 0,1,2,\dots$, where $r$ is the radius of the sperm "orbit", $\omega = 2 \pi / T$ the angular velocity, $T$ the period of oscillation (in steps), and $dt$ the discrete time step. We prescribe initial conditions $x_0$, $y_0$, and $\theta_0$. We assume the sperm follows this motion, however, at certain random discrete times (i.e. roughly every 10-20 time steps), its centre of orbit is corrected by the 'pull of the background attractant'. Background attractant: some function $a(x,y)$ with strongest values in centre (where egg is) and decaying outward (can show the heatmap from the matlab file here). Small random correction $a(x_i,y_i) \cdot (p_x,p_y)^T$, with $p_x, p_y \sim \text{unif}(0,1)$, applied to $x_i$ and $y_i$ in the direction of the egg at $(0,0)$. #### Pros: - can extrapolate and run many individual trajectories. - uniformly distribute them initially and track collective motion. - flexibility in the background attractant choice. #### Cons: - computationally intensive. - more cons?? #### What we would have liked to do: - Assign an exponentially distributed 'time until death' for each sperm - upon which it stops moving. - Bin the sperms at different times in different spatial regions from centre to calculate concentrations (to compare with data). ## Conclusions #### Positves? - Formulated two basic models for sperm concentration/individual motion. - Used image analysis to try and empirically calculate sperm concentrations from video recordings of live experiments. #### Difficulties? - Extracting data proved difficult, hence reconciling data/estimating paramemter for the theoretical models was challenging. - #### Next steps? - Parametize model with experiment data

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully