원시데이터 수집 시스템
선정목록으로

AFLOW-ML: A RESTful API for machine-learning predictions of materials properties

간접 관련 화학·수지 · (21) 에폭시수지 (6) PEM(고분자전해질막)(7) MEA(막전극접합체)(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Eric Gossett — Center for Materials Genomics, Duke University, Durham, NC 27708, USA|||Department of Mechanical Engineering and Materials Science, Duke University, Durham, NC 27708, USA
  2. Cormac Toher — Center for Materials Genomics, Duke University, Durham, NC 27708, USA|||Department of Mechanical Engineering and Materials Science, Duke University, Durham, NC 27708, USA
  3. Corey Oses — Center for Materials Genomics, Duke University, Durham, NC 27708, USA|||Department of Mechanical Engineering and Materials Science, Duke University, Durham, NC 27708, USA
  4. Olexandr Isayev — Laboratory for Molecular Modeling, Division of Chemical Biology and Medicinal Chemistry, UNC Eshelman School of Pharmacy, University of North Carolina, Chapel Hill, NC 27599, USA
  5. Fleur Legrain — LITEN, CEA-Grenoble, 38054 Grenoble, France|||Universiteé Grenoble Alpes, 38000 Grenoble, France
  6. Frisco Rose — Center for Materials Genomics, Duke University, Durham, NC 27708, USA|||Department of Mechanical Engineering and Materials Science, Duke University, Durham, NC 27708, USA
  7. Eva Zurek — Department of Chemistry, State University of New York at Buffalo, Buffalo, NY 14260, USA
  8. Jesús Carrete — Institute of Materials Chemistry, TU Wien, A-1060 Vienna, Austria
  9. Natalio Mingo — LITEN, CEA-Grenoble, 38054 Grenoble, France
  10. Alexander Tropsha — Laboratory for Molecular Modeling, Division of Chemical Biology and Medicinal Chemistry, UNC Eshelman School of Pharmacy, University of North Carolina, Chapel Hill, NC 27599, USA
  11. Stefano Curtarolo — Center for Materials Genomics, Duke University, Durham, NC 27708, USA|||Fritz-Haber-Institut der Max-Planck-Gesellschaft, 14195 Berlin-Dahlem, Germany|||Department of Mechanical Engineering and Materials Science, Duke University, Durham, NC 27708, USA
DOI
10.1016/j.commatsci.2018.03.075
저널
Computational Materials Science
발행년도
2018
발행기관
Elsevier BV
피인용수
99
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.commatsci.2018.03.075
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2964015639

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(6) PEM(고분자전해질막), (7) MEA(막전극접합체), (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
machine learning, predicting the properties of a material, electronic, thermal and mechanical properties, materials discovery workflow, computational
판단 근거
이 논문은 머신러닝을 활용하여 신소재의 전자적, 열적, 기계적 물성을 예측하는 API 프레임워크(AFLOW-ML)를 다룹니다. 특정 제품을 직접 연구하지는 않으나, 코오롱인더스트리의 고분자 막(PEM), 투명 필름(CPI), 에폭시 수지 등의 물성 설계 및 신소재 개발 공정의 분석·모델링 기법으로 응용 가능합니다.
R&D 활용 포인트
머신러닝 기반의 물성 예측 모델을 활용하여 수소연료전지용 이온전도성 막이나 고기능성 필름의 열적·기계적 특성을 실험 전 시뮬레이션함으로써 R&D 기간과 비용을 단축할 수 있습니다.
평가 입력
본문 40,389자

초록

초록이 없습니다.

본문 40,389자

본문 펼치기
AFLOW-ML: A RESTful API for machine-learning predictions of materials properties Eric Gossett, <sup>1, 2</sup> Cormac Toher, <sup>1, 2</sup> Corey Oses, <sup>1, 2</sup> Olexandr Isayev, <sup>3</sup> Fleur Legrain, <sup>4, 5</sup> Frisco Rose, <sup>1, 2</sup> Eva Zurek, <sup>6</sup> Jes´us Carrete, <sup>7</sup> Natalio Mingo, <sup>4</sup> Alexander Tropsha, <sup>3</sup> and Stefano Curtarolo <sup>1, 2, 8,</sup> <sup>_∗_</sup> 1 _Department_ _of_ _Mechanical_ _Engineering_ _and_ _Materials_ _Science,_ _Duke_ _University,_ _Durham,_ _North_ _Carolina_ _27708,_ _USA_ 2 _Center_ _for_ _Materials_ _Genomics,_ _Duke_ _University,_ _Durham,_ _North_ _Carolina_ _27708,_ _USA_ 3 _Laboratory_ _for_ _Molecular_ _Modeling,_ _Division_ _of_ _Chemical_ _Biology_ _and_ _Medicinal_ _Chemistry,_ _UNC_ _Eshelman_ _School_ _of_ _Pharmacy,_ _University_ _of_ _North_ _Carolina,_ _Chapel_ _Hill,_ _North_ _Carolina_ _27599,_ _USA_ 4 _LITEN,_ _CEA-Grenoble,_ _38054_ _Grenoble,_ _France_ 5 _Universite´e_ _Grenoble_ _Alpes,_ _38000_ _Grenoble,_ _France_ 6 _Department_ _of_ _Chemistry,_ _State_ _University_ _of_ _New_ _York_ _at_ _Buffalo,_ _Buffalo,_ _New_ _York_ _14260,_ _USA_ 7 _Institute_ _of_ _Materials_ _Chemistry,_ _TU_ _Wien,_ _A-1060_ _Vienna,_ _Austria_ 8 _Fritz-Haber-Institut_ _der_ _Max-Planck-Gesellschaft,_ _14195_ _Berlin-Dahlem,_ _Germany_ (Dated: August 6, 2021) Machine learning approaches, enabled by the emergence of comprehensive databases of materials properties, are becoming a fruitful direction for materials analysis. As a result, a plethora of models have been constructed and trained on existing data to predict properties of new systems. These powerful methods allow researchers to target studies only at interesting materials neglecting the non-synthesizable systems and those without the desired properties — thus reducing the amount of resources spent on expensive computations and/or time-consuming experimental synthesis. However, using these predictive models is not always straightforward. Often, they require a panoply of technical expertise, creating barriers for general users. AFLOW-ML (AFLOW <u>Machine Learning) overcomes the problem by streamlining the use of the machine learning methods developed within the AFLOW</u> consortium. The framework provides an open RESTful API to directly access the continuously updated algorithms, which can be transparently integrated into any workflow to retrieve predictions of electronic, thermal and mechanical properties. These types of interconnected cloud-based applications are envisioned to be capable of further accelerating the adoption of machine learning methods into materials development. I. INTRODUCTION Since their inception, high throughput materials science frameworks such as AFLOW [1–8] have been amassing large databases of materials properties. For instance, the AFLOW database [9–12] alone contains over 1.7 million material compounds with over 170 million calculated properties, generated from the <u>Inorganic</u> <u>Crystal</u> <u>Structure</u> <u>Database</u> (ICSD) [13–15], as well as by decorating crystal structure prototypes [16]. Combined with other online databases such as the Materials Project [17], NoMaD [18] and OQMD [19], materials data is abundant and available. As a result, <u>machine</u> <u>learning</u> (ML) methods have emerged as the ideal tool for data analysis [20– 25], by identifying the key features in a data set [26] to construct a model for predicting the properties of a material. Recently, several models were developed to predict the properties of various material classes such as perovskites [27, 28], oxides [29], elpasolites [30, 31], thermoelectrics [32–34], and metallic glasses [35]. Additionally, generalized approaches have been devised for inorganic materials [36–43] and for systematically identifying efficient physical models of materials properties [44]. While predictions are powerful tools for rational materials design, the discipline is still reasonably new within the realm of materials science. As a result, a working understanding of machine learning principles, along with a high level of technical expertise, is required for using code bases effectively. This inhibits accessibility, where an av _∗_ [stefano@duke.edu](mailto:stefano@duke.edu) erage end user aims to utilize the codes to retrieve predictions with as little complication as possible. With the ever increasing number of predictive models, a unique challenge emerges: how does one create an accessible means to integrate machine learning frameworks into a materials discovery workflow? AFLOW-ML alleviates this issue by providing a simplified abstraction on top of sophisticated predictive models. Predictions are exposed through a web accessible <u>Application Programming Interface (API) where function-</u> ality is distilled down to its essence: from the user input, return a prediction. AFLOW-ML can be added into any code base through use of an HTTP request library, native to most languages. Alternatively, AFLOW-ML can be utilized though use of the included Python client and command line interface. Through such abstractions, AFLOWML is accessible to a wide audience: it unburdens the user from having to understand the intricacies of machine learning and eliminates the technical expertise required to set up such codes. II. REST API The AFLOW-ML API is structured around a <u>REpresentational</u> <u>State</u> <u>Transfer</u> (REST) architecture, which allows resources to be accessed using HTTP request methods. Each resource is located at an endpoint, which is identified by a URL comprised of descriptive nouns. A URL may also include special variables in the form of path parameters and a query string. A path param Action Endpoint Object `POST` `/plmf/prediction` task `POST` `/mfd/prediction` task `GET` `/prediction/result/{id}` status or prediction TABLE I. A list of all endpoints in the API. Actions specify the supported HTTP request method, endpoints define the URL and objects are the returned resource. An endpoint with _{_ ... _}_ denotes a path parameter. eter is a segment of the URL that specifies a particular resource and is denoted by a noun within braces ( _{_ ... _}_ ) inside the endpoint. The query string is a list of key-value pairs placed at the end of a URL, which control the representation (e.g. format) of the resource. Typically, it is used to apply filters or define the structure of the returned representation. Resources within the API are represented in <u>JavaScript</u> <u>Object</u> <u>Notation</u> (JSON), and are referred to as objects. Once at an endpoint, the user must specify how to interact with the object. This is referred to as an action, and is an HTTP request method. The API supports the two most common HTTP request methods, `GET` and `POST`, where `GET` fetches an object and `POST` sends user defined data to the server. Therefore, users will interact with the API by performing actions ( `GET`, `POST` ) on endpoints (URLs) to retrieve objects (resources). III. API STRUCTURE The overall structure of the API can be seen in Table I. All endpoints are located at the base URL aflow.org/API/aflow-ml/v1.0/ and are organized by the model and the returned object. AFLOW-ML currently supports two models: <u>molar</u> <u>fraction</u> <u>descriptor</u> ( `mfd` ) [37] and <u>property-labeled</u> <u>materials</u> <u>fragments</u> ( `plmf` ) [36]. It is designed to be extensible, and additional models will be added in the future as they are developed. The `mfd` model [37] predicts the material properties based on the chemical formula only: the vector of descriptors has 87 components, each component _bi_ being the mole fraction of element _Zi_ in the compound ( _Z_ 1 is H, _Z_ 2 is He, etc.). The model is built with nonlinear support vector machines and a radial basis function kernel. The model is trained using a data set of 292 randomly selected compounds of the ICSD for which the vibrational properties are computed with DFT calculations. The `plmf` model [36] represents each crystal structure as a colored graph, where the atomic vertices are decorated by the reference properties of the corresponding elemental species. Topological neighbors are determined using a Voronoi tessellation, and these nodes are connected to form the graph. The final feature vector for the ML model is obtained by partitioning the full graph into smaller subgraphs, termed fragments in analogy with the fragmentbased descriptors used in cheminformatics [45]. All `plmf` models are built with the Gradient Boosting Decision Tree (GBDT) method [46]. Models for electronic and thermomechanical properties were trained on 26,674 and 2,829 materials entries from the AFLOW repository, respectively. All models are validated through _Y_ -randomization (label scrambling) and five-fold cross validation. In general, API usage involves uploading a material structure to a `POST` endpoint, `<model>/prediction`, and retrieving a prediction object from a `GET` endpoint, `/prediction/result/{id}`, as shown in the flowchart in Figure 1. `POST` endpoints are responsible for the submission of a material structure for a prediction. In their request body, the file keyword is required. It must contain a string representation of the material’s crystal structure, in POSCAR 5 format (the lattice geometry and atomic position input file for version 5 of the VASP DFT package [47, 48]). Upon receiving a request, the response body returns a task object containing information about the submitted structure, which has the following format: ``` { "id": String, "model": String, "results_endpoint": String } ``` When a material is posted to the API, a prediction task is created and added to a queue. Each task is assigned an identifier, the `id` keyword, used to fetch the the prediction object at the endpoint referenced in the `results_endpoint` keyword. This endpoint, `/prediction/result/{id}`, supports the `GET` method and requires the id as a path parameter. Depending on the status of the prediction task, the response body returns a status object or prediction object. When the task is still in the queue, the status object is returned: ``` { "status": String, "description": String } ``` The status object details the state of the prediction task. The state is identified by the keyword `status` which takes one of the following values: `STARTED`, `PENDING`, `SUCCESS` and `FAILURE`, while a description of each status type is given by the `description` keyword. When attempting to retrieve the prediction object, it is best to poll the endpoint periodically to check the status. Tasks that are still within the queue are given the `STARTED` or `PENDING` status, while a completed task status will read `SUCCESS` . In instances where the uploaded file is incorrectly formatted, a failed task will occur, status: `FAILURE` . When the task is completed, the response contains the prediction object. The prediction object is an extension of Endpoint `<model>/prediction` ``` task object (which ``` Response ``` includes {id}) ``` Endpoint `/prediction/result/{id}` ``` status or prediction ``` Response ``` object ``` POSCAR Prediction yes ``` POST ``` status = "SUCCESS" no FIG. 1. A flowchart illustrating the typical use-case of the API. First a POSCAR file is posted to the `<model>/prediction` endpoint to retrieve a task object. The `id` field of the task object is used to poll the `<model>/prediction/` _{_ `id` _}_ for the status of the prediction. If the status field of the response equals `SUCCESS` then the prediction object is returned. the status object and contains different keywords depending on the model used. For `plmf`, the prediction object, known as a `plmf` prediction, takes the following form: ``` { "status": String, "description": String, "model": String, "citation": String, "ml_egap_type": String, "ml_egap": Number, "ml_energy_per_atom": Number, "ml_ael_bulk_modulus_vrh": Number, "ml_ael_shear_modulus_vrh": Number, "ml_agl_debye": Number, "ml_agl_heat_capacity_Cp_300K": Number, "ml_agl_heat_capacity_Cv_300K": Number, "ml_agl_heat_capacity_Cp_300K_per_atom": Number, ``` ``` "ml_agl_heat_capacity_Cv_300K_per_atom": Number, "ml_agl_thermal_conductivity_300K": Number, "ml_agl_thermal_expansion_300K": Number } ``` The `mfd` model returns an `mfd` prediction object: ``` { "status": String, "description": String, "model": String, "citation": String, "ml_Cv": Number, "ml_Fvib": Number, "ml_Svib": Number } ``` The details of each object and their keywords are found in the List of API Endpoints and Objects section. IV. USING THE API The process to retrieve a prediction is as follows: First, the contents of a POSCAR 5 file, titled test.poscar, are uploaded to the submission endpoint. This can be achieved by using an HTTP library such as requests (Python) [49], URLSession (iOS SDK), HttpURLConnection (Android SDK), Fetch (JavaScript) or using a command line tool such as wGET or cURL. For this example, cURL will be used. The contents of the POSCAR are posted to the submission endpoint as follows: ``` curl http://aflow.org/API/aflow-ml/v1.0/plmf/prediction --data-urlencode file@test.poscar ``` where the `--data-urlencode` flag handles encoding the contents of the POSCAR, located in the current directory, and associating it to the file keyword. Note that as mentioned previously, the `POST` will return a JSON response including the task id. The task id is then used to poll the results endpoint: ``` curl http://aflow.org/API/aflow-ml/v1.0/prediction/result/{id} ``` The status keyword is used as an indicator to determine if any additional polling is required. Depending on the status of the job, the endpoint will return either a task status object or a prediction object. If the status keyword’s value is `SUCCESS` then no additional polling is required, since the endpoint will return a prediction object, which is an extension of the task status object. V. LIST OF API ENDPOINTS AND OBJECTS This section includes the details of each endpoint and object accessible in the API. Endpoint information contains the associated HTTP method, request parameters, request body data and response object for each endpoint. Object properties are listed along with their type and description. A. Endpoints - `POST` `plmf/prediction` – _Description._ Uploads the contents of a POSCAR 5 to retrieve a prediction using the `plmf` model. – _Query_ _parameters._ ∗ `file` (required) - The contents of the POSCAR 5. – _Response_ _format._ On success, the response header contains the HTTP status code 200 OK and the response body contains a task object, in JSON format. – _Example._ ``` curl http://aflow.org/API/aflow-ml/ v1.0/plmf/prediction --data-urlencode file@test.poscar ``` - `POST` `mfd/prediction` – _Description._ Uploads the contents of a POSCAR 5 to retrieve a prediction using the `mfd` model. – _Query_ _parameters._ ∗ `file` (required) - The contents of the POSCAR 5. – _Response_ _format._ On success, the response header contains the HTTP status code 200 OK and the response body contains a task object, in JSON format. – _Example._ ``` curl http://aflow.org/API/aflow-ml/ v1.0/mfd/prediction --data-urlencode file@test.poscar ``` - `GET` `/prediction/result/{id}` – _Description._ Fetches the status object or re turns the prediction object when the task is completed. – _Path_ _parameters._ ∗ `id` (required) - The unique identifier re trieved from the task object on submission. – _Query_ _string_ _arguments._ ∗ `fields` - A comma separated list of the fields to include in the JSON response object. Note that specified fields will only affect the prediction object. – _Response_ _format._ On success, the response header contains the HTTP status code 200 OK. If the task is still pending, the response body contains a task status object in JSON format. Upon completion the response body contains a prediction object in JSON format. - _Example._ ``` curl http://aflow.org/API/aflow-ml/ v1.0/prediction/result /59ea0f78-4868-4a1e-9a20-e7343f00907d ``` B. Objects - Task – _Description._ Describes the task for a submitted prediction. Includes the unique identifier for the prediction and results endpoint. – _Keys._ ∗ `id` - _Description._ The unique identifier of the prediction task. Used at the fetch prediction endpoint to retrieve the status of a prediction and return the results on completion. - _Type._ String. ∗ `results_endpoint` - _Description._ The path of the endpoint where the prediction task status and results are retrieved. - _Type._ String. ∗ `model` - _Description._ The name of the machine learning model used to generate the prediction. - _Type._ String. – _Example._ ``` { "id": "d29af704-06bf -4dc8-8928 -cd2c41aea454", "model": "plmf", "results_endpoint": "/prediction/result/ d29af704-06bf -4dc8-8928 cd2c41aea454" } ``` - Status – _Description._ Provides the status of a (predic tion) task. – _Keys._ ∗ `status` - _Description._ The status of the task. Takes the following values: `STARTED`, `PENDING`, `SUCCESS` and `FAILURE` . When a task is added to the queue its status will read `PENDING` . Once it reaches the top of the queue the status will read `STARTED` and the prediction will run. If the prediction is successful the status will read `SUCCESS` . - _Type._ String. ∗ `Description` - _Description._ Describes the status of the task. - _Type._ String. – _Example._ ``` { "status": "PENDING" "description": "The calculation is running" } ``` - `plmf` prediction – _Description._ The results of the prediction us ing the `plmf` model. This is an extension of the task status object. – _Keys._ ∗ `status` - _Description._ The status of the task. Takes the following values: `STARTED`, `PENDING`, `SUCCESS` and `FAILURE` . When a task is added to the queue its status will read `PENDING` . Once it reaches the top of the queue the status will read `STARTED` and the prediction will run. If the prediction is successful the status will read `SUCCESS` . - _Type._ String. ∗ `description` - _Description._ Describes the status of the task. - _Type._ String. ∗ `model` - _Description._ The model used in the prediction. - _Type._ String. ∗ `citation` - _Description._ The DOI for the model’s publication. - _Type._ String. ∗ `ml_egap_type` - _Description._ Specifies if the material is a metal or an insulator. Takes the following values: `Metal`, `Insulator` . - _Type._ String. ∗ `ml_egap` - _Description._ The electronic band gap. - _Units._ eV. - _Type._ Number. ∗ `ml_energy_per_atom` - _Description._ The energy per atom. - _Units._ eV/atom. - _Type._ Number. ∗ `ml_ael_bulk_modulus_vrh` - _Description._ The bulk modulus, trained using the Automatic Elasticity Library (AEL). [50] - _Units._ GPa. - _Type._ Number. ∗ `ml_ael_shear_modulus_vrh` - _Description._ The shear modulus, trained using AEL. - _Units._ GPa. - _Type._ Number. ∗ `ml_agl_debye` - _Description._ The Debye temperature, trained using the Automatic GIBBS Library (AGL) [51]. - _Units._ K. - _Type._ Number. ∗ `ml_agl_heat_capacity_Cp_300K` - _Description._ The heat capacity at 300K and constant pressure, trained using AGL. - _Units._ _k_ B/cell. - _Type._ Number. ∗ `ml_agl_heat_capacity_Cp_300K_per_atom` - _Description._ The heat capacity per atom at 300K and constant pressure, trained using AGL. - _Units._ _k_ B/atom. - _Type._ Number. ∗ `ml_agl_heat_capacity_Cv_300K` - _Description._ The heat capacity at 300K and constant volume, trained using AGL. - _Units._ _k_ B/cell. - _Type._ Number. ∗ `ml_agl_heat_capacity_Cv_300K_per_atom` - _Description._ The heat capacity per atom at 300K and constant volume, trained using AGL. - _Units._ _k_ B/atom. - _Type._ Number. ∗ `ml_agl_thermal_conductivity_300K` - _Description._ The lattice thermal conductivity at 300K, trained using AGL. - _Units._ W/(m K). - _Type._ Number. ∗ `ml_agl_thermal_expansion_300K` - _Description._ The thermal expansion coefficient at 300K, trained using AGL. - _Units._ K <sup>_−_</sup> <sup>1</sup> . - _Type._ Number. – _Example._ ``` { "status": "SUCCESS" "description": "The job has completed.", "model": "plmf", "citation": "10.1038/ncomms15679", "ml_egap_type": "Insulator", "ml_egap": 0.923, "ml_energy_per_atom": -5.760, "ml_ael_bulk_modulus_vrh": 178.538, "ml_ael_shear_modulus_vrh": 140.121, "ml_agl_debye": 713.892, ``` ``` "ml_agl_heat_capacity_Cp_300K": 23.362, "ml_agl_heat_capacity_Cp_300K _per_atom": 2.333, "ml_agl_heat_capacity_Cv_300K": 22.625, "ml_agl_heat_capacity_Cv_300K _per_atom": 2.311, "ml_agl_thermal_conductivity _300K": 2.792, "ml_agl_thermal_expansion_300K": 6.093e-05 } ``` - `mfd` prediction – _Description._ The results of a prediction using the `mfd` model. This is an extension of the task status object. – _Keys._ ∗ `status` - _Description._ The status of the task. Takes the following values: `STARTED`, `PENDING`, `SUCCESS` and `FAILURE` . When a task is added to the queue its status will read `PENDING` . Once it reaches the top of the queue the status will read `STARTED` and the prediction will run. If the prediction is successful the status will read `SUCCESS` . - _Type._ String. ∗ `description` - _Description._ Describes the status of the task. - _Type._ String. ∗ `model` - _Description._ The model used in the prediction. - _Type._ String. ∗ `citation` - _Description._ The DOI for the model’s publication. - _Type._ String. ∗ `ml_Cv` - _Description._ The heat capacity at constant volume. - _Units._ meV/(atom K). - _Type._ Number. ∗ `ml_Fvib` - _Description._ The vibrational free energy per atom. - _Units._ meV/atom. - _Type._ Number. ∗ `ml_Svib` - _Description._ The vibrational entropy per atom. - _Units._ meV/(atom K). - _Type._ Number. – _Example._ ``` { "description": "The job has completed.", "model": "mfd", "citation": "10.1021/acs.chemmater.7b00789", "status": "SUCCESS", "ml_Cv": 0.221, "ml_Fvib": 21.188, "ml_Svib": 0.211 } ``` VI. PYTHON CLIENT A Python client is available for the AFLOW-ML REST API that provides researchers and developers a means to integrate AFLOW-ML into their applications or workflows, such as AFLOW _π_ [8]. The client includes the `AFLOWmlAPI` class which provides all the functionality needed to interface with the AFLOW-ML API, and can be downloaded at `aflow.org/src/aflow-ml` . From the client, a prediction is retrieved by passing the contents of a POSCAR to the `get_prediction` method. The `AFLOWmlAPI` class can be incorporated into a Python framework using code similar to the example illustrated in Figure 2. ``` from AFLOWml.client import AFLOWmlAPI ``` The client’s `AFLOWmlAPI` class includes two additional methods, `submit_job` and `poll_job`, that provide more control when submitting a prediction, and which can be used in place of the `get_prediction` method in the example shown in Figure 2. The `submit_job` method targets the `<model>/prediction` endpoint and returns the jobs task id. From this id, the job can be polled using the `poll_job` method which will return a prediction object upon completion. These methods are ideal for cases where the user would prefer to postpone polling to a later time. VII. COMMAND LINE INTERFACE Upon installation, the Python AFLOW-ML client provides a <u>command</u> <u>line</u> <u>interface</u> (CLI) titled `aflow-ml` . The CLI exposes all the functionality of the Python client and is targeted at users who are not familiar with Python or using REST APIs. To receive a prediction the path of the POSCAR 5 file is passed to the CLI as a positional argument. Additionally, the model type is specified via the `--model` flag: ``` aflow-ml test.poscar --model=plmf ``` By default, the CLI will output the results to the terminal. The default functionality is modified by the use of additional flags. For instance, results can be saved to an out file by use of the `-s` flag: ``` aflow-ml test.poscar --model=plmf -s ``` where the predicted results are saved to a file titled `prediction.txt` . Additional flags exist which provide various levels of customization such as specifying the predicted values to return or the format of the output. A list of each flag is found below. This list is also viewable from the CLI using the `-h` or `--help` flags. A. CLI flags - Model – _Flag._ `-m` or `--model` – _Description._ (Required) Specifies the model to use in the prediction. – _Example._ ``` aflow-ml test.poscar --model=plmf ``` - Save – _Flag._ `-s` or `--save` – _Description._ Saves the prediction to a file. If the out file is not specified contents are saved to a file named `prediction.txt` . – _Example._ ``` aflow-ml test.poscar -m plmf -s ``` ``` with open('test.poscar', 'r') as input_file: ``` ``` aflowML = AFLOWmlAPI() data = aflowML.get_prediction( ``` ``` input_file.read(), 'plmf' ) ``` FIG. 2. Example showing how to retrieve a prediction using the AFLOW-ML Python client. This method takes two arguments: `poscar` and `model`, where `poscar` is a file object (reading from the file `test.poscar` in the example in Figure 2) and `model` is a string specifying the model to use ( `plmf` or `mfd` ). This method returns a Python dictionary, in which the keys and respective predicted values are model dependent. For a list of each prediction object’s key and value pair, please refer to the previous section. - Outfile – _Flag._ `--format` – _Description._ Specifies the path and name of the out file. – _Example._ ``` aflow-ml test.poscar -m plmf -s --outfile=prediction.txt ``` - Format – _Flag._ `--format` – _Description._ Specifies the format of the out file. Currently, text and JSON are supported. – _Example._ ``` aflow-ml test.poscar -m plmf -s --format=JSON ``` - Fields – _Flag._ `--fields` – _Description._ State the predicted fields to show in the output. Expects fields as a comma separated list. If the flag is not present, all fields will be shown. – _Example._ ``` aflow-ml test.poscar -m plmf -s --fields=egap_ml,egap_type_ml ``` - Verbose – _Flag._ `-v` or `--verbose` – _Description._ Toggle verbose mode. When en abled the CLI will log the progress of the prediction. [1] S. Curtarolo, W. Setyawan, G. L. W. Hart, M. Jahn´atek, R. V. Chepulskii, R. H. Taylor, S. Wang, J. Xue, K. Yang, O. Levy, M. J. Mehl, H. T. Stokes, D. O. Demchenko, and D. Morgan, _AFLOW:_ _An_ _automatic_ _framework_ _for_ _high-_ _throughput_ _materials_ _discovery_, Comput. Mater. Sci. 58, 218–226 (2012). [2] K. Yang, C. Oses, and S. Curtarolo, _Modeling_ _Off-_ _Stoichiometry Materials with a High-Throughput Ab-Initio_ _Approach_, Chem. Mater. 28, 6484–6492 (2016). [3] C. E. Calderon, J. J. Plata, C. Toher, C. Oses, O. Levy, M. Fornari, A. Naturen, M. J. Mehl, G. L. W. Hart, M. Buongiorno Nardelli, and S. Curtarolo, _The_ _AFLOW_ _standard_ _for_ _high-throughput_ _materials_ _science_ _calcula-_ _tions_, Comput. Mater. Sci. 108 Part A, 233–238 (2015). [4] O. Levy, M. Jahn´atek, R. V. Chepulskii, G. L. W. Hart, and S. Curtarolo, _Ordered_ _Structures_ _in_ _Rhenium_ _Binary_ _Alloys_ _from_ _First-Principles_ _Calculations_, J. Am. Chem. Soc. 133, 158–163 (2011). [5] O. Levy, G. L. W. Hart, and S. Curtarolo, _Structure_ _maps_ _for_ _hcp_ _metals_ _from_ _first-principles_ _calculations_, Phys. Rev. B 81, 174106 (2010). – _Example._ ``` aflow-ml test.poscar -m plmf -v ``` VIII. CONCLUSION AFLOW-ML enhances materials discovery by providing streamlined open access to predictive models. The REST API promotes resource sharing, where any application, workflow or website may leverage our models. Additionally, the Python client provides a closed solution, which requires little programming knowledge to get started. With this flexibility, AFLOW-ML presents the accessible option for machine learning in the materials design community. ACKNOWLEDGMENTS This work is partially supported by DOD-ONR (N00014-14-1-0526, N00014-16-1-2326, N00014-16-1-2583, N00014-17-1-2090), and by the Duke University—Center for Materials Genomics. C.O. acknowledges support from the National Science Foundation Graduate Research Fellowship under Grant No. DGF-1106401. A.T. and O.I. acknowledge support from DOD-ONR N00014-16-1-2311 and Eshelman Institute for Innovation Award. O.I. acknowledges Extreme Science and Engineering Discovery Environment (XSEDE) award DMR-110088, which is supported by National Science Foundation grant number ACI-1053575. S.C. acknowledges the Alexander von Humboldt Foundation for financial support. REFERENCES [6] O. Levy, G. L. W. Hart, and S. Curtarolo, _Uncovering_ _Compounds_ _by_ _Synergy_ _of_ _Cluster_ _Expansion_ _and_ _High-_ _Throughput_ _Methods_, J. Am. Chem. Soc. 132, 4830–4833 (2010). [7] G. L. W. Hart, S. Curtarolo, T. B. Massalski, and O. Levy, _Comprehensive_ _Search_ _for_ _New_ _Phases_ _and_ _Compounds_ _in_ _Binary_ _Alloy_ _Systems_ _Based_ _on_ _Platinum-Group_ _Metals,_ _Using_ _a_ _Computational_ _First-Principles_ _Approach_, Phys. Rev. X 3, 041035 (2013). [8] A. R. Supka, T. E. Lyons, L. S. I. Liyanage, P. D’Amico, R. Al Rahal Al Orabi, S. Mahatara, P. Gopal, C. Toher, D. Ceresoli, A. Calzolari, S. Curtarolo, M. Buongiorno Nardelli, and M. Fornari, _AFLOWπ:_ _A_ _minimalist_ _approach_ _to_ _high-throughput_ _ab_ _initio_ _calculations_ _includ-_ _ing_ _the_ _generation_ _of_ _tight-binding_ _hamiltonians_, Comput. Mater. Sci. 136, 76–84 (2017). [9] S. Curtarolo, W. Setyawan, S. Wang, J. Xue, K. Yang, R. H. Taylor, L. J. Nelson, G. L. W. Hart, S. Sanvito, M. Buongiorno Nardelli, N. Mingo, and O. Levy, _AFLOWLIB.ORG:_ _A_ _distributed_ _materials_ _properties_ _repository_ _from_ _high-throughput_ _ab_ _initio_ _calculations_, Comput. Mater. Sci. 58, 227–235 (2012). [10] W. Setyawan and S. Curtarolo, _High-throughput electronic_ _band_ _structure_ _calculations:_ _Challenges_ _and_ _tools_, Comput. Mater. Sci. 49, 299–312 (2010). [11] R. H. Taylor, F. Rose, C. Toher, O. Levy, K. Yang, M. Buongiorno Nardelli, and S. Curtarolo, _A_ _RESTful_ _API_ _for_ _exchanging_ _materials_ _data_ _in_ _the_ _AFLOWLIB.org_ _consortium_, Comput. Mater. Sci. 93, 178–192 (2014). [12] F. Rose, C. Toher, E. Gossett, C. Oses, M. Buon giorno Nardelli, M. Fornari, and S. Curtarolo, _AFLUX:_ _The_ _LUX_ _materials_ _search_ _API_ _for_ _the_ _AFLOW_ _data_ _repositories_, Comput. Mater. Sci. 137, 362–370 (2017). [13] G. Bergerhoff, R. Hundt, R. Sievers, and I. D. Brown, _The_ _inorganic_ _crystal_ _structure_ _data_ _base_, J. Chem. Inf. Comput. Sci. 23, 66–69 (1983). [14] A. D. Mighell and V. L. Karen, _NIST_ _Materials_ _Science_ _Databases_, Acta Crystallogr. Sect. A 49, c409 (1993). [15] A. Belsky, M. Hellenbrandt, V. L. Karen, and P. Luksch, _New_ _developments_ _in_ _the_ _Inorganic_ _Crystal_ _Structure_ _Database_ _(ICSD):_ _accessibility_ _in_ _support_ _of_ _materials_ _re-_ _search_ _and_ _design_, Acta Crystallogr. Sect. B 58, 364–369 (2002). [16] M. J. Mehl, D. Hicks, C. Toher, O. Levy, R. M. Hanson, G. L. W. Hart, and S. Curtarolo, _The_ _AFLOW_ _Library_ _of_ _Crystallographic_ _Prototypes:_ _Part_ _1_, Comput. Mater. Sci. 136, S1–S828 (2017). [17] A. Jain, G. Hautier, C. J. Moore, S. P. Ong, C. C. Fis cher, T. Mueller, K. A. Persson, and G. Ceder, _A_ _high-_ _throughput infrastructure for density functional theory cal-_ _culations_, Comput. Mater. Sci. 50, 2295–2310 (2011). [18] M. Scheffler, C. Draxl, and Computer Center of the Max-Planck Society, Garching, _The_ _NoMaD_ _Repository_, [http://nomad-repository.eu](http://nomad-repository.eu) (2014). [19] J. E. Saal, S. Kirklin, M. Aykol, B. Meredig, and C. Wolverton, _Materials_ _Design_ _and_ _Discovery_ _with_ _High-_ _Throughput_ _Density_ _Functional_ _Theory:_ _The_ _Open_ _Quan-_ _tum_ _Materials_ _Database_ _(OQMD)_, JOM 65, 1501–1509 (2013). [20] Y. Zeng, S. J. Chua, and P. Wu, _On_ _the_ _Prediction_ _of_ _Ternary_ _Semiconductor_ _Properties_ _by_ _Artificial_ _Intel-_ _ligence_ _Methods_, Chem. Mater. 14, 2989–2998 (2002). [21] T. Gu, W. Lu, X. Bao, and N. Chen, _Using_ _support_ _vec-_ _tor_ _regression_ _for_ _the_ _prediction_ _of_ _the_ _band_ _gap_ _and_ _melt-_ _ing point of binary and ternary compound semiconductors_, Solid State Sci. 8, 129–136 (2006). [22] L. M. Ghiringhelli, J. Vybiral, S. V. Levchenko, C. Draxl, and M. Scheffler, _Big_ _Data_ _of_ _Materials_ _Science:_ _Criti-_ _cal_ _Role_ _of_ _the_ _Descriptor_, Phys. Rev. Lett. 114, 105503 (2015). [23] E. O. Pyzer-Knapp, K. Li, and A. Aspuru-Guzik, _Learn-_ _ing_ _from_ _the_ _Harvard_ _Clean_ _Energy_ _Project:_ _The_ _Use_ _of_ _Neural_ _Networks_ _to_ _Accelerate_ _Materials_ _Discovery_, Adv. Func. Mater. 25, 6495–6502 (2015). [24] R. G´omez-Bombarelli, J. Aguilera-Iparraguirre, T. D. Hirzel, D. Duvenaud, D. Maclaurin, M. A. BloodForsythe, H. S. Chae, M. Einzinger, D.-G. Ha, T. Wu, G. Markopoulos, S. Jeon, H. Kang, H. Miyazaki, M. Numata, S. Kim, W. Huang, S. I. Hong, M. Baldo, R. P. Adams, and A. Aspuru-Guzik, _Design_ _of_ _efficient_ _molecu-_ _lar_ _organic_ _light-emitting_ _diodes_ _by_ _a_ _high-throughput_ _vir-_ _tual_ _screening_ _and_ _experimental_ _approach_, Nature Mater. 15, 1120–1127 (2016). [25] M. Ziatdinov, A. Maksov, and S. V. Kalinin, _Learning sur-_ _face_ _molecular_ _structures_ _via_ _machine_ _vision_, NPJ Com put. Mater. 3, 31 (2017). [26] S. R. Michalski, G. J. Carbonell, and M. T. Mitchell, eds., _Machine Learning an Artificial Intelligence Approach_ _Volume_ _II_ (Morgan Kaufmann Publishers Inc., San Francisco, CA, USA, 1986). [27] A. van Roekeghem, J. Carrete, C. Oses, S. Curtarolo, and N. Mingo, _High-Throughput_ _Computation_ _of_ _Thermal_ _Conductivity of High-Temperature Solid Phases:_ _The Case_ _of Oxide and Fluoride Perovskites_, Phys. Rev. X 6, 041061 (2016). [28] G. Pilania, A. Mannodi-Kanakkithodi, B. P. Uberuaga, R. Ramprasad, J. E. Gubernatis, and T. Lookman, _Ma-_ _chine_ _learning_ _bandgaps_ _of_ _double_ _perovskites_, Sci. Rep. 6, 19375 (2016). [29] G. Hautier, C. C. Fischer, A. Jain, T. Mueller, and G. Ceder, _Finding_ _Naturere’s_ _Missing_ _Ternary_ _Oxide_ _Compounds_ _using_ _Machine_ _Learning_ _and_ _Density_ _Func-_ _tional_ _Theory_, Chem. Mater. 22, 3762–3767 (2010). [30] F. A. Faber, A. Lindmaa, O. A. von Lilienfeld, and R. Armiento, _Machine_ _Learning_ _Energies_ _of_ _2_ _Million_ _El-_ _pasolite (ABC_ 2 _D_ 6 _) Crystals_, Phys. Rev. Lett. 117, 135502 (2016). [31] G. Pilania, J. E. Gubernatis, and T. Lookman, _Multi-_ _fidelity_ _machine_ _learning_ _models_ _for_ _accurate_ _bandgap_ _pre-_ _dictions_ _of_ _solids_, Comput. Mater. Sci. 129, 156–163 (2017). [32] J. Carrete, W. Li, N. Mingo, S. Wang, and S. Curtarolo, _Finding Unprecedentedly Low-Thermal-Conductivity Half-_ _Heusler_ _Semiconductors_ _via_ _High-Throughput_ _Materials_ _Modeling_, Phys. Rev. X 4, 011019 (2014). [33] J. Carrete, N. Mingo, S. Wang, and S. Curtarolo, _Nanograined_ _Half-Heusler_ _Semiconductors_ _as_ _Advanced_ _Thermoelectrics:_ _An_ _Ab_ _Initio_ _High-Throughput_ _Statisti-_ _cal_ _Study_, Adv. Func. Mater. 24, 7427–7432 (2014). [34] A. Furmanchuk, J. E. Saal, J. W. Doak, G. B. Olson, A. Choudhary, and A. Agrawal, _Prediction_ _of_ _seebeck_ _co-_ _efficient_ _for_ _compounds_ _without_ _restriction_ _to_ _fixed_ _sto-_ _ichiometry:_ _A_ _machine_ _learning_ _approach_, J. Comput. Chem. (2017). [35] Y. T. Sun, H. Y. Bai, M. Z. Li, and W. H. Wang, _Machine_ _Learning_ _Approach_ _for_ _Prediction_ _and_ _Understanding_ _of_ _Glass-Forming_ _Ability_, J. Phys. Chem. Lett. 8, 3434–3439 (2017). [36] O. Isayev, C. Oses, C. Toher, E. Gossett, S. Curtarolo, and A. Tropsha, _Universal_ _fragment_ _descriptors_ _for_ _pre-_ _dicting_ _electronic_ _properties_ _of_ _inorganic_ _crystals_, Nature Commun. 8, 15679 (2017). [37] F. Legrain, J. Carrete, A. van Roekeghem, S. Curtarolo, and N. Mingo, _How_ _Chemical_ _Composition_ _Alone_ _Can_ _Predict_ _Vibrational_ _Free_ _Energies_ _and_ _Entropies_ _of_ _Solids_, Chem. Mater. 29, 6220–6227 (2017). [38] A. Furmanchuk, A. Agrawal, and A. Choudhary, _Predic-_ _tive analytics for crystalline materials:_ _bulk modulus_, RSC Adv. 6, 95246–95251 (2016). [39] L. Ward, A. Agrawal, A. Choudhary, and C. Wolverton, _A_ _general-purpose_ _machine_ _learning_ _framework_ _for_ _pre-_ _dicting_ _properties_ _of_ _inorganic_ _materials_, NPJ Comput. Mater. 2, 16028 (2016). [40] M. de Jong, W. Chen, R. Notestine, K. A. Persson, G. Ceder, A. Jain, M. D. Asta, and A. Gamst, _A_ _Statis-_ _tical_ _Learning_ _Framework_ _for_ _Materials_ _Science:_ _Applica-_ _tion_ _to_ _Elastic_ _Moduli_ _of_ _k-nary_ _Inorganic_ _Polycrystalline_ _Compounds_, Sci. Rep. 6, 34256 (2016). [41] D. W. Davies, K. T. Butler, A. J. Jackson, A. Mor ris, J. M. Frost, J. M. Skelton, and A. Walsh, _Compu-_ _tational_ _Screening_ _of_ _All_ _Stoichiometric_ _Inorganic_ _Mate-_ _rials_, Chem 1, 617–627 (2016). [42] W. F. Reinhart, A. W. Long, M. P. Howard, A. L. Fer guson, and A. Z. Panagiotopoulos, _Machine_ _learning_ _for_ _autonomous_ _crystal_ _structure_ _identification_, Soft Matter 13, 4733–4745 (2017). [43] O. Isayev, D. Fourches, E. N. Muratov, C. Oses, K. Rasch, A. Tropsha, and S. Curtarolo, _Materials_ _Cartography:_ _Representing_ _and_ _Mining_ _Materials_ _Space_ _Using_ _Struc-_ _tural_ _and_ _Electronic_ _Fingerprints_, Chem. Mater. 27, 735– 743 (2015). [44] R. Ouyang, S. Curtarolo, E. Ahmetcik, M. Scheffler, and L. M. Ghiringhelli, _SISSO:_ _a_ _compressed-sensing_ _method_ _for_ _systematically_ _identifying_ _efficient_ _physical_ _models_ _of_ _materials_ _properties_, submitted arxiv.org/1710.03319 (2017). [45] F. Ruggiu, G. Marcou, A. Varnek, and D. Horvath, _ISIDA_ _Property-Labelled_ _Fragment_ _Descriptors_, Mol. Informatics 29, 855–868 (2010). [46] J. H. Friedman, _Greedy_ _Function_ _Approximation:_ _A_ _Gra-_ _dient Boosting Machine_, Ann. Stat. 29, 1189–1232 (2001). [47] G. Kresse and J. Hafner, _Ab_ _initio_ _molecular_ _dynamics_ _for_ _liquid_ _metals_, Phys. Rev. B 47, 558–561 (1993). [48] G. Kresse and J. Furthm¨uller, _Efficient_ _iterative_ _schemes_ _for_ _ab_ _initio_ _total-energy_ _calculations_ _using_ _a_ _plane-wave_ _basis_ _set_, Phys. Rev. B 54, 11169–11186 (1996). [49] K. Reitz, _Python_ _Requests_ _Library_, `[http://docs.](http://docs.python-requests.org/en/master/)` `[python-requests.org/en/master/](http://docs.python-requests.org/en/master/)` . [50] C. Toher, C. Oses, J. J. Plata, D. Hicks, F. Rose, O. Levy, M. de Jong, M. D. Asta, M. Fornari, M. Buongiorno Nardelli, and S. Curtarolo, _Combining the AFLOW_ _GIBBS_ _and_ _Elastic_ _Libraries_ _to_ _efficiently_ _and_ _robustly_ _screen_ _thermomechanical_ _properties_ _of_ _solids_, Phys. Rev. Mater. 1, 015401 (2017). [51] C. Toher, J. J. Plata, O. Levy, M. de Jong, M. D. Asta, M. Buongiorno Nardelli, and S. Curtarolo, _High-_ _throughput_ _computational_ _screening_ _of_ _thermal_ _conductiv-_ _ity,_ _Debye_ _temperature,_ _and_ _Gr¨uneisen_ _parameter_ _using_ _a_ _quasiharmonic_ _Debye_ _model_, Phys. Rev. B 90, 174107 (2014).

섹션 본문 51문단 · 18,416자

(제목 없음)

1Machine learning approaches, enabled by the emergence of comprehensive databases of materials properties, are becoming a fruitful direction for materials analysis.As a result, a plethora of models have been constructed and trained on existing data to predict properties of new systems.These powerful methods allow researchers to target studies only at interesting materialsneglecting the non-synthesizable systems and those without the desired properties -thus reducing the amount of resources spent on expensive computations and/or time-consuming experimental synthesis.However, using these predictive models is not always straightforward.Often, they require a panoply of technical expertise, creating barriers for general users.AFLOW-ML (AFLOW Machine Learning) overcomes the problem by streamlining the use of the machine learning methods developed within the AFLOW consortium.The framework provides an open RESTful API to directly access the continuously updated algorithms, which can be transparently integrated into any workflow to retrieve predictions of electronic, thermal and mechanical properties.These types of interconnected cloud-based applications are envisioned to be capable of further accelerating the adoption of machine learning methods into materials development.

I. INTRODUCTION

2Since their inception, high throughput materials science frameworks such as AFLOW [1][2][3][4][5][6][7][8] have been amassing large databases of materials properties.For instance, the AFLOW database [9][10][11][12] alone contains over 1.7 million material compounds with over 170 million calculated properties, generated from the Inorganic Crystal Structure Database (ICSD) [13][14][15], as well as by decorating crystal structure prototypes [16].Combined with other online databases such as the Materials Project [17], NoMaD [18] and OQMD [19], materials data is abundant and available.As a result, machine learning (ML) methods have emerged as the ideal tool for data analysis [20][21][22][23][24][25], by identifying the key features in a data set [26] to construct a model for predicting the properties of a material.Recently, several models were developed to predict the properties of various material classes such as perovskites [27,28], oxides [29], elpasolites [30,31], thermoelectrics [32][33][34], and metallic glasses [35].Additionally, generalized approaches have been devised for inorganic materials [36][37][38][39][40][41][42][43] and for systematically identifying efficient physical models of materials properties [44].

3While predictions are powerful tools for rational materials design, the discipline is still reasonably new within the realm of materials science.As a result, a working understanding of machine learning principles, along with a high level of technical expertise, is required for using code bases effectively.This inhibits accessibility, where an av- * stefano@duke.eduerage end user aims to utilize the codes to retrieve predictions with as little complication as possible.With the ever increasing number of predictive models, a unique challenge emerges: how does one create an accessible means to integrate machine learning frameworks into a materials discovery workflow?

4AFLOW-ML alleviates this issue by providing a simplified abstraction on top of sophisticated predictive models.Predictions are exposed through a web accessible Application Programming Interface (API) where functionality is distilled down to its essence: from the user input, return a prediction.AFLOW-ML can be added into any code base through use of an HTTP request library, native to most languages.Alternatively, AFLOW-ML can be utilized though use of the included Python client and command line interface.Through such abstractions, AFLOW-ML is accessible to a wide audience: it unburdens the user from having to understand the intricacies of machine learning and eliminates the technical expertise required to set up such codes.

II. REST API

5The AFLOW-ML API is structured around a REpresentational State Transfer (REST) architecture, which allows resources to be accessed using HTTP request methods.Each resource is located at an endpoint, which is identified by a URL comprised of descriptive nouns.

6A URL may also include special variables in the form of path parameters and a query string.A path param-arXiv:1711.10744v1[cond-mat.mtrl-sci]29 Nov 2017 eter is a segment of the URL that specifies a particular resource and is denoted by a noun within braces ({...}) inside the endpoint.The query string is a list of key-value pairs placed at the end of a URL, which control the representation (e.g.format) of the resource.Typically, it is used to apply filters or define the structure of the returned representation.

7Resources within the API are represented in JavaScript Object Notation (JSON), and are referred to as objects.Once at an endpoint, the user must specify how to interact with the object.This is referred to as an action, and is an HTTP request method.The API supports the two most common HTTP request methods, GET and POST, where GET fetches an object and POST sends user defined data to the server.Therefore, users will interact with the API by performing actions (GET, POST) on endpoints (URLs) to retrieve objects (resources).

III. API STRUCTURE

8The overall structure of the API can be seen in Table I.All endpoints are located at the base URL aflow.org/API/aflow-ml/v1.0/ and are organized by the model and the returned object.

9AFLOW-ML currently supports two models: molar fraction descriptor (mfd) [37] and property-labeled materials fragments (plmf) [36].It is designed to be extensible, and additional models will be added in the future as they are developed.

10The mfd model [37] predicts the material properties based on the chemical formula only: the vector of descriptors has 87 components, each component b i being the mole fraction of element Z i in the compound (Z 1 is H, Z 2 is He, etc.).The model is built with nonlinear support vector machines and a radial basis function kernel.The model is trained using a data set of 292 randomly selected compounds of the ICSD for which the vibrational properties are computed with DFT calculations.

11The plmf model [36] represents each crystal structure as a colored graph, where the atomic vertices are decorated by the reference properties of the corresponding elemental species.Topological neighbors are determined using a Voronoi tessellation, and these nodes are connected to form the graph.The final feature vector for the ML model is obtained by partitioning the full graph into smaller subgraphs, termed fragments in analogy with the fragmentbased descriptors used in cheminformatics [45].All plmf models are built with the Gradient Boosting Decision Tree (GBDT) method [46].Models for electronic and thermomechanical properties were trained on 26,674 and 2,829 materials entries from the AFLOW repository, respectively.All models are validated through Y -randomization (label scrambling) and five-fold cross validation.

12In general, API usage involves uploading a material structure to a POST endpoint, <model>/prediction, and retrieving a prediction object from a GET endpoint, /prediction/result/{id}, as shown in the flowchart in Figure 1.POST endpoints are responsible for the submission of a material structure for a prediction.In their request body, the file keyword is required.It must contain a string representation of the material's crystal structure, in POSCAR 5 format (the lattice geometry and atomic position input file for version 5 of the VASP DFT package [47,48]).Upon receiving a request, the response body returns a task object containing information about the submitted structure, which has the following format:

{

13"id": String, "model": String, "results_endpoint": String } When a material is posted to the API, a prediction task is created and added to a queue.Each task is assigned an identifier, the id keyword, used to fetch the the prediction object at the endpoint referenced in the results_endpoint keyword.This endpoint, /prediction/result/{id}, supports the GET method and requires the id as a path parameter.Depending on the status of the prediction task, the response body returns a status object or prediction object.When the task is still in the queue, the status object is returned: { "status": String, "description": String }

14The status object details the state of the prediction task.The state is identified by the keyword status which takes one of the following values: STARTED, PENDING, SUCCESS and FAILURE, while a description of each status type is given by the description keyword.When attempting to retrieve the prediction object, it is best to poll the endpoint periodically to check the status.Tasks that are still within the queue are given the STARTED or PENDING status, while a completed task status will read SUCCESS.In instances where the uploaded file is incorrectly formatted, a failed task will occur, status: FAILURE.When the task is completed, the response contains the prediction object.The prediction object is an extension of the status object and contains different keywords depending on the model used.For plmf, the prediction object, known as a plmf prediction, takes the following form: The details of each object and their keywords are found in the List of API Endpoints and Objects section.

IV. USING THE API

15The process to retrieve a prediction is as follows: First, the contents of a POSCAR 5 file, titled test.poscar,are uploaded to the submission endpoint.This can be achieved by using an HTTP library such as requests (Python) [49], URLSession (iOS SDK), HttpURLConnection (Android SDK), Fetch (JavaScript) or using a command line tool such as wGET or cURL.For this example, cURL will be used.The contents of the POSCAR are posted to the submission endpoint as follows: curl http://aflow.org/API/aflow-ml/v1.0/plmf/prediction --data-urlencode file@test.poscarwhere the --data-urlencode flag handles encoding the contents of the POSCAR, located in the current directory, and associating it to the file keyword.Note that as mentioned previously, the POST will return a JSON response including the task id.The task id is then used to poll the results endpoint: curl http://aflow.org/API/aflow-ml/v1.0/prediction/result/{id}

16The status keyword is used as an indicator to determine if any additional polling is required.Depending on the status of the job, the endpoint will return either a task status object or a prediction object.If the status keyword's value is SUCCESS then no additional polling is required, since the endpoint will return a prediction object, which is an extension of the task status object.

V. LIST OF API ENDPOINTS AND OBJECTS

17This section includes the details of each endpoint and object accessible in the API.Endpoint information contains the associated HTTP method, request parameters, request body data and response object for each endpoint.Object properties are listed along with their type and description.

A. Endpoints

18• POST plmf/prediction -Description.

19Uploads the contents of a POSCAR 5 to retrieve a prediction using the plmf model.

20-Query parameters.* file (required) -The contents of the POSCAR 5.

21-Response format.On success, the response header contains the HTTP status code 200 OK and the response body contains a task object, in JSON format.

22-Example.

23curl http://aflow.org/API/aflow-ml/v1.0/plmf/prediction --data-urlencode file@test.poscar

24Uploads the contents of a POSCAR 5 to retrieve a prediction using the mfd model.

25-Query parameters.* file (required) -The contents of the POSCAR 5.

26-Response format.On success, the response header contains the HTTP status code 200 OK and the response body contains a task object, in JSON format.

27-Example.

28curl http://aflow.org/API/aflow-ml/v1.0/mfd/prediction --data-urlencode file@test.poscar

29• GET /prediction/result/{id} -Description.Fetches the status object or returns the prediction object when the task is completed.

30-Path parameters.* id (required) -The unique identifier retrieved from the task object on submission.

31-Query string arguments.* fields -A comma separated list of the fields to include in the JSON response object.Note that specified fields will only affect the prediction object.

32-Response format.On success, the response header contains the HTTP status code 200 OK.

33If the task is still pending, the response body contains a task status object in JSON format.Upon completion the response body contains a prediction object in JSON format.

34• Example.

35curl http://aflow.org/API/aflow-ml/v1.0/prediction/result /59ea0f78-4868-4a1e-9a20-e7343f00907d • Description.The lattice thermal conductivity at 300K, trained using AGL.• Units.W/(m K).

36• Type.Number.* ml_agl_thermal_expansion_300K

37• Description.The thermal expansion coefficient at 300K, trained using AGL.• Units.K −1 .

38• Type.Number.

39-Example.

{

40"status": "SUCCESS" "description":

41"The job has completed.","model": "plmf", "citation": "10.1038/ncomms15679", "ml_egap_type": "Insulator", "ml_egap": 0.923, "ml_energy_per_atom":

42- -Example.

43"description": "The job has completed.","model": "mfd", "citation": "10.1021/acs.chemmater.7b00789","status": "SUCCESS", "ml_Cv": 0.221, "ml_Fvib": 21.188, "ml_Svib": 0.211 }

VI. PYTHON CLIENT

44A Python client is available for the AFLOW-ML REST API that provides researchers and developers a means to integrate AFLOW-ML into their applications or workflows, such as AFLOWπ [8].The client includes the AFLOWmlAPI class which provides all the functionality needed to interface with the AFLOW-ML API, and can be downloaded at aflow.org/src/aflow-ml.From the client, a prediction is retrieved by passing the contents of a POSCAR to the get_prediction method.The AFLOWmlAPI class can be incorporated into a Python framework using code similar to the example illustrated in Figure 2.This method takes two arguments: poscar and model, where poscar is a file object (reading from the file test.poscar in the example in Figure 2) and model is a string specifying the model to use (plmf or mfd).This method returns a Python dictionary, in which the keys and respective predicted values are model dependent.For a list of each prediction object's key and value pair, please refer to the previous section.The client's AFLOWmlAPI class includes two additional methods, submit_job and poll_job, that provide more control when submitting a prediction, and which can be used in place of the get_prediction method in the example shown in Figure 2. The submit_job method targets the <model>/prediction endpoint and returns the jobs task id.From this id, the job can be polled using the poll_job method which will return a prediction object upon completion.These methods are ideal for cases where the user would prefer to postpone polling to a later time.

VII. COMMAND LINE INTERFACE

45Upon installation, the Python AFLOW-ML client provides a command line interface (CLI) titled aflow-ml.

46The CLI exposes all the functionality of the Python client and is targeted at users who are not familiar with Python or using REST APIs.To receive a prediction the path of the POSCAR 5 file is passed to the CLI as a positional argument.Additionally, the model type is specified via the --model flag: aflow-ml test.poscar--model=plmf By default, the CLI will output the results to the terminal.The default functionality is modified by the use of additional flags.For instance, results can be saved to an out file by use of the -s flag: aflow-ml test.poscar--model=plmf -s where the predicted results are saved to a file titled prediction.txt.Additional flags exist which provide various levels of customization such as specifying the predicted values to return or the format of the output.A list of each flag is found below.This list is also viewable from the CLI using the -h or --help flags.-Example.aflow-ml test.poscar-m plmf -v VIII.CONCLUSION AFLOW-ML enhances materials discovery by providing streamlined open access to predictive models.The REST API promotes resource sharing, where any application, workflow or website may leverage our models.Additionally, the Python client provides a closed solution, which requires little programming knowledge to get started.With this flexibility, AFLOW-ML presents the accessible option for machine learning in the materials design community.

47FIG.1.A flowchart illustrating the typical use-case of the API.First a POSCAR file is posted to the <model>/prediction endpoint to retrieve a task object.The id field of the task object is used to poll the <model>/prediction/{id} for the status of the prediction.If the status field of the response equals SUCCESS then the prediction object is returned.

FIG. 2 .

48FIG. 2.Example showing how to retrieve a prediction using the AFLOW-ML Python client.

-

49Flag. -m or --model -Description.(Required) Specifies the model to use in the prediction.-Example.aflow-ml test.poscar--model=plmf • Save -Flag.-s or --save -Description.Saves the prediction to a file.If the out file is not specified contents are saved to a file named prediction.txt.-Example.aflow-ml test.poscar-m plmf -s • Outfile -Flag.--format -Description.Specifies the path and name of the out file.-Example.aflow-ml test.poscar-m plmf -s --outfile=prediction.txt • Format -Flag.--format -Description.Specifies the format of the out file.Currently, text and JSON are supported.-Example.aflow-ml test.poscar-m plmf -s --format=JSON • Fields -Flag.--fields -Description.State the predicted fields to show in the output.Expects fields as a comma separated list.If the flag is not present, all fields will be shown.-Example.aflow-ml test.poscar-m plmf -s --fields=egap_ml,egap_type_ml • Verbose -Flag.-v or --verbose -Description.Toggle verbose mode.When enabled the CLI will log the progress of the prediction.

50The status of the task.Takes the following values: STARTED, PENDING, SUCCESS and FAILURE.When a task is added to the queue its status will read PENDING.Once it reaches the top of the queue the status will read STARTED and the prediction will run.If the prediction is successful the status will read SUCCESS.

51-Keys.* status• Description.The status of the task.-Description.The results of the prediction using the plmf model.This is an extension of the task status object.-Keys.* status • Description.* ml_egap_type • Description.Specifies if the material is a metal or an insulator.Takes the following values: Metal, Insulator.• Type.String.* ml_egap • Description.The electronic band gap.• Units.eV.• Type.Number.* ml_energy_per_atom • Description.The energy per atom.• Units.eV/atom.• Type.Number.• Units.k B /atom.• Type.Number.* ml_agl_thermal_conductivity_300K

참고문헌 63건

  1. Greedy function approximation: A gradient boosting machine. The Annals of Statistics · Institute of Mathematical Statistics · 2001 10.1214/aos/1013203451
  2. Materials Cartography: Representing and Mining Materials Space Using Structural and Electronic Fingerprints Chemistry of Materials · American Chemical Society · 2014 10.1021/cm503507h
  3. Comprehensive Search for New Phases and Compounds in Binary Alloy Systems Based on Platinum-Group Metals, Using a Computational First-Principles Approach Physical Review X · American Physical Society · 2013 10.1103/physrevx.3.041035
  4. Machine Learning Energies of 2 Million Elpasolite<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mi>A</mml:mi><mml:mi>B</mml:mi><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>D</mml:mi></mml:mrow><mml:mrow><mml:mn>6</mml:mn></mml:mrow></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>Crystals Physical Review Letters · American Physical Society · 2016 10.1103/physrevlett.117.135502
  5. AiiDA: automated interactive infrastructure and database for computational science Computational Materials Science · Elsevier BV · 2015 10.1016/j.commatsci.2015.09.013
  6. High-throughput computational screening of thermal conductivity, Debye temperature, and Grüneisen parameter using a quasiharmonic Debye model Physical Review B · American Physical Society · 2014 10.1103/physrevb.90.174107
  7. Materials Design and Discovery with High-Throughput Density Functional Theory: The Open Quantum Materials Database (OQMD) JOM · Springer Science+Business Media · 2013 10.1007/s11837-013-0755-4
  8. An object-oriented scripting interface to a legacy electronic structure code Computing in Science & Engineering · AIP Publishing · 2002 10.1109/5992.998641
  9. Finding Nature’s Missing Ternary Oxide Compounds Using Machine Learning and Density Functional Theory Chemistry of Materials · American Chemical Society · 2010 10.1021/cm100795d
  10. ISIDA Property‐Labelled Fragment Descriptors Molecular Informatics · Wiley · 2010 10.1002/minf.201000099
  11. Uncovering Compounds by Synergy of Cluster Expansion and High-Throughput Methods Journal of the American Chemical Society · American Chemical Society · 2010 10.1021/ja9105623
  12. Commentary: The Materials Project: A materials genome approach to accelerating materials innovation APL Materials · American Institute of Physics · 2013 10.1063/1.4812323
  13. NIST materials science databases Acta Crystallographica Section A Foundations of Crystallography · Wiley · 1993 10.1107/s0108767378088492
  14. On the Prediction of Ternary Semiconductor Properties by Artificial Intelligence Methods Chemistry of Materials · American Chemical Society · 2002 10.1021/cm0103996
  15. Python Materials Genomics (pymatgen): A robust, open-source python library for materials analysis Computational Materials Science · Elsevier BV · 2012 10.1016/j.commatsci.2012.10.028
  16. Performance of neural networks in materials science Materials Science and Technology · Maney Publishing · 2009 10.1179/174328408x311053
  17. Using support vector regression for the prediction of the band gap and melting point of binary and ternary compound semiconductors Solid State Sciences · Elsevier BV · 2005 10.1016/j.solidstatesciences.2005.10.011
  18. The Computational Materials Repository Computing in Science & Engineering · AIP Publishing · 2012 10.1109/mcse.2012.16
  19. Accelerating materials property predictions using machine learning Scientific Reports · Nature Portfolio · 2013 10.1038/srep02810
  20. <i>Ab initio</i>molecular dynamics for liquid metals Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.47.558
  21. Efficient iterative schemes for<i>ab initio</i>total-energy calculations using a plane-wave basis set Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.54.11169
  22. Neural Networks in Materials Science. ISIJ International · The Iron and Steel Institute of Japan · 1999 10.2355/isijinternational.39.966
  23. New developments in the Inorganic Crystal Structure Database (ICSD): accessibility in support of materials research and design Acta Crystallographica Section B Structural Science · Wiley · 2002 10.1107/s0108768102006948
  24. AFLOWLIB.ORG: A distributed materials properties repository from high-throughput ab initio calculations Computational Materials Science · Elsevier BV · 2012 10.1016/j.commatsci.2012.02.002
  25. Support-Vector Networks Machine Learning · Springer Science+Business Media · 1995 10.1023/a:1022627411411
  26. AFLOW: An automatic framework for high-throughput materials discovery Computational Materials Science · Elsevier BV · 2012 10.1016/j.commatsci.2012.02.005
  27. Learning from the Harvard Clean Energy Project: The Use of Neural Networks to Accelerate Materials Discovery Advanced Functional Materials · Wiley · 2015 10.1002/adfm.201501919
  28. Structure maps for hcp metals from first-principles calculations Physical Review B · American Physical Society · 2010 10.1103/physrevb.81.174106
  29. The inorganic crystal structure data base Journal of Chemical Information and Computer Sciences · American Chemical Society · 1983 10.1021/ci00038a003
  30. A high-throughput infrastructure for density functional theory calculations Computational Materials Science · Elsevier BV · 2011 10.1016/j.commatsci.2011.02.023
  31. Big Data of Materials Science: Critical Role of the Descriptor Physical Review Letters · American Physical Society · 2015 10.1103/physrevlett.114.105503
  32. A RESTful API for exchanging materials data in the AFLOWLIB.org consortium Computational Materials Science · Elsevier BV · 2014 10.1016/j.commatsci.2014.05.014
  33. Combinatorial screening for new materials in unconstrained composition space with machine learning Physical Review B · American Physical Society · 2014 10.1103/physrevb.89.094104
  34. Ordered Structures in Rhenium Binary Alloys from First-Principles Calculations Journal of the American Chemical Society · American Chemical Society · 2010 10.1021/ja1091672
  35. Machine learning bandgaps of double perovskites Scientific Reports · Nature Portfolio · 2016 10.1038/srep19375
  36. A general-purpose machine learning framework for predicting properties of inorganic materials npj Computational Materials · Nature Portfolio · 2016 10.1038/npjcompumats.2016.28
  37. Design of efficient molecular organic light-emitting diodes by a high-throughput virtual screening and experimental approach Nature Materials · Nature Portfolio · 2016 10.1038/nmat4717
  38. Universal fragment descriptors for predicting properties of inorganic crystals Nature Communications · Nature Portfolio · 2017 10.1038/ncomms15679
  39. Modeling Off-Stoichiometry Materials with a High-Throughput Ab-Initio Approach Chemistry of Materials · American Chemical Society · 2016 10.1021/acs.chemmater.6b01449
  40. Predictive analytics for crystalline materials: bulk modulus RSC Advances · Royal Society of Chemistry · 2016 10.1039/c6ra19284j
  41. A Statistical Learning Framework for Materials Science: Application to Elastic Moduli of k-nary Inorganic Polycrystalline Compounds Scientific Reports · Nature Portfolio · 2016 10.1038/srep34256
  42. Molybdenum-titanium phase diagram evaluated from <i>ab initio</i> calculations Physical Review Materials · American Physical Society · 2017 10.1103/physrevmaterials.1.023604
  43. Computational Screening of All Stoichiometric Inorganic Materials Chem · Elsevier BV · 2016 10.1016/j.chempr.2016.09.010
  44. Multi-fidelity machine learning models for accurate bandgap predictions of solids Computational Materials Science · Elsevier BV · 2016 10.1016/j.commatsci.2016.12.004
  45. AFLOWπ: A minimalist approach to high-throughput ab initio calculations including the generation of tight-binding hamiltonians Computational Materials Science · Elsevier BV · 2017 10.1016/j.commatsci.2017.03.055
  46. AFLUX: The LUX materials search API for the AFLOW data repositories Computational Materials Science · Elsevier BV · 2017 10.1016/j.commatsci.2017.04.036
  47. How Chemical Composition Alone Can Predict Vibrational Free Energies and Entropies of Solids Chemistry of Materials · American Chemical Society · 2017 10.1021/acs.chemmater.7b00789
  48. Machine learning for autonomous crystal structure identification Soft Matter · Royal Society of Chemistry · 2017 10.1039/c7sm00957g
  49. Including crystal structure attributes in machine learning models of formation energies via Voronoi tessellations Physical review. B./Physical review. B · American Physical Society · 2017 10.1103/physrevb.96.024104
  50. Machine Learning Approach for Prediction and Understanding of Glass-Forming Ability The Journal of Physical Chemistry Letters · American Chemical Society · 2017 10.1021/acs.jpclett.7b01046
  51. Learning surface molecular structures via machine vision npj Computational Materials · Nature Portfolio · 2017 10.1038/s41524-017-0038-7
  52. Prediction of seebeck coefficient for compounds without restriction to fixed stoichiometry: A machine learning approach Journal of Computational Chemistry · Wiley · 2017 10.1002/jcc.25067
  53. SISSO: a compressed-sensing method for systematically identifying efficient physical models of materials properties arXiv (Cornell University) · Cornell University · 2017
  54. Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material Properties Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.120.145301
  55. Random Forests Machine Learning · Springer Science+Business Media · 2001 10.1023/a:1010933404324
  56. The AFLOW Library of Crystallographic Prototypes: Part 1 Computational Materials Science · Elsevier BV · 2017 10.1016/j.commatsci.2017.01.017
  57. High-throughput electronic band structure calculations: Challenges and tools Computational Materials Science · Elsevier BV · 2010 10.1016/j.commatsci.2010.05.010
  58. Nanograined half-Heusler semiconductors as advanced thermoelectrics: an ab-initio high-throughput statistical study arXiv (Cornell University) · Cornell University · 2014 10.1002/adfm.201401201
  59. Finding Unprecedentedly Low-Thermal-Conductivity Half-Heusler Semiconductors via High-Throughput Materials Modeling Physical Review X · American Physical Society · 2014 10.1103/physrevx.4.011019
  60. High-Throughput Computation of Thermal Conductivity of High-Temperature Solid Phases: The Case of Oxide and Fluoride Perovskites Physical Review X · American Physical Society · 2016 10.1103/physrevx.6.041061
  61. Combining the AFLOW GIBBS and elastic libraries to efficiently and robustly screen thermomechanical properties of solids Physical Review Materials · American Physical Society · 2017 10.1103/physrevmaterials.1.015401
  62. Support-vector networks Machine Learning · Springer Science+Business Media · 1995 10.1007/bf00994018
  63. The AFLOW standard for high-throughput materials science calculations Computational Materials Science · Elsevier BV · 2015 10.1016/j.commatsci.2015.07.019