# MIT License

**Copyright (c) 2021 Raed Abdel-Sater, Concordia University**

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.**

---

## Academic Research License Notice

This software implements the research published in:

**"A Federated Learning Approach to Anomaly Detection in Smart Buildings"**
*ACM Transactions on Internet of Things, Volume 2, Number 4, Pages 1-23, 2021*

### Citation Requirement

If you use this software in academic research, you are required to cite the original paper:

```bibtex
@article{fslstm2021,
  title={A Federated Learning Approach to Anomaly Detection in Smart Buildings},
  journal={ACM Transactions on Internet of Things},
  volume={2},
  number={4},
  pages={1--23},
  year={2021},
  keywords={federated learning, anomaly detection, smart buildings, IoT sensors, LSTM, privacy preservation}
}
```

### Research Use Guidelines

- **Academic Use**: Freely permitted with proper citation
- **Commercial Use**: Permitted under MIT License terms
- **Modification**: Encouraged for research advancement
- **Distribution**: Must include this license and citation requirement

### Contact Information

For questions about research collaboration or commercial licensing:
- **Academic Inquiries**: raed.abdelsater@mail.concordia.ca
- **Technical Support**: raed.abdelsater@mail.concordia.ca
- **Research Collaboration**: raed.abdelsater@mail.concordia.ca

---

### Dependencies Licenses

This software uses the following open-source libraries:

- **PyTorch**: BSD-3-Clause License
- **NumPy**: BSD License
- **Pandas**: BSD 3-Clause License
- **Scikit-learn**: BSD 3-Clause License
- **Matplotlib**: Matplotlib License (BSD-compatible)
- **Seaborn**: BSD 3-Clause License
- **PySyft**: Apache License 2.0

All dependencies maintain their respective licenses and terms.