smithhenryd
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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
    • Save as template
    • 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 Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
    # Real World Experiments: Continued ## Force Prediction, 'd' only First, try learning a model which predicts force as a function of the drones' relative position and velocity. That is to say, $\hat{\mathbf{f}}_{\text{ext}}^{(i)} = f_{\theta}(\mathbf{x}^{(j)} - \mathbf{x}^{(i)})$, where $\mathbf{x}^{(i)} = [\mathbf{p}^{(i)}, \mathbf{v}^{(i)}]^T$. For now, we will focus on the downward force only. Use the mean-squared error normalized by the norm of the labels. The first dataset ("stage 0") is collected at $\Delta p_d = -1.75m$. These are the corresponding force labels: ![](https://i.imgur.com/A6d4lCV.png) ![](https://i.imgur.com/ypqt9o8.png) Now, evaluate the model at a fixed relative velocity vector and relative 'd' coordinate. Vary the relative 'n' and 'e' coordinate. ![](https://i.imgur.com/J4IM6TB.png) ![](https://i.imgur.com/p5UEaQ2.png) ![](https://i.imgur.com/E7BQ3Xu.png) ![](https://i.imgur.com/eN86gB3.png) ![](https://i.imgur.com/C61qxO7.png) The magnitudes in the last slice appear to be incorrect. Looking at the plot of the raw velocity data, we may not have seen this combination of velocities before. Each of the plots above have fixed $\Delta v_d = 0$. At the first stage, the drone has only ever seen velocities in the 'd' direction between approximately $-0.3 m/s$ and $+0.3 m/s$. When we try to make predictions outside these values, they are not reasonable. Bottom drone is moving down at $0.2 m/s$: ![](https://i.imgur.com/MpcAOMT.png) Bottom drone is moving down at $0.5 m/s$: ![](https://i.imgur.com/WgA819k.png) At stage 1, suppose we wish to perform a random walk in the 'd' direction between $\Delta p_d = -1.75m$ and $\Delta p_d = -1.5m$ (in addition to performing a random walk in the 'n' and 'e' directions). If the downward velocity of the bottom drone exceeds $0.2 m/s$ in magnitude, we would not expect the force predictions to be reasonable. Perhaps we should begin our data collection with a random walk in the 'd' direction so that we get downwards velocities outside of this range. ## Signal Denoising Last week, we saw there is an issue with the measured accelerations when the drones aproach zero in the 'n' and 'e' directions. Perhaps there is an interaction between the ground effect of the bottom drone and the downwash effect of the top drone. Hypothesis: This effect is concentrated on the high-frequency nodes of the measured acceleration. If we can filter these nodes out, we will get the desired signals (i.e. forces). No filter: ![](https://i.imgur.com/32n8EO5.png) Gaussian filter $\sigma = 2$: ![](https://i.imgur.com/71iN5yy.png) Gaussian filter $\sigma = 10$: ![](https://i.imgur.com/Et1DcDX.png) Notwithstanding, the measured forces are comparable in magnitude to the noise in our force estimates. ![](https://i.imgur.com/KVlf094.png) In Neural-Swarm, the measured forces are more than three times greater than the magnitude of the noise in the force labels. ![](https://i.imgur.com/Z2mtz87.jpg) ### Force Prediction, All Three Directions Now, try training a neural network which predicts all three forces. | 'n' | 'e' | 'd' | | -------- | -------- |-------- | | ![](https://i.imgur.com/IUBy6XD.png) | ![](https://i.imgur.com/4tUFUq9.png)| ![](https://i.imgur.com/OKdf8sK.png)| |![](https://i.imgur.com/niRrffJ.png)| ![](https://i.imgur.com/zlU7Jze.png)| ![](https://i.imgur.com/SBFRp51.png) | ### Force Prediction, All Three Directions, With Gaussian Filter ($\sigma = 10$) | 'n' | 'e' | 'd' | | -------- | -------- |-------- | |![](https://i.imgur.com/AB74T29.png) |![](https://i.imgur.com/P7ePLUx.png)| ![](https://i.imgur.com/awXKUhx.png)| |![](https://i.imgur.com/OMILX2n.png)|![](https://i.imgur.com/2AyRn54.png)|![](https://i.imgur.com/yVqqeOK.png) | The filtered predictions are not necessarily better than the unfiltered ones. In fact, in the 'd' direction, our filter seems to lessen the magnitude the predicted forces. # Next Steps 1. Henry: Develop a more rigorous learning framework. * How can we certify that at stage $z$, we have learned the true force function within $\epsilon$ accuracy? Use a validation dataset to estimate the population risk. * Trajectory tracking to assess model correctness * Cerify that the stage is "successful" when the test error is lower than some threshold. Otherwise, we need to collect more data points. 2. Jennifer and Ajay: Outdoor flights. * Can we replicate the force prediction results from indoor training when we move outdoors? * Collect an outdoor dataset with the same procedure we used indoors. 3. Validating our Procedure: * Reduce the biases in the controller using Ajay and Peter's thrust stand. * Validate our force estimates using Jennifer's mount for the sufferer drone. # Future Research: Temporal Learning for Graphical Models Our problem: we have a sequence of points $\{\mathbf{x}_t\}_{t=1}^N$ and corresponding labels $\{ \mathbf{y}_t\}_{t=1}^N$, where each $\mathbf{x}_t = \mathcal{G}(\mathcal{V}, \mathcal{E}_t)$ is a graph of $K$ vertices $\mathcal{V}$ and edges $\mathcal{E}_t$ and each $\mathbf{y}_t$ is a $3K$-dimensional vector of forces. Notice that here, the edge set can change as a function of time, while the number of vertices (robots) is assumed to be constant. We want some model that takes into account the temporal nature of our data (i.e. uses $(\mathbf{x}_t, \mathbf{y}_t)$ to make predictions for $\mathbf{y}_{t+1}$). The naïve way to do this: just shove $\mathbf{f}_{t-1}, \ldots, \mathbf{f}_{t-T}$ into the model. Another way: recurrent neural networks. Recent work on memory and graph convolutional networks ([Pareja, et al](https://arxiv.org/pdf/1902.10191.pdf) and [Kipf and Welling](https://arxiv.org/pdf/1609.02907.pdf)): ![](https://i.imgur.com/N80NiP8.png) Can we apply something similar to our existing graph neural network architecture? Right now, we predict our forces according to: \begin{align*} \mathbf{f}^{(i)} = \rho\left( \sum_{j \in \mathcal{N}_i} \phi(\Delta \mathbf{x}^{(ij)} , \theta_{\phi}), \theta_{\rho}\right). \end{align*} [Wu, Nikolentzos, and Vazirgiannis](https://arxiv.org/pdf/2003.00842.pdf) first use a message-passing GNN to output an encoding vector, and then use a RNN to decode this vector into a prediction. The RNN has a memory of the previous encoding vectors it has seen. ![](https://i.imgur.com/uqFQ56K.png) Jan (from last meeting): Training an RNN requires much more data than a simple MLP. Is this too burdensome in terms of the amount of flight data we would need? Ryan: Would just involve adding a GRU to the existing GNN. Theoretically, this should not result in worse performance since the GRU could learn to ignore the previous hidden states. Proposed model: ![](https://i.imgur.com/iD8dszx.png) Note that the [number of parameters in the GRU does not vary with the length of the input sequence](https://pytorch.org/docs/stable/generated/torch.nn.GRU.html), $T$.

    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