# US 2022/0284323 A1 · Software process modification platform for compliance

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284323 A1
- Document ID: US20220284323A1
- Status: Published application
- Kind: A1
- Application number: 17/207,125
- Filed: 2021-03-19
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: Paypal, Inc.
- Applicants: Paypal, Inc.
- Inventors: Sneha Venkatachalam; Ravi Retineni; Hang Yu; Zhaoyang Wang; Yi Ren; Zihao Zhao; Huiting Li; Gaoyuan Wang; Li Cao
- Web page: https://patentgrep.com/patent/US20220284323A1

## CPC

- G06F 8/10: Requirements analysis; Specification techniques
- G06F 3/0482: Interaction with lists of selectable items, e.g. menus
- G06F 8/20: Software design
- G06F 8/30: Creation or generation of source code
- G06F 8/34: Graphical or visual programming
- G06F 8/70: Software maintenance or management
- G06F 16/93: Document management systems
- G06F 21/54: by adding security routines or objects to programs
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G06Q 30/018: Certifying business or products
- G06Q 50/26: Government or public services (business processes related to the transportation industry G06Q50/40)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR

## Abstract

Methods and systems are presented for providing a computer platform that manages the impacts of government regulations on existing software processes of an online service provider. A regulation document is obtained from a government agency. The regulation document is processed, and legal obligations relevant to an online service provider are extracted from the regulation document. An ensemble machine learning model is used to recommend, for each of the legal obligations, software controls that can be implemented within one or more software processes of the online service provider to mitigate a risk of the legal obligations. The ensemble machine learning model may include an attribute-based model and a text-based model. An explainable visual interface is provided to present the recommended software controls and context that indicates to a user how the software controls are determined for the legal obligations.

## Claims

### Claim 1

A system, comprising:
a non-transitory memory; and
one or more hardware processors coupled with the non-transitory memory and configured to read instructions from the non-transitory memory to cause the system to perform operations comprising:
obtaining a document comprising text in a plurality of pages;
converting the text in the plurality of pages into a string of text;
parsing the converted text;
determining a hierarchical structure based on the parsing, wherein the hierarchical structure comprises a plurality of sections and a plurality of sub-sections;
mapping different portions of the converted text to different sections of the plurality of sections and different subsections of the plurality of sub-sections of the hierarchical structure;
providing, to a machine learning model, the portion of the converted text and data indicating a section and a subsection within the hierarchical structure associated with the portion of the converted text;
obtaining results from the machine learning model in response to the providing; and
determining whether each portion of the converted text represents an obligation that is relevant to an online service provider based on the results.

### Claim 2 (depends on 1)

The system of claim 1, wherein the operations further comprise:
extracting metadata from the document, wherein the metadata is further provided to the machine learning model for determining whether each portion of the converted text represents an obligation that is relevant to the online service provider.

### Claim 3 (depends on 2)

The system of claim 2, wherein the document is associated with a regulation issued by a government agency, and wherein the metadata comprises at least one of an area of law, a category of obligation, a jurisdiction for the regulation, or an identity of the government agency.

### Claim 4 (depends on 1)

The system of claim 1, wherein the mapping the different portions of the converted text comprises identifying, within the text using a second machine learning model, titles of the different sections and the different subsections.

### Claim 5 (depends on 4)

The system of claim 4, wherein the operations further comprise:
determining font data associated with the text; and
determining the different portions of the text based on providing the font data to the second machine learning model.

### Claim 6 (depends on 1)

The system of claim 1, wherein the operations further comprise:
identifying, within the converted text, a table of content for the document, wherein the hierarchical structure is determined based further on the table of content.

### Claim 7 (depends on 1)

The system of claim 1, wherein the operations further comprise:
in response to determining that a first portion of the converted text represents a first obligation that is relevant to the online service provider, generating a first obligation object comprising the first portion of the converted text, information representing a section of the plurality of the sections and a sub-section of the plurality of sub-sections mapped to the first portion of the converted text, and metadata associated with the document.

### Claim 8

A method comprising:
obtaining a document comprising text in a plurality of pages;
pre-processing the document, wherein the pre-processing comprises removing at least a portion of the text from the plurality of pages;
determining a hierarchical structure based on the pre-processed document, wherein the hierarchical structure comprises a plurality of sections and a plurality of sub-sections;
mapping different portions of the document to different sections of the plurality of sections and different subsections of the plurality of sub-sections of the hierarchical structure; and
determining, using a machine learning model, whether each portion of the document represents an obligation that is relevant to an online service provider based on text data corresponding to the portion of the document and data indicating a section and a subsection within the hierarchical structure associated with the portion of the document.

### Claim 9 (depends on 8)

The method of claim 8, wherein the pre-processing the document comprises:
identifying one or more headers and/or footers within the text of the document;
removing the one or more headers and/or footers from the text;

### Claim 10 (depends on 9)

The method of claim 9, wherein the identifying the one or more headers and/or footers comprises:
selecting a page in the document as a current page;
determining, for the current page, a sliding window comprising pages within the document;
comparing text data in a particular line of text in the current page against text data in the particular line of text in each page within the sliding window; and
determining whether the particular line of text in the current page comprises a header or a footer based on the comparing.

### Claim 11 (depends on 10)

The method of claim 10, wherein the sliding window comprises consecutive pages preceding and/or succeeding the current page.

### Claim 12 (depends on 10)

The method of claim 10, wherein the sliding window comprises alternate pages preceding and/or succeeding the current page.

### Claim 13 (depends on 10)

The method of claim 10, wherein the selected page is a first selected page, and wherein the method further comprises:
selecting a second page of the document as the current page; and
moving the sliding window to encompass different pages within the document based on the second page.

### Claim 14 (depends on 8)

The method of claim 8, wherein the pre-processing the document further comprises:
performing a first pass of pre-processing the pages within the document using a first sliding window having a first window characteristic; and
performing a second pass of pre-processing the pages within the document using a second sliding window having a second window characteristic.

### Claim 15 (depends on 14)

The method of claim 14, further comprising:
determining that no portion of the text has been removed based on the performing the first pass of pre-processing the pages, wherein the performing the second pass of pre-processing the pages is responsive to the determining that no portion of the text has been removed based on the performing the first pass of pre-processing the pages.

### Claim 16

A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations comprising:
obtaining a document comprising text in a plurality of pages;
pre-processing the text in the plurality of pages;
determining a hierarchical structure based on parsing the pre-processed text, wherein the hierarchical structure comprises a plurality of sections and a plurality of sub-sections;
mapping different portions of the pre-processed text to different sections of the plurality of sections and different subsections of the plurality of sub-sections of the hierarchical structure; and
determining, using a machine learning model, whether each portion of the converted text represents an obligation that is relevant to an online service provider based on the portion of the pre-processed text and data indicating a section and a subsection within the hierarchical structure associated with the portion of the pre-processed text.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the operations further comprise:
extracting metadata from the document, wherein the metadata is further provided to the machine learning model that determines whether each portion of the pre-processed text represents an obligation that is relevant to the online service provider.

### Claim 18 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein the pre-processing the text in the plurality of pages comprises:
selecting a page in the document as a current page;
moving a sliding window based on a position of the current page within the plurality of pages;
comparing text data in the current page against text data in other pages within the sliding window; and
determining to remove at least a portion of the text in the current page based on the comparing.

### Claim 19 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the sliding window encompasses consecutive pages preceding and/or succeeding the current page.

### Claim 20 (depends on 18)

The non-transitory machine-readable medium of claim 18, wherein the sliding window encompasses alternate pages preceding and/or succeeding the current page.
