RISE UP (the Python package `riseup`)
Copyright (c) 2026 Imperial College London

Licensed under the Creative Commons Attribution 4.0 International Public
License (CC BY 4.0), https://creativecommons.org/licenses/by/4.0/. The legal
code is in LICENSE.

Funded by Wellcome Mental Health Data Prize UK (2026), delivered by Social Finance.

This file lists the material in this distribution that comes from others.


=======================================================================
Material adapted from others
=======================================================================

The Pretrained Actigraphy Transformer (PAT)

  Files:   riseup/models/foundation/pat.py
           riseup/models/foundation/pat_network.py
  Source:  the Pretrained Actigraphy Transformer, by Franklin Y. Ruan,
           Aiwei Zhang, Jenny Y. Oh, SouYoung Jin and Nicholas C. Jacobson,
           https://github.com/njacobsonlab/Pretrained-Actigraphy-Transformer
  Paper:   Ruan et al., "A Foundation Model for Wearable Movement Data in
           Mental Health Research", IEEE Journal of Biomedical and Health
           Informatics, doi:10.1109/JBHI.2026.3694809
  Licence: CC BY 4.0, https://creativecommons.org/licenses/by/4.0/
  Changes: the authors' Keras encoder rewritten in PyTorch, layer for layer;
           its positional table computed in float64 and rounded once to
           float32; an optional mask leaving patches out of attention; the
           model sizes and the names of the Keras weights restated in Python,
           so the published encoder weights are read without TensorFlow; the
           authors' preprocessing (a z-score per minute fitted on people)
           applied from statistics given to the embedder; patches with a
           missing minute left out, as the encoder's pre-training leaves out
           masked patches. Each file's header says the same.

  PAT's weights are not in this distribution. RISE UP downloads them from
  Hugging Face at run time, when a user asks for them; they are under CC BY
  4.0, like the code above.


The Open Movement CWA file format and reference converter

  Files:   riseup/preprocessing/sensors/accelerometer/cwa_reader.py
  Source:  the Open Movement project, by Newcastle University (UK) and
           contributors, https://github.com/digitalinteraction/openmovement
           (now openmovementproject/openmovement), at commit
           bd451a4cd608d67a7ba5bbb3bb9389ec27d14c08: the format's
           specification (Docs/ax3/cwa.h, Docs/ax3/ax3-technical.md) and
           the AX3 cwa-convert sources (Software/AX3/cwa-convert/c/cwa.h
           and main.c)
  Licence: BSD 2-Clause (Software/LICENSE.TXT), reproduced below
  Changes: nothing is copied. The layout of a data block and the packed
           sample format are restated as a numpy record type; the
           converter's timing of a block's samples (the single-precision
           offset split into whole seconds and a fraction, a block
           starting where the one before ended unless it is a second or
           more later, samples spread evenly over the block) is restated
           in numpy over all blocks at once. Times cut to whole
           milliseconds, the dropping of samples that do not move time
           forward, and the count of read errors are RISE UP's.

  Copyright (c) 2009-2026, Newcastle University (UK) and Open Movement
  project contributors.
  All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are
  met:
  1. Redistributions of source code must retain the above copyright
     notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright
     notice, this list of conditions and the following disclaimer in the
     documentation and/or other materials provided with the distribution.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


The Contributor Covenant, version 2.1

  Files:   CODE_OF_CONDUCT.md (in the repository, not in the package)
  Source:  the Contributor Covenant, version 2.1, maintained by the
           Organization for Ethical Source,
           https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
  Licence: CC BY 4.0, https://creativecommons.org/licenses/by/4.0/
  Changes: the address for reports, riseup-lab@googlegroups.com, written
           where the Covenant leaves [INSERT CONTACT METHOD]; nothing else.
           The file's "Attribution" section names the source too.
