Add Sepsis RNN Implementation to Offline Applications#43
Open
sum710 wants to merge 1 commit into0xTCG:mainfrom
Open
Add Sepsis RNN Implementation to Offline Applications#43sum710 wants to merge 1 commit into0xTCG:mainfrom
sum710 wants to merge 1 commit into0xTCG:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Privacy-Preserving Sepsis Prediction using Simple RNN
1. Project Overview
This project builds a secure Machine Learning pipeline using the Sequre framework. By using Multi-Party Computation (MPC), the code ensures complete data privacy while the model runs. While the specific test case focuses on predicting Sepsis, the main goal of this addition is to build and test Recurrent Neural Network (RNN) features inside Sequre's encrypted environment.
2. Dataset & Preprocessing
The model uses the MIMIC-III clinical database for testing.
Wx.csv,Wh.csv,b.csv,Wy.csv,by.csv) so they could be loaded into Sequre.3. Model Architecture: Simple RNN
A standard Simple RNN was built using the
@sequredecorator, which allows math operations on securely shared tensors.t, the hidden state updates using the input data, the memory from the previous step, and the bias.4. Sequre Framework Implementation Details
To manage the limits of fixed-point math inside the framework, specific Sequre standard library functions were added:
clipfunction fromsequre.stdlib.builtinis applied to the raw hidden state tensors. This stops the fixed-point numbers from overflowing and crashing during the 48-step loop.chebyshev_sigmoidfunction is used as a secure replacement for the standard sigmoid activation.5. Conclusion
This code shows how to integrate sequential models (RNNs) into the Sequre framework. It creates a baseline for processing sensitive, time-series data (like health records) while keeping strict cryptographic privacy between all computing parties.