WO2019134290A1 - Sorting method for live broadcast studios, electronic device and readable storage medium - Google Patents

Sorting method for live broadcast studios, electronic device and readable storage medium Download PDF

Info

Publication number
WO2019134290A1
WO2019134290A1 PCT/CN2018/082352 CN2018082352W WO2019134290A1 WO 2019134290 A1 WO2019134290 A1 WO 2019134290A1 CN 2018082352 W CN2018082352 W CN 2018082352W WO 2019134290 A1 WO2019134290 A1 WO 2019134290A1
Authority
WO
WIPO (PCT)
Prior art keywords
live broadcast
live
room
historical
current time
Prior art date
Application number
PCT/CN2018/082352
Other languages
French (fr)
Chinese (zh)
Inventor
王璐
张文明
陈少杰
Original Assignee
武汉斗鱼网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2019134290A1 publication Critical patent/WO2019134290A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25866Management of end-user data
    • H04N21/25891Management of end-user data being end-user preferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/251Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4667Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4756End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for rating content, e.g. scoring a recommended movie

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a live broadcast sequencing method, an electronic device, and a readable storage medium.
  • the live broadcast rooms When the user enters the display page of the live broadcast room, it is an important issue to arrange the live broadcast rooms in order. If the first live broadcasts of the big anchors with high attention are displayed, then the live broadcasts of some small and medium anchors with growth potential will be less likely to be discovered, which is not conducive to the ecological construction of the live platform. If the first live broadcast room corresponding to some unknown anchors is displayed, the user's viewing interest will be weakened, which will cause the user to lose. There is therefore a need for an efficient ranking that reflects the quality and growth potential of live broadcasts.
  • Embodiments of the present invention provide a live broadcast ordering method, an electronic device, and a readable storage medium, which are used to provide an effective sorting manner capable of reflecting the quality and growth potential of a live broadcast to ensure the fairness of the display order in the live broadcast room. Sex and rationality.
  • the present invention provides a method for sequencing between live broadcasts, including:
  • the live application determine the live broadcast room currently being broadcasted
  • each live room is scored to obtain the current live broadcast The score of each live room in the live room;
  • the live broadcast rooms currently being broadcasted are sorted in descending order of the score values, so that the client displays the live broadcast rooms currently in live broadcast in descending order of the score values.
  • the historical time range includes an N-day that is closest to the current time, and N is an integer greater than 0.
  • the historical view record includes viewing the number of views of the live broadcast room in each of the N days closest to the current time;
  • the history canceling the concern record includes canceling the number of people paying attention to the live room every day in the N days closest to the current time.
  • the historical viewing record, the historical new attention record, and the historical cancellation attention record of each live room in the live broadcast room currently being broadcasted in the historical time range are scored, and each live room is scored, including :
  • Each live room is scored based on a preset rating formula, wherein the default rating formula is C i is the current time from the latest day i N days between the viewer views broadcast, ⁇ i is the current time from the right to the last N days corresponding weight coefficient day i, p i is the The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
  • a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time
  • u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time.
  • w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
  • the N days that are closest to the current time are sorted by near and far according to a time interval from the current time, and the time interval of the i-day from the current time is less than the i+1.
  • the method further includes:
  • the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
  • an embodiment of the present invention provides an electronic device, where the electronic device includes:
  • a determining unit configured to determine a live broadcast room currently being broadcasted when the live application is enabled
  • a scoring unit configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range The rating value of each live room in the live broadcast room currently being broadcasted;
  • the sorting unit is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
  • the historical time range includes N days that are closest to the current time, and N is an integer greater than 0.
  • the electronic device further includes:
  • a statistical unit configured to: after the determining the live broadcast room currently being broadcasted, the historical viewing record of each live broadcast room in the live broadcast room currently being broadcasted, where the historical view record is included in the current time instant Viewing the number of views of the live room in each of the N days; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the most recent time from the current time Each day of the N days, the number of people paying attention to the live room is newly added; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the current time The number of people who watched the live room was cancelled every day of the last N days.
  • the scoring unit is configured to:
  • Each live room is scored based on a preset rating formula, wherein the default rating formula is c i is the number of views of the live broadcast room on the ith day of the N days closest to the current time, and ⁇ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
  • a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time
  • u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time.
  • w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
  • the N days that are closest to the current time are sorted by near and far according to a time interval from the current time, and the time interval of the i-day from the current time is less than the i+1.
  • the scoring unit is configured to:
  • the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
  • an embodiment of the present invention provides an electronic device, where the electronic device includes a processor, and when the processor is configured to execute a computer program stored in a memory, the inter-live ordering as described in the foregoing first embodiment is implemented. The steps of the method.
  • an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the live broadcast sorting method as described in the foregoing first embodiment is implemented. step.
  • the live broadcast room currently being broadcasted is determined, and further, based on historical history records, historical new attention records, and history cancellations of each live broadcast room in the historical time range. Pay attention to the record, score each live room, and finally sort the live broadcasts that are currently being broadcasted in descending order of the scores, so that the client displays the live broadcast in descending order of the scores. Live room. In this way, the historical viewing, attention and customs clearance records of the live broadcast are considered comprehensively. Considering the current volume of the live broadcast and the future development potential, the results of the ranking can be relatively fair and just.
  • FIG. 1 is a flowchart of a method for recommending a live broadcast in a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of an electronic device in a second embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an electronic device in a third embodiment of the present invention.
  • Embodiments of the present invention provide a live broadcast ordering method, an electronic device, and a readable storage medium, which are used to provide an effective sorting manner capable of reflecting the quality and growth potential of a live broadcast to ensure the fairness of the display order in the live broadcast room. Sex and rationality.
  • the sorting method includes: determining, in the case that the live application is enabled, determining a live broadcast room currently being broadcasted; based on historical history records and historical new attention records of each live broadcast room in the live broadcast room currently being broadcasted in the historical time range And the history cancels the attention record, scores each live broadcast room, obtains the score value of each live broadcast room in the live broadcast room currently being broadcasted; sorts the live broadcast room currently being broadcasted in descending order of the score value In order to enable the client to display the live broadcast room currently being broadcasted in descending order of the score value.
  • a first embodiment of the present invention provides a method for sequencing between live broadcasts, including the following steps:
  • S101 determining that a live broadcast room is currently being broadcasted when the live application is enabled
  • S102 Based on historical history records, historical new attention records, and historical cancellation attention records of each live broadcast room in the live broadcast room currently in the historical time range, score each live broadcast room to obtain the current ongoing The score of each live room in the live broadcast room;
  • S103 Sort the live broadcasts that are currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
  • the sorting method in this embodiment may be applied to the server end of the live application.
  • the server may determine that the live broadcast platform is currently being broadcasted at the current moment, for example: currently
  • the live broadcast room includes live room A, live room B, and live room C.
  • the historical records of each of the three live broadcast rooms within a preset time range are obtained, and the historical records include historical viewing records, historical new attention records, and historical cancellation attention records of each live broadcast room.
  • the scoring system can be divided into three parts. The first part is the score of the number of views in the live broadcast, the second part is the score of the new attention volume in the live broadcast, and the third part is the cancellation of the attention between the live broadcasts.
  • the server may send the live broadcast room currently being broadcasted to the client that starts the live application at the current time, and the client may display the currently broadcast live broadcast room in the push area for the user. select.
  • the sorting method in this embodiment may be applied to a client that installs a live application
  • the client may be an electronic device such as a mobile phone, a tablet computer, a desktop computer, or other electronic devices, and the present application does not. limit.
  • the server may request the server to record the live broadcast information of the live broadcast platform and the historical record within the preset time range of each live broadcast, the history including the history of each live broadcast room. Watch history, history added attention record and history cancellation record. Further, the client can score each live room based on a history of each live broadcast within a preset time range.
  • the scoring system when scoring the live broadcast, can be divided into three parts, the first part is the score of the number of views in the live broadcast, the second part is the score of the new attention volume in the live broadcast, and the third part is the cancellation of the attention in the live broadcast room. Punishment points are reduced.
  • the three-part scoring system after the current live broadcast room is scored, the corresponding score value of each live broadcast can be obtained. Further, the live broadcasts currently being broadcasted can be sorted in descending order of the score values. The client can display the live broadcast room currently being broadcasted in the order in the push area for the user to select.
  • the current volume of the live broadcast room is considered, and its future development potential is considered.
  • the result of the ranking can be relatively fair and just.
  • the historical time range includes an N-day that is closest to the current time, and N is an integer greater than 0.
  • the historical view record includes viewing the number of views of the live broadcast room in each of the N days closest to the current time;
  • the history canceling the concern record includes canceling the number of people paying attention to the live room every day in the N days closest to the current time.
  • the server stores the related history records between each live broadcast.
  • the number of daily views of the live broadcast in the N days can be counted by calling the history information of the N days closest to the current time in the live broadcast room, and the number of newly added attentions in the live broadcast room during the N days and this The number of people who canceled the daily attention in the N-day live broadcast room.
  • the server stores the related history records of each live broadcast.
  • the client may request the server for the N-day history information of the live broadcast between the live broadcasts, and then count the daily views of the live broadcasts during the N days, and the daily increase of the live broadcasts during the N days. The number of followers and the number of cancellations per day during the N-day live broadcast.
  • the viewing duration is less than the preset duration (eg, 1 minute, 2 minutes, etc.)
  • the preset duration eg, 1 minute, 2 minutes, etc.
  • the number of newly added people in the N-day live broadcast room is increased, the number of invalid followers needs to be removed. For example, if the user concerned does not leave any records other than the attention record, it indicates that the user’s concern is suspected of fraud, and the determination is made. This attention is invalid, and such records will be excluded when counting new people.
  • N can be set to 3, 7, 14 and the like, of course, other values can also be used.
  • the value of N is larger, the corresponding score value is more in line with the actual situation of the live broadcast, but when the value of N is too large, the calculation amount of the electronic device is increased, which affects the ability of the electronic device to handle other things. Therefore, the value of N can be set as needed, and the present application does not limit it.
  • the ranking method in this embodiment needs to score each live broadcast that is being broadcasted.
  • the calculation method according to the preset score formula is performed.
  • the preset score formula is as follows:
  • ci is the number of views of the live broadcast on the ith day of the N days closest to the current time
  • ⁇ i is the weight coefficient corresponding to the i-th day of the N days closest to the current time
  • p i is The new interest rate is added to the live broadcast on the ith day of the last N days of the current time.
  • a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time
  • u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time.
  • w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time, and w is obtained by converting the gift corresponding to the live broadcast.
  • the virtual value corresponding to gift A is A1
  • the virtual value corresponding to gift B is B1.
  • the corresponding virtual value of the live broadcast is 5*A1+. 10*B1.
  • ⁇ i can be set to a fixed value, that is, the weight values corresponding to each day in N days are consistent.
  • the time interval from the current time is sorted from near to far, and the time interval from the current time on the i-day in N days is less than the i+1 day.
  • the second day is 1 day away from the current time
  • the third day is 2 days away from the current time.
  • the scoring formula consists of three parts.
  • the first part is about the number of views in the live broadcast. Logarithmic processing prevents excessive views from overwhelming the contributions of other parts of the algorithm.
  • the second part is about paying attention to the live broadcast.
  • the new attention number and the anchor weight are considered comprehensively.
  • the attention to the big anchor is already large. Therefore, the new attention ratio has a disadvantage compared with the small anchor. Considering the weight to support the big anchor in the attention score.
  • the third part is about the cancellation of the penalty for the penalty
  • the scores may be adjusted according to the operation strategy of the live application to obtain the final score. Therefore, the method in this embodiment is based on the preset score formula.
  • scoring each live room the following steps are also included:
  • the second rating value is a rating value corresponding to the first live broadcast, wherein the second rating value is greater than the first rating value.
  • the live broadcast application promotes some live broadcast rooms according to the operation strategy. Therefore, when the first live broadcast room is being scored, it is determined whether the first live broadcast room is a preset live broadcast room. That is, whether it is a live broadcast room that needs to be promoted by the live broadcast platform. If the first live broadcast room is a preset live broadcast room, after scoring the above-mentioned preset score formula, a first score value is obtained. Since the live broadcast room that needs to be promoted may score lower by the above-mentioned preset scoring formula, in order to make the live broadcast room in the foremost position, the first scoring value is preset, and a higher number is obtained.
  • the second score value the preset processing may be to add a larger preset score based on the first score value, thereby obtaining a larger second score value.
  • the preset processing may also be to directly replace the first rating value with a larger preset score, thereby obtaining a larger second rating value.
  • the preset processing mode can be set according to actual needs, and the present application does not limit the application.
  • the sorting method in this embodiment comprehensively considers the historical viewing, attention and customs clearance behavior between live broadcasts, and considers the current volume of the live broadcast and the future development potential, and can achieve relative fairness and justice.
  • the history-based ranking score can be flexibly combined with other real-time indicators to meet different business scenarios and operational needs.
  • a third embodiment of the present invention provides an electronic device, where the electronic device includes:
  • the determining unit 201 is configured to determine, in the case that the live application is enabled, the live broadcast room currently being broadcasted;
  • the scoring unit 202 is configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range. a score value of each live room in the live broadcast room currently being broadcasted;
  • the sorting unit 203 is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
  • the electronic device in this embodiment may be a server of a live application.
  • the live broadcast of the live broadcast platform at the current moment may be further determined, for example:
  • the live broadcast room currently being broadcasted includes live room A, live room B, and live room C.
  • the scoring unit 202 respectively obtains a history record of each of the three live broadcast rooms within a preset time range, and the history record includes a history watch record, a history new attention record, and a history cancel attention record of each live room.
  • the scoring unit 202 scores the live broadcast
  • the scoring system can be divided into three parts, the first part is the score of the number of views in the live broadcast, the second part is the score of the newly added attention amount in the live broadcast, and the third part is the live broadcast room. Cancel the penalty for the penalty.
  • the sorting unit 203 can sort the live broadcasts currently being broadcasted in descending order of the score values.
  • the server may send the live broadcast room currently being broadcasted to the client that starts the live application at the current time, and the client may display the currently broadcast live broadcast room in the push area for the user. select.
  • the electronic device in this embodiment may be a client that installs a live application
  • the client may be an electronic device such as a mobile phone, a tablet computer, a desktop computer, or other electronic device, and the present application does not limit the application.
  • the server may request the server to record the live broadcast information of the live broadcast platform and the historical record within the preset time range of each live broadcast, the history includes each Historical watch record, history added attention record and history cancellation record in the live broadcast room.
  • the rating unit 202 of the client can score each live room based on a history within a preset time range between each live broadcast.
  • the scoring system when scoring the live broadcast, can be divided into three parts, the first part is the score of the number of views in the live broadcast, the second part is the score of the new attention volume in the live broadcast, and the third part is the cancellation of the attention in the live broadcast room. Punishment points are reduced.
  • the sorting unit 203 can sort the live broadcasts currently being broadcasted in descending order of the score values.
  • the client can display the live broadcast room currently being broadcasted in the order in the push area for the user to select.
  • the current volume of the live broadcast room is considered, and its future development potential is considered.
  • the result of the ranking can be relatively fair and just.
  • the historical time range includes N days closest to the current time, and N is an integer greater than 0, and the electronic device further includes:
  • a statistical unit configured to: after the determining the live broadcast room currently being broadcasted, the historical viewing record of each live broadcast room in the live broadcast room currently being broadcasted, where the historical view record is included in the current time instant Viewing the number of views of the live room in each of the N days; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the most recent time from the current time Each day of the N days, the number of people paying attention to the live room is newly added; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the current time The number of people who watched the live room was cancelled every day of the last N days.
  • the server stores a related history record between each live broadcast.
  • the history information of the N days closest to the current time in the live broadcast of the live broadcast can be called by the statistical unit, and the number of daily views in the live broadcast during the N days is counted, and the number of newly added attentions in the live broadcast room during the N days. And the number of cancellations per day during the N-day live broadcast.
  • the server stores a related history record between each live broadcast.
  • the statistics unit of the client may request the server to record the history information of the N days closest to the current time in the live broadcast of the live broadcast, and then count the daily views of the live broadcast in the N days. The number of followers and the number of cancellations per day during the N days.
  • the viewing duration is less than the preset duration (eg, 1 minute, 2 minutes, etc.)
  • the preset duration eg, 1 minute, 2 minutes, etc.
  • the number of newly added people in the N-day live broadcast room is increased, the number of invalid followers needs to be removed. For example, if the user concerned does not leave any records other than the attention record, it indicates that the user’s concern is suspected of fraud, and the determination is made. This attention is invalid, and such records will be excluded when counting new people.
  • N can be set to 3, 7, 14 and the like, of course, other values can also be used.
  • the value of N is larger, the corresponding score value is more in line with the actual situation of the live broadcast, but when the value of N is too large, the calculation amount of the electronic device is increased, which affects the ability of the electronic device to handle other things. Therefore, the value of N can be set as needed, and the present application does not limit it.
  • the scoring unit of the electronic device After counting the relevant historical records, the scoring unit of the electronic device needs to score each live broadcast room that is being broadcasted. When the score is scored, it is calculated according to the preset score formula.
  • the default score formula is as follows:
  • c i is the number of views of the live broadcast on the ith day of the N days closest to the current time
  • ⁇ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time
  • p i is The interest rate is added to the live broadcast on the ith day of the N days closest to the current time
  • a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time
  • u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time.
  • w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time, and w is obtained by converting the gift corresponding to the live broadcast.
  • the virtual value corresponding to gift A is A1
  • the virtual value corresponding to gift B is B1.
  • the corresponding virtual value of the live broadcast is 5*A1+. 10*B1.
  • ⁇ i can be set to a fixed value, that is, the weight values corresponding to each day in N days are consistent.
  • the time interval from the current time is sorted from near to far, and the time interval from the current time on the i-day in N days is less than the i+1 day.
  • the second day is 1 day away from the current time
  • the third day is 2 days away from the current time.
  • the scoring formula consists of three parts.
  • the first part is about the number of views in the live broadcast. Logarithmic processing prevents excessive views from overwhelming the contributions of other parts of the algorithm.
  • the second part is about paying attention to the live broadcast.
  • the new attention number and the anchor weight are considered comprehensively.
  • the focus on the big anchor is already very large. Therefore, the new attention ratio has a disadvantage compared with the small anchor. Considering the weight to support the big anchor in the attention score.
  • the third part is about the cancellation of the penalty for the penalty
  • the scoring unit scores each live broadcast room being broadcasted
  • the score may be adjusted according to the operation strategy of the live application to obtain the final score, so the scoring unit is used to:
  • the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
  • the live broadcast application promotes some live broadcast rooms according to the operation strategy. Therefore, when the first live broadcast room is being scored, it is determined whether the first live broadcast room is a preset live broadcast room. That is, whether it is a live broadcast room that needs to be promoted by the live broadcast platform. If the first live broadcast room is a preset live broadcast room, after scoring the above-mentioned preset score formula, a first score value is obtained. Since the live broadcast room that needs to be promoted may score lower by the above-mentioned preset scoring formula, in order to make the live broadcast room in the foremost position, the first scoring value is preset, and a higher number is obtained.
  • the second score value the preset processing may be to add a larger preset score based on the first score value, thereby obtaining a larger second score value.
  • the preset processing may also be to directly replace the first rating value with a larger preset score, thereby obtaining a larger second rating value.
  • the preset processing mode can be set according to actual needs, and the present application does not limit the application.
  • a third embodiment of the present invention provides an electronic device, where the electronic device includes: a processor 301, a memory 302, and is stored in the memory and operable on the processor.
  • a computer program such as a program corresponding to the inter-live ordering method in the first embodiment. The steps in the path detection in the first embodiment described above are implemented when the processor executes the computer program. Alternatively, the processor implements the functions of the modules/units in the electronic device of the second embodiment described above when the computer program is executed.
  • the computer program can be partitioned into one or more modules/units that are stored in the memory and executed by the processor to perform the present invention.
  • the one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program in the computer device.
  • the computer program can be divided into a determining unit, a scoring unit, and a sorting unit, and the specific functions of each unit are as follows:
  • a determining unit configured to determine a live broadcast room currently being broadcasted when the live application is enabled
  • a scoring unit configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range The rating value of each live room in the live broadcast room currently being broadcasted;
  • the sorting unit is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
  • the electronic device can include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram 3 is merely an example of a computer device and does not constitute a limitation on an electronic device, and may include more or less components than those illustrated, or may combine certain components or different components.
  • the electronic device may further include an input and output device, a network access device, a bus, and the like.
  • the processor 301 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like, which is the control center of the computer device, which is connected to various parts of the entire computer device using various interfaces and lines.
  • the memory 302 can be used to store the computer program and/or module, the processor implementing the method by running or executing a computer program and/or module stored in the memory, and invoking data stored in the memory Various functions of a computer device.
  • the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created according to the use of the mobile phone (such as audio data, video data, etc.).
  • the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card.
  • Flash Card at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the historical time range includes N days closest to the current time, and N is an integer greater than 0.
  • the processor 301 included in the electronic device further has the following functions:
  • the historical view record of each live broadcast room in the live broadcast room currently being broadcasted is counted, and the historical view record includes each of the N days closest to the current time. Viewing the number of views of the live room in a day; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the N days closest to the current time. The number of people who pay attention to the live room every day; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the N days closest to the current time. Every day, the number of people who pay attention to the live room is cancelled.
  • processor 301 included in the electronic device further has the following functions:
  • Each live room is scored based on a preset rating formula, wherein the default rating formula is c i is the number of views of the live broadcast room on the ith day of the N days closest to the current time, and ⁇ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
  • a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time
  • u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time.
  • w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
  • the N days closest to the current time are sorted by near and far according to the time interval from the current time, and the time interval of the i-day from the current time is less than the i+1 day.
  • processor 301 included in the electronic device further has the following functions:
  • the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
  • a fourth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program, and the functional unit integrated by the electronic device in the second embodiment of the present invention is implemented in the form of a software functional unit and is independent When the product is sold or used, it can be stored in a computer readable storage medium.
  • the present invention implements all or part of the flow in the inter-live ordering method of the first embodiment described above, and can also be completed by a computer program to instruct related hardware, and the computer program can be stored in a computer readable manner.
  • the computer program when executed by the processor, implements the steps of the various method embodiments described above.
  • the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form.
  • the computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
  • RAM random access memory
  • computer readable media Does not include electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Computing Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

Provided are a sorting method for live broadcast studios, an electronic device and a readable storage medium, providing an effecting sorting manner capable of reflecting quality and growth potential of live broadcast studios, so as to ensure the fairness and reasonable nature of the order of exhibiting live broadcast studios. The sorting method comprises: with a live broadcast application program started, determining currently broadcasting live broadcast studios; based on a historical watching record, a historical newly added following record and a historical unfollowing record of each live broadcast studio in the currently broadcasting live broadcast studios within a historical time period, scoring each live broadcast studio to obtain a score value of each live broadcast studio in the currently broadcasting live broadcast studios; and sorting the currently broadcasting live broadcast studios in the order of score values from high to low, so that a client exhibits the currently broadcasting live broadcast studios in the order of score values from high to low.

Description

一种直播间排序方法、电子设备及可读存储介质Sorting method, electronic device and readable storage medium in live broadcast 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种直播间排序方法、电子设备及可读存储介质。The present invention relates to the field of electronic technologies, and in particular, to a live broadcast sequencing method, an electronic device, and a readable storage medium.
背景技术Background technique
用户在进入直播间的展示页面时,直播间按照怎样的顺序进行排列展示是一个重要的问题。若展示在前面的都是关注度较高的大主播对应的直播间,那么一些具有成长潜力的中小主播的直播间被发掘的可能性就会很小,不利于直播平台的生态建。若展示在前面的都是一些不知名的小主播对应的直播间,那么用户的观看兴趣会减弱,这样会造成用户流失。因此需要一种能够反映直播间的质量和成长潜力的有效的排序方式。When the user enters the display page of the live broadcast room, it is an important issue to arrange the live broadcast rooms in order. If the first live broadcasts of the big anchors with high attention are displayed, then the live broadcasts of some small and medium anchors with growth potential will be less likely to be discovered, which is not conducive to the ecological construction of the live platform. If the first live broadcast room corresponding to some unknown anchors is displayed, the user's viewing interest will be weakened, which will cause the user to lose. There is therefore a need for an efficient ranking that reflects the quality and growth potential of live broadcasts.
发明内容Summary of the invention
本发明实施例提供了一种直播间排序方法、电子设备及可读存储介质,用于提供一种能够反映直播间的质量和成长潜力的有效的排序方式,以确保直播间的展示顺序的公正性与合理性。Embodiments of the present invention provide a live broadcast ordering method, an electronic device, and a readable storage medium, which are used to provide an effective sorting manner capable of reflecting the quality and growth potential of a live broadcast to ensure the fairness of the display order in the live broadcast room. Sex and rationality.
第一方面,本发明提供了一种直播间排序方法,包括:In a first aspect, the present invention provides a method for sequencing between live broadcasts, including:
在直播应用程序开启情况下,确定当前正在直播的直播间;In the case that the live application is enabled, determine the live broadcast room currently being broadcasted;
基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;Based on historical history records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range, each live room is scored to obtain the current live broadcast The score of each live room in the live room;
按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。The live broadcast rooms currently being broadcasted are sorted in descending order of the score values, so that the client displays the live broadcast rooms currently in live broadcast in descending order of the score values.
可选的,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数,在所述确定当前正在直播的直播间之后,所述方法还包括:Optionally, the historical time range includes an N-day that is closest to the current time, and N is an integer greater than 0. After the determining that the live broadcast room is currently being broadcasted, the method further includes:
统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述距当前时刻最近的N天中的每一天观看该直播间的观看次数;Counting, by the historical viewing record of each live room in the live broadcast room currently being broadcasted, the historical view record includes viewing the number of views of the live broadcast room in each of the N days closest to the current time;
统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;Counting the historical newly added attention record of each live broadcast room in the live broadcast room currently being broadcasted, the historical newly added interest record including the newly added attention to the live broadcast room in each of the N days closest to the current time Number of people;
统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。Counting the history cancellation attention record of each live room in the live broadcast room currently being broadcasted, the history canceling the concern record includes canceling the number of people paying attention to the live room every day in the N days closest to the current time.
可选的,所述基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,包括:Optionally, the historical viewing record, the historical new attention record, and the historical cancellation attention record of each live room in the live broadcast room currently being broadcasted in the historical time range are scored, and each live room is scored, including :
基于预设评分公式对每个直播间进行评分,其中,预设评分公式为
Figure PCTCN2018082352-appb-000001
c i为所述距当前时刻最近的N天中第 i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直播间新增关注比率,
Figure PCTCN2018082352-appb-000002
a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值。
Each live room is scored based on a preset rating formula, wherein the default rating formula is
Figure PCTCN2018082352-appb-000001
C i is the current time from the latest day i N days between the viewer views broadcast, θ i is the current time from the right to the last N days corresponding weight coefficient day i, p i is the The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
Figure PCTCN2018082352-appb-000002
a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
可选的,所述距当前时刻最近的N天按距当前时刻的时间间隔由近及远排序,所述距当前时刻最近的N天中第i天距当前时刻的时间间隔小于第i+1天,所述θ i基于公式θ i=exp(-α*i)计算获得,其中,α为衰减系数。 Optionally, the N days that are closest to the current time are sorted by near and far according to a time interval from the current time, and the time interval of the i-day from the current time is less than the i+1. Day, the θ i is obtained based on the formula θ i =exp(-α*i), where α is the attenuation coefficient.
可选的,在所述基于预设评分公式对每个直播间进行评分时,所述方法还包括:Optionally, when the rating is performed on each live broadcast based on the preset scoring formula, the method further includes:
判断进行评分的第一直播间是否为预设直播间;Determining whether the first live broadcast room to be scored is a preset live broadcast room;
如果是,获得基于所述预设评分公式对所述第一直播间进行评分得到的第一评分值;If yes, obtaining a first rating value obtained by scoring the first live broadcast room based on the preset rating formula;
对所述获第一评分值进行预设处理,获得第二评分值;Performing a preset process on the obtained first score value to obtain a second score value;
确定所述第二评分值为所述第一直播间对应的评分值,其中,所述第二评分值大于所述第一评分值。Determining that the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
第二方面,本发明实施例提供一种电子设备,所述电子设备包括:In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes:
确定单元,用于在直播应用程序开启情况下,确定当前正在直播的直播间;a determining unit, configured to determine a live broadcast room currently being broadcasted when the live application is enabled;
评分单元,用于基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;a scoring unit, configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range The rating value of each live room in the live broadcast room currently being broadcasted;
排序单元,用于按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。The sorting unit is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
可选的,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数,所述电子设备还包括:Optionally, the historical time range includes N days that are closest to the current time, and N is an integer greater than 0. The electronic device further includes:
统计单元,用于在所述确定当前正在直播的直播间之后,统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述 距当前时刻最近的N天中的每一天观看该直播间的观看次数;统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。a statistical unit, configured to: after the determining the live broadcast room currently being broadcasted, the historical viewing record of each live broadcast room in the live broadcast room currently being broadcasted, where the historical view record is included in the current time instant Viewing the number of views of the live room in each of the N days; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the most recent time from the current time Each day of the N days, the number of people paying attention to the live room is newly added; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the current time The number of people who watched the live room was cancelled every day of the last N days.
可选的,所述评分单元用于:Optionally, the scoring unit is configured to:
基于预设评分公式对每个直播间进行评分,其中,预设评分公式为
Figure PCTCN2018082352-appb-000003
c i为所述距当前时刻最近的N天中第i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直播间新增关注比率,
Figure PCTCN2018082352-appb-000004
a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值。
Each live room is scored based on a preset rating formula, wherein the default rating formula is
Figure PCTCN2018082352-appb-000003
c i is the number of views of the live broadcast room on the ith day of the N days closest to the current time, and θ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
Figure PCTCN2018082352-appb-000004
a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
可选的,所述距当前时刻最近的N天按距当前时刻的时间间隔由近及远排序,所述距当前时刻最近的N天中第i天距当前时刻的时间间隔小于第i+1天,所述θ i基于公式θ i=exp(-α*i)计算获得,其中,α为衰减系数。 Optionally, the N days that are closest to the current time are sorted by near and far according to a time interval from the current time, and the time interval of the i-day from the current time is less than the i+1. Day, the θ i is obtained based on the formula θ i =exp(-α*i), where α is the attenuation coefficient.
可选的,所述评分单元用于:Optionally, the scoring unit is configured to:
判断进行评分的第一直播间是否为预设直播间;Determining whether the first live broadcast room to be scored is a preset live broadcast room;
如果是,获得基于所述预设评分公式对所述第一直播间进行评分得到的第一评分值;If yes, obtaining a first rating value obtained by scoring the first live broadcast room based on the preset rating formula;
对所述获第一评分值进行预设处理,获得第二评分值;Performing a preset process on the obtained first score value to obtain a second score value;
确定所述第二评分值为所述第一直播间对应的评分值,其中,所述第二评分值大于所述第一评分值。Determining that the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
第三方面,本发明实施例提供一种电子设备,所述电子设备包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如前述第一方面实施例中所述的直播间排序方法的步骤。In a third aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes a processor, and when the processor is configured to execute a computer program stored in a memory, the inter-live ordering as described in the foregoing first embodiment is implemented. The steps of the method.
第四方面,本发明实施例提供了一种可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如前述第一方面实施例中所述的直播间排序方法的步骤。In a fourth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the live broadcast sorting method as described in the foregoing first embodiment is implemented. step.
本申请实施例中的上述一个或多个技术方案,至少具有如下一种或多种技术效果:The above one or more technical solutions in the embodiments of the present application have at least one or more of the following technical effects:
在本发明实施例的技术方案中,在直播应用程序开启时,确定当前正在直播的直播间,进而,基于在历史时间范围内每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,最后,按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。这样,综合考虑了直播间历史观看、关注和取关记录,既考虑了直播间的当前体量,也考虑了其未来的发展潜力,排序的结果能做到相对的公平公正。In the technical solution of the embodiment of the present invention, when the live application is started, the live broadcast room currently being broadcasted is determined, and further, based on historical history records, historical new attention records, and history cancellations of each live broadcast room in the historical time range. Pay attention to the record, score each live room, and finally sort the live broadcasts that are currently being broadcasted in descending order of the scores, so that the client displays the live broadcast in descending order of the scores. Live room. In this way, the historical viewing, attention and customs clearance records of the live broadcast are considered comprehensively. Considering the current volume of the live broadcast and the future development potential, the results of the ranking can be relatively fair and just.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明第一实施例中的一种直播间推荐方法的流程图;1 is a flowchart of a method for recommending a live broadcast in a first embodiment of the present invention;
图2为本发明第二实施例中的电子设备的示意图;2 is a schematic diagram of an electronic device in a second embodiment of the present invention;
图3为本发明第三实施例中电子设备的示意图。3 is a schematic diagram of an electronic device in a third embodiment of the present invention.
具体实施方式Detailed ways
本发明实施例提供了一种直播间排序方法、电子设备及可读存储介质,用于提供一种能够反映直播间的质量和成长潜力的有效的排序方式,以确保直播间的展示顺序的公正性与合理性。该排序方法包括:在直播应用程序开启情况下,确定当前正在直播的直播间;基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。Embodiments of the present invention provide a live broadcast ordering method, an electronic device, and a readable storage medium, which are used to provide an effective sorting manner capable of reflecting the quality and growth potential of a live broadcast to ensure the fairness of the display order in the live broadcast room. Sex and rationality. The sorting method includes: determining, in the case that the live application is enabled, determining a live broadcast room currently being broadcasted; based on historical history records and historical new attention records of each live broadcast room in the live broadcast room currently being broadcasted in the historical time range And the history cancels the attention record, scores each live broadcast room, obtains the score value of each live broadcast room in the live broadcast room currently being broadcasted; sorts the live broadcast room currently being broadcasted in descending order of the score value In order to enable the client to display the live broadcast room currently being broadcasted in descending order of the score value.
下面通过附图以及具体实施例对本发明技术方案做详细的说明,应当理解本申请实施例以及实施例中的具体特征是对本申请技术方案的详细的说明,而不是对本申请技术方案的限定,在不冲突的情况下,本申请实施例以及实施例中的技术特征可以相互组合。The technical solutions of the present invention are described in detail below with reference to the accompanying drawings and specific embodiments. It is understood that the specific features of the embodiments and the embodiments of the present application are the detailed description of the technical solutions of the present application, and are not limited to the technical solutions of the present application. In the case of no conflict, the technical features in the embodiments of the present application and the embodiments may be combined with each other.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
实施例Example
请参考图1,本发明第一实施例提供一种直播间排序方法,包括如下步骤:Referring to FIG. 1 , a first embodiment of the present invention provides a method for sequencing between live broadcasts, including the following steps:
S101:在直播应用程序开启情况下,确定当前正在直播的直播间;S101: determining that a live broadcast room is currently being broadcasted when the live application is enabled;
S102:基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;S102: Based on historical history records, historical new attention records, and historical cancellation attention records of each live broadcast room in the live broadcast room currently in the historical time range, score each live broadcast room to obtain the current ongoing The score of each live room in the live broadcast room;
S103:按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。S103: Sort the live broadcasts that are currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
具体的,本实施例中的排序方法可以应用于直播应用程序的服务器端,当服务器确定某一客户端开启直播应用程序,服务器可以确定在当前时刻直播平台正在直播的直播间,比如:当前正在直播的直播间包括直播间A、直播间B、直播间C。分别获得这3个直播间中每个直播间在预设时间范围内的历史记录,该历史记录包括每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录。进而,在对直播间进行评分时,评分体系可划分为三部分,第一部分为直播间观看次数的得分,第二部分为直播间新增关注量的得分,第三部分为直播间取消关注的惩罚减分。按照这三部分组成评分系统,对当前直播的直播间进行评分后,可获得每个直播间对应的评分值。进而,可按评分值由高至低的顺序对当前正在直播的直播间进行排序。进一步,服务器可将排好顺序的当前正在直播的直播间发送至在当前时刻开启直播应用程序的客户端,客户端可将排好顺序的当前正在直播的直播间展示在推送区域,以供用户选择。Specifically, the sorting method in this embodiment may be applied to the server end of the live application. When the server determines that a certain client starts the live application, the server may determine that the live broadcast platform is currently being broadcasted at the current moment, for example: currently The live broadcast room includes live room A, live room B, and live room C. The historical records of each of the three live broadcast rooms within a preset time range are obtained, and the historical records include historical viewing records, historical new attention records, and historical cancellation attention records of each live broadcast room. Furthermore, when scoring the live broadcast, the scoring system can be divided into three parts. The first part is the score of the number of views in the live broadcast, the second part is the score of the new attention volume in the live broadcast, and the third part is the cancellation of the attention between the live broadcasts. Punish the penalty points. According to the three-part scoring system, after the current live broadcast room is scored, the corresponding score value of each live broadcast can be obtained. Further, the live broadcasts currently being broadcasted can be sorted in descending order of the score values. Further, the server may send the live broadcast room currently being broadcasted to the client that starts the live application at the current time, and the client may display the currently broadcast live broadcast room in the push area for the user. select.
同时,本实施例中的排序方法可以应用于安装直播应用程序的客户端,该客户端可以是手机、平板电脑、台式电脑等电子设备,也可以是其他电子设备,在此,本申请不做限制。当客户端开启直播应用程序情况下,可向服务器请求当前时刻直播平台正在直播的直播间信息以及每个直播间的在预设时间范围内的历史记录,该历史记录包括每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录。进而,客户端可基于每个直播间的在预设时间范围内的历史记录对每个直播间进行评分。同理,在对直播间进行评分时,评分体系可划分为三部分,第一部分为直播间观看次数的得分,第二部分为直播间新增关注量的得分,第三部分为直播间取消关注的惩罚减分。按照这三部分组成评分系统,对当前直播的直播间进行评分后,可获得每个直播间对应的评分值。进而,可按评分值由高至低的顺序对当前正在直播的直播间进行排序。客户端可将排好顺序的当前正在直播的直播间展示在推送区域,以供用户选择。In addition, the sorting method in this embodiment may be applied to a client that installs a live application, and the client may be an electronic device such as a mobile phone, a tablet computer, a desktop computer, or other electronic devices, and the present application does not. limit. When the client starts the live application, the server may request the server to record the live broadcast information of the live broadcast platform and the historical record within the preset time range of each live broadcast, the history including the history of each live broadcast room. Watch history, history added attention record and history cancellation record. Further, the client can score each live room based on a history of each live broadcast within a preset time range. Similarly, when scoring the live broadcast, the scoring system can be divided into three parts, the first part is the score of the number of views in the live broadcast, the second part is the score of the new attention volume in the live broadcast, and the third part is the cancellation of the attention in the live broadcast room. Punishment points are reduced. According to the three-part scoring system, after the current live broadcast room is scored, the corresponding score value of each live broadcast can be obtained. Further, the live broadcasts currently being broadcasted can be sorted in descending order of the score values. The client can display the live broadcast room currently being broadcasted in the order in the push area for the user to select.
由于充分考虑了直播间的直播间历史观看、关注和取关记录,既考虑了直播间的当前体量,也考虑了其未来的发展潜力,排序的结果能做到相对的公平 公正。Due to the full consideration of the historical viewing, attention and customs clearance records of the live broadcast room, the current volume of the live broadcast room is considered, and its future development potential is considered. The result of the ranking can be relatively fair and just.
进一步,在本实施例中,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数,在所述确定当前正在直播的直播间之后,所述方法还包括:Further, in this embodiment, the historical time range includes an N-day that is closest to the current time, and N is an integer greater than 0. After the determining that the live broadcast room is currently being broadcasted, the method further includes:
统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述距当前时刻最近的N天中的每一天观看该直播间的观看次数;Counting, by the historical viewing record of each live room in the live broadcast room currently being broadcasted, the historical view record includes viewing the number of views of the live broadcast room in each of the N days closest to the current time;
统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;Counting the historical newly added attention record of each live broadcast room in the live broadcast room currently being broadcasted, the historical newly added interest record including the newly added attention to the live broadcast room in each of the N days closest to the current time Number of people;
统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。Counting the history cancellation attention record of each live room in the live broadcast room currently being broadcasted, the history canceling the concern record includes canceling the number of people paying attention to the live room every day in the N days closest to the current time.
具体的,在本实施例中的排序方法应用在服务器中时,服务器保存有每个直播间的相关历史记录。此时,可通过调用正在直播的直播间的距当前时刻最近的N天的历史记录信息,统计这N天中直播间每天的观看次数,这N天中直播间每天的新增关注人数以及这N天中直播间每天的取消关注人数。Specifically, when the sorting method in the embodiment is applied to the server, the server stores the related history records between each live broadcast. At this time, the number of daily views of the live broadcast in the N days can be counted by calling the history information of the N days closest to the current time in the live broadcast room, and the number of newly added attentions in the live broadcast room during the N days and this The number of people who canceled the daily attention in the N-day live broadcast room.
同时,在本实施例中的排序方法应用在客户端中时,服务器保存有每个直播间的相关历史记录。此时,客户端可向服务器请求正在直播的直播间的距当前时刻最近的N天的历史记录信息,进而统计这N天中直播间每天的观看次数,这N天中直播间每天的新增关注人数以及这N天中直播间每天的取消关注人数。Meanwhile, when the sorting method in the embodiment is applied to the client, the server stores the related history records of each live broadcast. At this time, the client may request the server for the N-day history information of the live broadcast between the live broadcasts, and then count the daily views of the live broadcasts during the N days, and the daily increase of the live broadcasts during the N days. The number of followers and the number of cancellations per day during the N-day live broadcast.
进一步,为了确保统计的历史记录的有效性,在统计N天中直播间每天的观看次数时,需要剔除无效的观看次数,比如:在观看时长小于预设时长(如:1分钟、2分钟等)时,确定该次观看为无效,在统计观看次数时会剔除这样的记录。同理,N天中直播间每天的新增关注人数时,需要剔除无效的关注人数,比如:关注的用户没有留下除关注记录以外的其他记录,则表明该用户的关注存在造假嫌疑,确定该次关注为无效,在统计新增关注人数时会剔除这样的记录。Further, in order to ensure the validity of the statistical history, when counting the number of views per day between the live broadcasts in the N days, it is necessary to eliminate invalid views, for example, the viewing duration is less than the preset duration (eg, 1 minute, 2 minutes, etc.) When it is determined that the viewing is invalid, such a record will be eliminated when the number of views is counted. In the same way, when the number of newly added people in the N-day live broadcast room is increased, the number of invalid followers needs to be removed. For example, if the user concerned does not leave any records other than the attention record, it indicates that the user’s concern is suspected of fraud, and the determination is made. This attention is invalid, and such records will be excluded when counting new people.
在具体实施过程中,N可以设定为3、7、14等数值,当然,也可以是其他数值。当N值越大,对应的评分值会更符合该直播间的实际情况,但当N值过大时,会增加电子设备的计算量,影响电子设备处理其他事物的能力。所以,N值可按需要进行设定,在此本申请不做限制。In the specific implementation process, N can be set to 3, 7, 14 and the like, of course, other values can also be used. When the value of N is larger, the corresponding score value is more in line with the actual situation of the live broadcast, but when the value of N is too large, the calculation amount of the electronic device is increased, which affects the ability of the electronic device to handle other things. Therefore, the value of N can be set as needed, and the present application does not limit it.
在统计好相关的历史记录后,本实施例中的排序方法需要对正在直播的每个直播间进行评分,评分时,按照预设评分公式的计算方式进行,预设评分公式如下所示:After the statistics are well correlated, the ranking method in this embodiment needs to score each live broadcast that is being broadcasted. When the score is scored, the calculation method according to the preset score formula is performed. The preset score formula is as follows:
Figure PCTCN2018082352-appb-000005
Figure PCTCN2018082352-appb-000005
其中,ci为所述距当前时刻最近的N天中第i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直播间新增关注比率,
Figure PCTCN2018082352-appb-000006
a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值,w为直播间对应的礼物换算而得到的。比如:礼物A对应的虚拟值为A1,礼物B对应的虚拟值为B1,当直播间对应的礼物包括5个礼物A,10个礼物B时,该直播间对应的虚拟值为5*A1+10*B1。
Where ci is the number of views of the live broadcast on the ith day of the N days closest to the current time, and θ i is the weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The new interest rate is added to the live broadcast on the ith day of the last N days of the current time.
Figure PCTCN2018082352-appb-000006
a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time, and w is obtained by converting the gift corresponding to the live broadcast. For example, the virtual value corresponding to gift A is A1, and the virtual value corresponding to gift B is B1. When the gift corresponding to the live broadcast includes 5 gifts A and 10 gifts B, the corresponding virtual value of the live broadcast is 5*A1+. 10*B1.
在上述公式中,θ i可以设置为一个固定值,即N天中每一天对应的权重值均一致。 In the above formula, θ i can be set to a fixed value, that is, the weight values corresponding to each day in N days are consistent.
在N天按距当前时刻的时间间隔由近及远排序,N天中第i天距当前时刻的时间间隔小于第i+1天。比如:第2天距当前时刻相隔1天,第3天距当前时刻相隔2天。θ i也可以基于公式θ i=exp(-α*i)计算获得,即N天中每一天对应的权重值不同,距当前时刻越近的权重值越大,对于评分的贡献越大,距当前时刻越远的权重值越小,随着时间的衰减使得对于评分的贡献越小。 In N days, the time interval from the current time is sorted from near to far, and the time interval from the current time on the i-day in N days is less than the i+1 day. For example, the second day is 1 day away from the current time, and the third day is 2 days away from the current time. θ i can also be calculated based on the formula θ i =exp(-α*i), that is, the weight value corresponding to each day in N days is different, and the closer the weight value is to the current time, the greater the contribution to the score, the distance The smaller the weight value at the current time, the smaller the contribution to the score over time.
由上述预设评分公式可知,评分公式由三个部分组成。第一部分是关于直播间观看次数的得分
Figure PCTCN2018082352-appb-000007
取对数处理防止过高的观看次数压倒算法中其他部分的贡献。第二部分是关于直播间关注得分
Figure PCTCN2018082352-appb-000008
在计算关注得分时综合考虑了新增关注数和主播体重,对于大主播关注量已经很大,因此新增关注比率与小主播相比存在劣势,考虑体重对大主播在关注打分上进行扶持。第三部分是关于房间的取消关注惩罚减分
Figure PCTCN2018082352-appb-000009
此处考虑取关数与新增关注数的比例以保证公平。
According to the above preset scoring formula, the scoring formula consists of three parts. The first part is about the number of views in the live broadcast.
Figure PCTCN2018082352-appb-000007
Logarithmic processing prevents excessive views from overwhelming the contributions of other parts of the algorithm. The second part is about paying attention to the live broadcast.
Figure PCTCN2018082352-appb-000008
In the calculation of the attention score, the new attention number and the anchor weight are considered comprehensively. The attention to the big anchor is already large. Therefore, the new attention ratio has a disadvantage compared with the small anchor. Considering the weight to support the big anchor in the attention score. The third part is about the cancellation of the penalty for the penalty
Figure PCTCN2018082352-appb-000009
Here we consider the ratio of the number of passes to the number of new points of interest to ensure fairness.
进一步,在对正在直播的各个直播间进行评分时,还可以根据直播应用程序的运营策略对评分进行调整,得到最终的分数,所以,本实施例中的方法,在所述基于预设评分公式对每个直播间进行评分时,还包括如下步骤:Further, when the live broadcasts are being scored, the scores may be adjusted according to the operation strategy of the live application to obtain the final score. Therefore, the method in this embodiment is based on the preset score formula. When scoring each live room, the following steps are also included:
判断进行评分的第一直播间是否为预设直播间;Determining whether the first live broadcast room to be scored is a preset live broadcast room;
如果是,获得基于所述预设评分公式对所述第一直播间进行评分得到的第一评分值;If yes, obtaining a first rating value obtained by scoring the first live broadcast room based on the preset rating formula;
对所述获第一评分值进行预设处理,获得第二评分值;Performing a preset process on the obtained first score value to obtain a second score value;
确定所述第二评分值为所述第一直播间对应的评分值,其中,所述第二评 分值大于所述第一评分值。Determining that the second rating value is a rating value corresponding to the first live broadcast, wherein the second rating value is greater than the first rating value.
具体的,在本实施例中,直播应用程序会根据运营策略推广一些直播间,所以,在对正在直播的第一直播间进行评分时,需要确定该第一直播间是否为预设直播间,即是否为直播平台需要推广的直播间,如果第一直播间为预设直播间,在通过上述预设评分公式对其评分后,会得到一个第一评分值。由于需要推广的直播间可能通过上述预设评分公式打分后得到的分数较低,为了能使该直播间排在最前面的位置,会对第一评分值进行预设处理,得到较高的第二评分值,预设处理可以是在第一评分值的基础上加一个较大的预设分值,进而得较大的第二评分值。预设处理还可以是直接采用一个较大的预设分值替换该第一评分值,进而得较大的第二评分值。在具体实施过程中,预设处理方式可根据实际需要进行设定,在此,本申请不做限制。Specifically, in this embodiment, the live broadcast application promotes some live broadcast rooms according to the operation strategy. Therefore, when the first live broadcast room is being scored, it is determined whether the first live broadcast room is a preset live broadcast room. That is, whether it is a live broadcast room that needs to be promoted by the live broadcast platform. If the first live broadcast room is a preset live broadcast room, after scoring the above-mentioned preset score formula, a first score value is obtained. Since the live broadcast room that needs to be promoted may score lower by the above-mentioned preset scoring formula, in order to make the live broadcast room in the foremost position, the first scoring value is preset, and a higher number is obtained. The second score value, the preset processing may be to add a larger preset score based on the first score value, thereby obtaining a larger second score value. The preset processing may also be to directly replace the first rating value with a larger preset score, thereby obtaining a larger second rating value. In the specific implementation process, the preset processing mode can be set according to actual needs, and the present application does not limit the application.
本实施例中的排序方法综合考虑了直播间的历史观看、关注和取关行为,既考虑了直播间的当前体量也考虑了其未来的发展潜力,能做到相对的公平公正。同时,基于历史记录的排序得分可以灵活地与其他实时指标相结合,满足不同的业务场景和运营需要。The sorting method in this embodiment comprehensively considers the historical viewing, attention and customs clearance behavior between live broadcasts, and considers the current volume of the live broadcast and the future development potential, and can achieve relative fairness and justice. At the same time, the history-based ranking score can be flexibly combined with other real-time indicators to meet different business scenarios and operational needs.
请参见图2,本发明的第三实施例提供了一种电子设备,所述电子设备包括:Referring to FIG. 2, a third embodiment of the present invention provides an electronic device, where the electronic device includes:
确定单元201,用于在直播应用程序开启情况下,确定当前正在直播的直播间;The determining unit 201 is configured to determine, in the case that the live application is enabled, the live broadcast room currently being broadcasted;
评分单元202,用于基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;The scoring unit 202 is configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range. a score value of each live room in the live broadcast room currently being broadcasted;
排序单元203,用于按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。The sorting unit 203 is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
具体的,本实施例中的电子设备可以是直播应用程序的服务器,当服务器的确定单元201确定某一客户端开启直播应用程序,可进一步确定在当前时刻直播平台正在直播的直播间,比如:当前正在直播的直播间包括直播间A、直播间B、直播间C。评分单元202分别获得这3个直播间中每个直播间在预设时间范围内的历史记录,该历史记录包括每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录。进而,在评分单元202对直播间进行评分时,评分体系可划分为三部分,第一部分为直播间观看次数的得分,第二部分为直播间新增关注量的得分,第三部分为直播间取消关注的惩罚减分。按照这三部分组成评分系统,对当前直播的直播间进行评分后,可获得每个直播间对应的 评分值。进而,排序单元203可按评分值由高至低的顺序对当前正在直播的直播间进行排序。进一步,服务器可将排好顺序的当前正在直播的直播间发送至在当前时刻开启直播应用程序的客户端,客户端可将排好顺序的当前正在直播的直播间展示在推送区域,以供用户选择。Specifically, the electronic device in this embodiment may be a server of a live application. When the determining unit 201 of the server determines that a certain client starts the live application, the live broadcast of the live broadcast platform at the current moment may be further determined, for example: The live broadcast room currently being broadcasted includes live room A, live room B, and live room C. The scoring unit 202 respectively obtains a history record of each of the three live broadcast rooms within a preset time range, and the history record includes a history watch record, a history new attention record, and a history cancel attention record of each live room. Further, when the scoring unit 202 scores the live broadcast, the scoring system can be divided into three parts, the first part is the score of the number of views in the live broadcast, the second part is the score of the newly added attention amount in the live broadcast, and the third part is the live broadcast room. Cancel the penalty for the penalty. According to the three-part scoring system, after the current live broadcast room is scored, the corresponding score value of each live broadcast can be obtained. Further, the sorting unit 203 can sort the live broadcasts currently being broadcasted in descending order of the score values. Further, the server may send the live broadcast room currently being broadcasted to the client that starts the live application at the current time, and the client may display the currently broadcast live broadcast room in the push area for the user. select.
同时,本实施例中的电子设备可以是安装直播应用程序的客户端,该客户端可以是手机、平板电脑、台式电脑等电子设备,也可以是其他电子设备,在此,本申请不做限制。当客户端的确定单元201确定开启直播应用程序情况下,可向服务器请求当前时刻直播平台正在直播的直播间信息以及每个直播间的在预设时间范围内的历史记录,该历史记录包括每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录。进而,客户端的评分单元202可基于每个直播间的在预设时间范围内的历史记录对每个直播间进行评分。同理,在对直播间进行评分时,评分体系可划分为三部分,第一部分为直播间观看次数的得分,第二部分为直播间新增关注量的得分,第三部分为直播间取消关注的惩罚减分。按照这三部分组成评分系统,对当前直播的直播间进行评分后,可获得每个直播间对应的评分值。进而,排序单元203可按评分值由高至低的顺序对当前正在直播的直播间进行排序。客户端可将排好顺序的当前正在直播的直播间展示在推送区域,以供用户选择。In the meantime, the electronic device in this embodiment may be a client that installs a live application, and the client may be an electronic device such as a mobile phone, a tablet computer, a desktop computer, or other electronic device, and the present application does not limit the application. . When the determining unit 201 of the client determines to enable the live application, the server may request the server to record the live broadcast information of the live broadcast platform and the historical record within the preset time range of each live broadcast, the history includes each Historical watch record, history added attention record and history cancellation record in the live broadcast room. Further, the rating unit 202 of the client can score each live room based on a history within a preset time range between each live broadcast. Similarly, when scoring the live broadcast, the scoring system can be divided into three parts, the first part is the score of the number of views in the live broadcast, the second part is the score of the new attention volume in the live broadcast, and the third part is the cancellation of the attention in the live broadcast room. Punishment points are reduced. According to the three-part scoring system, after the current live broadcast room is scored, the corresponding score value of each live broadcast can be obtained. Further, the sorting unit 203 can sort the live broadcasts currently being broadcasted in descending order of the score values. The client can display the live broadcast room currently being broadcasted in the order in the push area for the user to select.
由于充分考虑了直播间的直播间历史观看、关注和取关记录,既考虑了直播间的当前体量,也考虑了其未来的发展潜力,排序的结果能做到相对的公平公正。Due to the full consideration of the historical viewing, attention and customs clearance records of the live broadcast room, the current volume of the live broadcast room is considered, and its future development potential is considered. The result of the ranking can be relatively fair and just.
进一步,在本实施例中,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数,所述电子设备还包括:Further, in this embodiment, the historical time range includes N days closest to the current time, and N is an integer greater than 0, and the electronic device further includes:
统计单元,用于在所述确定当前正在直播的直播间之后,统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述距当前时刻最近的N天中的每一天观看该直播间的观看次数;统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。a statistical unit, configured to: after the determining the live broadcast room currently being broadcasted, the historical viewing record of each live broadcast room in the live broadcast room currently being broadcasted, where the historical view record is included in the current time instant Viewing the number of views of the live room in each of the N days; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the most recent time from the current time Each day of the N days, the number of people paying attention to the live room is newly added; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the current time The number of people who watched the live room was cancelled every day of the last N days.
具体的,在本实施例中的电子设备为服务器时,服务器保存有每个直播间的相关历史记录。此时,可通过统计单元调用正在直播的直播间的距当前时刻最近的N天的历史记录信息,统计这N天中直播间每天的观看次数,这N天中直播间每天的新增关注人数以及这N天中直播间每天的取消关注人数。Specifically, when the electronic device in this embodiment is a server, the server stores a related history record between each live broadcast. At this time, the history information of the N days closest to the current time in the live broadcast of the live broadcast can be called by the statistical unit, and the number of daily views in the live broadcast during the N days is counted, and the number of newly added attentions in the live broadcast room during the N days. And the number of cancellations per day during the N-day live broadcast.
同时,在本实施例中的电子设备为客户端时,服务器保存有每个直播间的相关历史记录。此时,客户端的统计单元可向服务器请求正在直播的直播间的距当前时刻最近的N天的历史记录信息,进而统计这N天中直播间每天的观看次数,这N天中直播间每天的新增关注人数以及这N天中直播间每天的取消关注人数。Meanwhile, when the electronic device in this embodiment is a client, the server stores a related history record between each live broadcast. At this time, the statistics unit of the client may request the server to record the history information of the N days closest to the current time in the live broadcast of the live broadcast, and then count the daily views of the live broadcast in the N days. The number of followers and the number of cancellations per day during the N days.
进一步,为了确保统计的历史记录的有效性,在统计N天中直播间每天的观看次数时,需要剔除无效的观看次数,比如:在观看时长小于预设时长(如:1分钟、2分钟等)时,确定该次观看为无效,在统计观看次数时会剔除这样的记录。同理,N天中直播间每天的新增关注人数时,需要剔除无效的关注人数,比如:关注的用户没有留下除关注记录以外的其他记录,则表明该用户的关注存在造假嫌疑,确定该次关注为无效,在统计新增关注人数时会剔除这样的记录。Further, in order to ensure the validity of the statistical history, when counting the number of views per day between the live broadcasts in the N days, it is necessary to eliminate invalid views, for example, the viewing duration is less than the preset duration (eg, 1 minute, 2 minutes, etc.) When it is determined that the viewing is invalid, such a record will be eliminated when the number of views is counted. In the same way, when the number of newly added people in the N-day live broadcast room is increased, the number of invalid followers needs to be removed. For example, if the user concerned does not leave any records other than the attention record, it indicates that the user’s concern is suspected of fraud, and the determination is made. This attention is invalid, and such records will be excluded when counting new people.
在具体实施过程中,N可以设定为3、7、14等数值,当然,也可以是其他数值。当N值越大,对应的评分值会更符合该直播间的实际情况,但当N值过大时,会增加电子设备的计算量,影响电子设备处理其他事物的能力。所以,N值可按需要进行设定,在此本申请不做限制。In the specific implementation process, N can be set to 3, 7, 14 and the like, of course, other values can also be used. When the value of N is larger, the corresponding score value is more in line with the actual situation of the live broadcast, but when the value of N is too large, the calculation amount of the electronic device is increased, which affects the ability of the electronic device to handle other things. Therefore, the value of N can be set as needed, and the present application does not limit it.
在统计好相关的历史记录后,电子设备的评分单元需要对正在直播的每个直播间进行评分,评分时,按照预设评分公式的计算方式进行,预设评分公式如下所示:After counting the relevant historical records, the scoring unit of the electronic device needs to score each live broadcast room that is being broadcasted. When the score is scored, it is calculated according to the preset score formula. The default score formula is as follows:
Figure PCTCN2018082352-appb-000010
Figure PCTCN2018082352-appb-000010
其中,c i为所述距当前时刻最近的N天中第i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直播间新增关注比率,
Figure PCTCN2018082352-appb-000011
a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值,w为直播间对应的礼物换算而得到的。比如:礼物A对应的虚拟值为A1,礼物B对应的虚拟值为B1,当直播间对应的礼物包括5个礼物A,10个礼物B时,该直播间对应的虚拟值为5*A1+10*B1。
Where c i is the number of views of the live broadcast on the ith day of the N days closest to the current time, and θ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The interest rate is added to the live broadcast on the ith day of the N days closest to the current time.
Figure PCTCN2018082352-appb-000011
a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time, and w is obtained by converting the gift corresponding to the live broadcast. For example, the virtual value corresponding to gift A is A1, and the virtual value corresponding to gift B is B1. When the gift corresponding to the live broadcast includes 5 gifts A and 10 gifts B, the corresponding virtual value of the live broadcast is 5*A1+. 10*B1.
在上述公式中,θ i可以设置为一个固定值,即N天中每一天对应的权重值均一致。 In the above formula, θ i can be set to a fixed value, that is, the weight values corresponding to each day in N days are consistent.
在N天按距当前时刻的时间间隔由近及远排序,N天中第i天距当前时刻的时间间隔小于第i+1天。比如:第2天距当前时刻相隔1天,第3天距当前 时刻相隔2天。θ i也可以基于公式θ i=exp(-α*i)计算获得,即N天中每一天对应的权重值不同,距当前时刻越近的权重值越大,对于评分的贡献越大,距当前时刻越远的权重值越小,随着时间的衰减使得对于评分的贡献越小。 In N days, the time interval from the current time is sorted from near to far, and the time interval from the current time on the i-day in N days is less than the i+1 day. For example, the second day is 1 day away from the current time, and the third day is 2 days away from the current time. θ i can also be calculated based on the formula θ i =exp(-α*i), that is, the weight value corresponding to each day in N days is different, and the closer the weight value is to the current time, the greater the contribution to the score, the distance The smaller the weight value at the current time, the smaller the contribution to the score over time.
由上述预设评分公式可知,评分公式由三个部分组成。第一部分是关于直播间观看次数的得分
Figure PCTCN2018082352-appb-000012
取对数处理防止过高的观看次数压倒算法中其他部分的贡献。第二部分是关于直播间关注得分
Figure PCTCN2018082352-appb-000013
在计算关注得分时综合考虑了新增关注数和主播体重,对于大主播关注重已经很大,因此新增关注比率与小主播相比存在劣势,考虑体重对大主播在关注打分上进行扶持。第三部分是关于房间的取消关注惩罚减分
Figure PCTCN2018082352-appb-000014
此处考虑取关数与新增关注数的比例以保证公平。
According to the above preset scoring formula, the scoring formula consists of three parts. The first part is about the number of views in the live broadcast.
Figure PCTCN2018082352-appb-000012
Logarithmic processing prevents excessive views from overwhelming the contributions of other parts of the algorithm. The second part is about paying attention to the live broadcast.
Figure PCTCN2018082352-appb-000013
When calculating the attention score, the new attention number and the anchor weight are considered comprehensively. The focus on the big anchor is already very large. Therefore, the new attention ratio has a disadvantage compared with the small anchor. Considering the weight to support the big anchor in the attention score. The third part is about the cancellation of the penalty for the penalty
Figure PCTCN2018082352-appb-000014
Here we consider the ratio of the number of passes to the number of new points of interest to ensure fairness.
进一步,在评分单元对正在直播的各个直播间进行评分时,还可以根据直播应用程序的运营策略对评分进行调整,得到最终的分数,所以,评分单元用于:Further, when the scoring unit scores each live broadcast room being broadcasted, the score may be adjusted according to the operation strategy of the live application to obtain the final score, so the scoring unit is used to:
判断进行评分的第一直播间是否为预设直播间;Determining whether the first live broadcast room to be scored is a preset live broadcast room;
如果是,获得基于所述预设评分公式对所述第一直播间进行评分得到的第一评分值;If yes, obtaining a first rating value obtained by scoring the first live broadcast room based on the preset rating formula;
对所述获第一评分值进行预设处理,获得第二评分值;Performing a preset process on the obtained first score value to obtain a second score value;
确定所述第二评分值为所述第一直播间对应的评分值,其中,所述第二评分值大于所述第一评分值。Determining that the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
具体的,在本实施例中,直播应用程序会根据运营策略推广一些直播间,所以,在对正在直播的第一直播间进行评分时,需要确定该第一直播间是否为预设直播间,即是否为直播平台需要推广的直播间,如果第一直播间为预设直播间,在通过上述预设评分公式对其评分后,会得到一个第一评分值。由于需要推广的直播间可能通过上述预设评分公式打分后得到的分数较低,为了能使该直播间排在最前面的位置,会对第一评分值进行预设处理,得到较高的第二评分值,预设处理可以是在第一评分值的基础上加一个较大的预设分值,进而得较大的第二评分值。预设处理还可以是直接采用一个较大的预设分值替换该第一评分值,进而得较大的第二评分值。在具体实施过程中,预设处理方式可根据实际需要进行设定,在此,本申请不做限制。Specifically, in this embodiment, the live broadcast application promotes some live broadcast rooms according to the operation strategy. Therefore, when the first live broadcast room is being scored, it is determined whether the first live broadcast room is a preset live broadcast room. That is, whether it is a live broadcast room that needs to be promoted by the live broadcast platform. If the first live broadcast room is a preset live broadcast room, after scoring the above-mentioned preset score formula, a first score value is obtained. Since the live broadcast room that needs to be promoted may score lower by the above-mentioned preset scoring formula, in order to make the live broadcast room in the foremost position, the first scoring value is preset, and a higher number is obtained. The second score value, the preset processing may be to add a larger preset score based on the first score value, thereby obtaining a larger second score value. The preset processing may also be to directly replace the first rating value with a larger preset score, thereby obtaining a larger second rating value. In the specific implementation process, the preset processing mode can be set according to actual needs, and the present application does not limit the application.
请参见图3,本发明的第三实施例提供了一种电子设备,该实施例的电子设备包括:处理器301、存储器302以及存储在所述存储器中并可在所述处理器上运行的计算机程序,例如第一实施例中直播间排序方法对应的程序。所述处理器执行所述计算机程序时实现上述第一实施例中各路径检测中的步骤。或 者,所述处理器执行所述计算机程序时实现上述第二实施例的电子设备中各模块/单元的功能。Referring to FIG. 3, a third embodiment of the present invention provides an electronic device, where the electronic device includes: a processor 301, a memory 302, and is stored in the memory and operable on the processor. A computer program, such as a program corresponding to the inter-live ordering method in the first embodiment. The steps in the path detection in the first embodiment described above are implemented when the processor executes the computer program. Alternatively, the processor implements the functions of the modules/units in the electronic device of the second embodiment described above when the computer program is executed.
示例性的,所述计算机程序可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器中,并由所述处理器执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序在所述计算机装置中的执行过程。例如,所述计算机程序可以被分割成确定单元、评分单元、排序单元,各单元具体功能如下:Illustratively, the computer program can be partitioned into one or more modules/units that are stored in the memory and executed by the processor to perform the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing a particular function, the instruction segments being used to describe the execution of the computer program in the computer device. For example, the computer program can be divided into a determining unit, a scoring unit, and a sorting unit, and the specific functions of each unit are as follows:
确定单元,用于在直播应用程序开启情况下,确定当前正在直播的直播间;a determining unit, configured to determine a live broadcast room currently being broadcasted when the live application is enabled;
评分单元,用于基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;a scoring unit, configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range The rating value of each live room in the live broadcast room currently being broadcasted;
排序单元,用于按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。The sorting unit is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
所述电子设备可包括,但不仅限于,处理器、存储器。本领域技术人员可以理解,所述示意图3仅仅是计算机装置的示例,并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备还可以包括输入输出设备、网络接入设备、总线等。The electronic device can include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram 3 is merely an example of a computer device and does not constitute a limitation on an electronic device, and may include more or less components than those illustrated, or may combine certain components or different components. For example, the electronic device may further include an input and output device, a network access device, a bus, and the like.
所称处理器301可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器是所述计算机装置的控制中心,利用各种接口和线路连接整个计算机装置的各个部分。The processor 301 may be a central processing unit (CPU), or may be other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like, which is the control center of the computer device, which is connected to various parts of the entire computer device using various interfaces and lines.
所述存储器302可用于存储所述计算机程序和/或模块,所述处理器通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现所述计算机装置的各种功能。所述存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、视频数据等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他 易失性固态存储器件。The memory 302 can be used to store the computer program and/or module, the processor implementing the method by running or executing a computer program and/or module stored in the memory, and invoking data stored in the memory Various functions of a computer device. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored. Data created according to the use of the mobile phone (such as audio data, video data, etc.). In addition, the memory may include a high-speed random access memory, and may also include non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SMC), and a Secure Digital (SD) card. , Flash Card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
进一步,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数该电子设备所包括的处理器301还具有以下功能:Further, the historical time range includes N days closest to the current time, and N is an integer greater than 0. The processor 301 included in the electronic device further has the following functions:
在所述确定当前正在直播的直播间之后,统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述距当前时刻最近的N天中的每一天观看该直播间的观看次数;统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。After the determining the live broadcast room currently being broadcasted, the historical view record of each live broadcast room in the live broadcast room currently being broadcasted is counted, and the historical view record includes each of the N days closest to the current time. Viewing the number of views of the live room in a day; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the N days closest to the current time The number of people who pay attention to the live room every day; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the N days closest to the current time. Every day, the number of people who pay attention to the live room is cancelled.
进一步,该电子设备所包括的处理器301还具有以下功能:Further, the processor 301 included in the electronic device further has the following functions:
基于预设评分公式对每个直播间进行评分,其中,预设评分公式为
Figure PCTCN2018082352-appb-000015
c i为所述距当前时刻最近的N天中第i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直播间新增关注比率,
Figure PCTCN2018082352-appb-000016
a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值。
Each live room is scored based on a preset rating formula, wherein the default rating formula is
Figure PCTCN2018082352-appb-000015
c i is the number of views of the live broadcast room on the ith day of the N days closest to the current time, and θ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
Figure PCTCN2018082352-appb-000016
a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
进一步,所述距当前时刻最近的N天按距当前时刻的时间间隔由近及远排序,所述距当前时刻最近的N天中第i天距当前时刻的时间间隔小于第i+1天,所述θ i基于公式θ i=exp(-a*i)计算获得,其中,α为衰减系数。 Further, the N days closest to the current time are sorted by near and far according to the time interval from the current time, and the time interval of the i-day from the current time is less than the i+1 day. The θ i is obtained based on the formula θ i =exp(-a*i), where α is the attenuation coefficient.
进一步,该电子设备所包括的处理器301还具有以下功能:Further, the processor 301 included in the electronic device further has the following functions:
判断进行评分的第一直播间是否为预设直播间;Determining whether the first live broadcast room to be scored is a preset live broadcast room;
如果是,获得基于所述预设评分公式对所述第一直播间进行评分得到的第一评分值;If yes, obtaining a first rating value obtained by scoring the first live broadcast room based on the preset rating formula;
对所述获第一评分值进行预设处理,获得第二评分值;Performing a preset process on the obtained first score value to obtain a second score value;
确定所述第二评分值为所述第一直播间对应的评分值,其中,所述第二评分值大于所述第一评分值。Determining that the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
本发明第四实施例提供了一种计算机可读存储介质,其上存储有计算机程序,本发明第二实施例中的所述电子设备集成的功能单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述第一实施例的直播间排序方法中 的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。A fourth embodiment of the present invention provides a computer readable storage medium having stored thereon a computer program, and the functional unit integrated by the electronic device in the second embodiment of the present invention is implemented in the form of a software functional unit and is independent When the product is sold or used, it can be stored in a computer readable storage medium. Based on such understanding, the present invention implements all or part of the flow in the inter-live ordering method of the first embodiment described above, and can also be completed by a computer program to instruct related hardware, and the computer program can be stored in a computer readable manner. In the storage medium, the computer program, when executed by the processor, implements the steps of the various method embodiments described above. Wherein, the computer program comprises computer program code, which may be in the form of source code, object code form, executable file or some intermediate form. The computer readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM). , random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in a jurisdiction, for example, in some jurisdictions, according to legislation and patent practice, computer readable media Does not include electrical carrier signals and telecommunication signals.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the invention are within the scope of the invention
其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。The invention is also intended to cover such modifications and variations within the scope of the equivalents.

Claims (10)

  1. 一种直播间排序方法,其特征在于,包括:A method for sorting between live broadcasts, comprising:
    在直播应用程序开启情况下,确定当前正在直播的直播间;In the case that the live application is enabled, determine the live broadcast room currently being broadcasted;
    基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;Based on historical history records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range, each live room is scored to obtain the current live broadcast The score of each live room in the live room;
    按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。The live broadcast rooms currently being broadcasted are sorted in descending order of the score values, so that the client displays the live broadcast rooms currently in live broadcast in descending order of the score values.
  2. 如权利要求1所述的方法,其特征在于,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数,在所述确定当前正在直播的直播间之后,所述方法还包括:The method of claim 1, wherein the historical time range comprises N days closest to the current time, and N is an integer greater than 0, after the determining that the live broadcast room is currently being broadcasted, the method further include:
    统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述距当前时刻最近的N天天中的每一天观看该直播间的观看次数;Counting a historical viewing record of each live room in the live broadcast room currently being broadcasted, the historical view record including viewing the number of views of the live room every day of the N days from the current time;
    统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;Counting the historical newly added attention record of each live broadcast room in the live broadcast room currently being broadcasted, the historical newly added interest record including the newly added attention to the live broadcast room in each of the N days closest to the current time Number of people;
    统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。Counting the history cancellation attention record of each live room in the live broadcast room currently being broadcasted, the history canceling the concern record includes canceling the number of people paying attention to the live room every day in the N days closest to the current time.
  3. 如权利要求2所述的方法,其特征在于,所述基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,包括:The method according to claim 2, wherein the historical viewing record, the historical new attention record, and the historical cancellation attention record are recorded based on each of the live rooms in the live broadcast room currently being broadcasted in the historical time range. Rate each live room, including:
    基于预设评分公式对每个直播间进行评分,其中,预设评分公式为
    Figure PCTCN2018082352-appb-100001
    c i为所述距当前时刻最近的N天中第i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直播间新增关注比率,
    Figure PCTCN2018082352-appb-100002
    a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值。
    Each live room is scored based on a preset rating formula, wherein the default rating formula is
    Figure PCTCN2018082352-appb-100001
    c i is the number of views of the live broadcast room on the ith day of the N days closest to the current time, and θ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
    Figure PCTCN2018082352-appb-100002
    a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
  4. 如权利要求3所述的方法,其特征在于,所述距当前时刻最近的N天按距当前时刻的时间间隔由近及远排序,所述距当前时刻最近的N天中第i 天距当前时刻的时间间隔小于第i+1天,所述θ i基于公式θ i=exp(-α*i)计算获得,其中,α为衰减系数。 The method according to claim 3, wherein the N days closest to the current time are sorted by near and far according to a time interval from the current time, and the first day of the N days closest to the current time is currently The time interval of the time is less than the i+1th day, and the θ i is obtained based on the formula θ i =exp(−α*i), where α is the attenuation coefficient.
  5. 如权利要求3所述的方法,其特征在于,在所述基于预设评分公式对每个直播间进行评分时,所述方法还包括:The method of claim 3, wherein when the rating is based on a preset rating formula, the method further comprises:
    判断进行评分的第一直播间是否为预设直播间;Determining whether the first live broadcast room to be scored is a preset live broadcast room;
    如果是,获得基于所述预设评分公式对所述第一直播间进行评分得到的第一评分值;If yes, obtaining a first rating value obtained by scoring the first live broadcast room based on the preset rating formula;
    对所述获第一评分值进行预设处理,获得第二评分值;Performing a preset process on the obtained first score value to obtain a second score value;
    确定所述第二评分值为所述第一直播间对应的评分值,其中,所述第二评分值大于所述第一评分值。Determining that the second score value is a score value corresponding to the first live broadcast, wherein the second score value is greater than the first score value.
  6. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    确定单元,用于在直播应用程序开启情况下,确定当前正在直播的直播间;a determining unit, configured to determine a live broadcast room currently being broadcasted when the live application is enabled;
    评分单元,用于基于在历史时间范围内所述当前正在直播的直播间中每个直播间的历史观看记录、历史新增关注记录与历史取消关注记录,对每个直播间进行评分,获得所述当前正在直播的直播间中每个直播间的评分值;a scoring unit, configured to score each live room based on historical viewing records, historical new attention records, and historical cancellation attention records of each live room in the live broadcast room currently being broadcasted in the historical time range The rating value of each live room in the live broadcast room currently being broadcasted;
    排序单元,用于按评分值由高至低的顺序对当前正在直播的直播间进行排序,以使得客户端按评分值由高至低的顺序依次展示当前正在直播的直播间。The sorting unit is configured to sort the live broadcast rooms currently being broadcasted in descending order of the score values, so that the client displays the live broadcast rooms currently being broadcasted in descending order of the score values.
  7. 如权利要求6所述的电子设备,其特征在于,所述历史时间范围包括距当前时刻最近的N天,N为大于0的整数,所述电子设备还包括:The electronic device according to claim 6, wherein the historical time range comprises N days closest to the current time, and N is an integer greater than 0, and the electronic device further comprises:
    统计单元,用于在所述确定当前正在直播的直播间之后,统计所述当前正在直播的直播间中每个直播间的历史观看记录,所述历史观看记录包括在所述距当前时刻最近的N天中的每一天观看该直播间的观看次数;统计所述当前正在直播的直播间中每个直播间的历史新增关注记录,所述历史新增关注记录包括在所述距当前时刻最近的N天中的每一天新增的关注该直播间的人数;统计所述当前正在直播的直播间中每个直播间的历史取消关注记录,所述历史取消关注记录包括在所述距当前时刻最近的N天中的每一天取消关注该直播间的人数。a statistical unit, configured to: after the determining the live broadcast room currently being broadcasted, the historical viewing record of each live broadcast room in the live broadcast room currently being broadcasted, where the historical view record is included in the current time instant Viewing the number of views of the live room in each of the N days; counting the historical newly added attention record of each live room in the live broadcast room currently being broadcasted, the historical newly added attention record being included in the most recent time from the current time Each day of the N days, the number of people paying attention to the live room is newly added; the history cancellation record of each live room in the live room currently being broadcasted is counted, and the history cancellation record is included in the current time The number of people who watched the live room was cancelled every day of the last N days.
  8. 如权利要求7所述的电子设备,其特征在于,所述评分单元用于:The electronic device of claim 7 wherein said scoring unit is for:
    基于预设评分公式对每个直播间进行评分,其中,预设评分公式为
    Figure PCTCN2018082352-appb-100003
    c i为所述距当前时刻最近的N天中第i天观看该直播间的观看次数,θ i为所述距当前时刻最近的N天中第i天对应的权重系数,p i为所述距当前时刻最近的N天中第i天该直 播间新增关注比率,
    Figure PCTCN2018082352-appb-100004
    a i为所述距当前时刻最近的N天中第i天新增的关注该直播间的人数,u i为所述距当前时刻最近的N天中第i天取消关注该直播间的人数,w为截止当前时刻该直播间的主播收到的礼物对应的虚拟值。
    Each live room is scored based on a preset rating formula, wherein the default rating formula is
    Figure PCTCN2018082352-appb-100003
    c i is the number of views of the live broadcast room on the ith day of the N days closest to the current time, and θ i is a weight coefficient corresponding to the i-th day of the N days closest to the current time, where p i is The attention ratio is added to the live broadcast on the ith day of the N days closest to the current moment.
    Figure PCTCN2018082352-appb-100004
    a i is the number of people who pay attention to the live room on the ith day of the N day closest to the current time, and u i is the number of people who cancel the attention to the live room on the ith day of the N days closest to the current time. w is the virtual value corresponding to the gift received by the anchor of the live broadcast room at the current time.
  9. 一种电子设备,其特征在于,所述电子设备包括处理器,所述处理器用于执行存储器中存储的计算机程序时实现如权利要求1-5中任一项所述的直播间排序方法的步骤。An electronic device, comprising: a processor, wherein the processor is configured to perform the step of the inter-live ordering method according to any one of claims 1-5 when the computer program stored in the memory is executed .
  10. 一种可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-5中任一项所述的直播间排序方法的步骤。A readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement the steps of the inter-live ordering method according to any one of claims 1-5.
PCT/CN2018/082352 2018-01-05 2018-04-09 Sorting method for live broadcast studios, electronic device and readable storage medium WO2019134290A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810011902.3 2018-01-05
CN201810011902.3A CN108093274A (en) 2018-01-05 2018-01-05 A kind of direct broadcasting room sort method, electronic equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
WO2019134290A1 true WO2019134290A1 (en) 2019-07-11

Family

ID=62182009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/082352 WO2019134290A1 (en) 2018-01-05 2018-04-09 Sorting method for live broadcast studios, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN108093274A (en)
WO (1) WO2019134290A1 (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168049B (en) * 2018-09-03 2021-03-23 广州虎牙信息科技有限公司 Live program grade evaluation method and device, storage medium and server
CN109213878A (en) * 2018-09-17 2019-01-15 北京点网聚科技有限公司 Media evaluation method and device
CN109361957B (en) * 2018-10-18 2021-02-12 广州酷狗计算机科技有限公司 Method and device for sending praise request
CN109348239B (en) * 2018-10-18 2020-05-19 北京达佳互联信息技术有限公司 Live broadcast fragment processing method and device, electronic equipment and storage medium
CN109451326A (en) * 2018-11-13 2019-03-08 广州虎牙科技有限公司 A kind of methods of exhibiting, device, server and the storage medium of main broadcaster's information
CN109522426B (en) * 2018-12-05 2021-06-22 北京达佳互联信息技术有限公司 Multimedia data recommendation method, device, equipment and computer readable storage medium
CN109600641B (en) * 2018-12-18 2021-08-10 北京字节跳动网络技术有限公司 Method and apparatus for processing information
CN109660874B (en) * 2018-12-18 2021-07-06 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN109640176B (en) * 2018-12-18 2021-01-22 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN109618193B (en) * 2018-12-18 2021-06-25 北京字节跳动网络技术有限公司 Method and apparatus for processing information
CN109743588B (en) * 2019-01-08 2021-09-21 广州虎牙信息科技有限公司 Live broadcast room virtual gift list generation method and device, server and storage medium
CN109922359B (en) * 2019-03-19 2022-01-04 广州虎牙信息科技有限公司 User processing method, device, equipment and storage medium
CN110209883B (en) * 2019-06-06 2020-02-07 王慧斌 Method and device for judging validity of user historical data
CN110366043B (en) * 2019-08-20 2022-02-18 北京字节跳动网络技术有限公司 Video processing method and device, electronic equipment and readable medium
CN110797013A (en) * 2019-09-11 2020-02-14 腾讯科技(深圳)有限公司 Live broadcast entrance display method of voice live broadcast room, related equipment and storage medium
CN111010584A (en) * 2019-12-05 2020-04-14 网易(杭州)网络有限公司 Live broadcast data processing method and device, server and storage medium
CN111918081B (en) * 2020-07-31 2021-04-02 广州津虹网络传媒有限公司 Live broadcast room heat determining method, device, equipment and storage medium
CN112055226A (en) * 2020-08-14 2020-12-08 河南天眸网络科技有限公司 Live broadcast room recommendation method and device based on sales data quantiles and computer equipment
CN112383785B (en) * 2020-10-12 2023-04-11 广州市百果园网络科技有限公司 Method and device for processing heat value and electronic equipment
CN112261488B (en) * 2020-10-26 2021-10-08 腾讯科技(深圳)有限公司 Virtual article issuing method, device, storage medium and computer equipment
CN113038168A (en) * 2021-04-09 2021-06-25 上海哔哩哔哩科技有限公司 Data processing method and device
CN113688321B (en) * 2021-08-31 2023-10-24 北京快来文化传播集团有限公司 Live broadcasting room heat ordering method, system, equipment and storage medium
CN114640859B (en) * 2021-12-31 2023-03-24 福建大娱号信息科技股份有限公司 Management method, device and storage medium for skill training and assessment in live broadcast room

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140152832A1 (en) * 2012-11-30 2014-06-05 Cbs Interactive Inc. Techniques to provide a micro-broadcast of an event
CN106294800A (en) * 2016-08-16 2017-01-04 武汉斗鱼网络科技有限公司 Method and system recommended by direct broadcasting room based on weighting k neighbour scoring
CN106954086A (en) * 2017-02-28 2017-07-14 北京潘达互娱科技有限公司 A kind of information recommendation method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140152832A1 (en) * 2012-11-30 2014-06-05 Cbs Interactive Inc. Techniques to provide a micro-broadcast of an event
CN106294800A (en) * 2016-08-16 2017-01-04 武汉斗鱼网络科技有限公司 Method and system recommended by direct broadcasting room based on weighting k neighbour scoring
CN106954086A (en) * 2017-02-28 2017-07-14 北京潘达互娱科技有限公司 A kind of information recommendation method and device

Also Published As

Publication number Publication date
CN108093274A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
WO2019134290A1 (en) Sorting method for live broadcast studios, electronic device and readable storage medium
CN109905723B (en) Anchor recommendation method, server and readable storage medium
CN109446419B (en) Method and device for recommending video
WO2019134285A1 (en) Live broadcast room recommendation method, electronic device and readbale storage medium
US20130226681A1 (en) Collecting media data descriptive of a product
WO2019184111A1 (en) Push message processing method and apparatus, readable storage medium, and terminal device
CN107613311A (en) A kind of method and apparatus for being used to show main broadcaster's heat
US20180278704A1 (en) Information push method and electronic device
CN107563813B (en) PDB advertisement push frequency control method and system
WO2020253577A1 (en) Resource display method and device, and storage medium thereof
CN109428910B (en) Data processing method, device and system
CN109598538B (en) Flow control method, device, equipment and medium for advertisement delivery
WO2020034626A1 (en) Service recommendation method and apparatus, electronic device, and storage medium
MX2013003415A (en) Converting a digital media item from a rental to a purchase.
CN116528010B (en) Live broadcast cargo-carrying service scheduling recommendation method and system
CN112085596A (en) Method and device for determining user risk level information
CN109688217B (en) Message pushing method and device and electronic equipment
JP6605174B1 (en) Computer program, information processing method, and moving image distribution system
CN113362095A (en) Information delivery method and device
WO2022121215A1 (en) Service information processing method and related device
US20230085186A1 (en) Information processing apparatus, plan revision assist method and plan revision assist program
US10497031B1 (en) Conditional bids in an auction
US20150332352A1 (en) Method, apparatus, and computer program for providing sub-content while providing online content
WO2022183940A1 (en) Method and apparatus for acquiring recommended content resource, and device, medium and program product
CN114387016A (en) Advertisement putting method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18898719

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18898719

Country of ref document: EP

Kind code of ref document: A1